我有一个pdf,上面有这样的标签:
62 0 obj
<< /Type /StructElem /S /DokumentNavn /P 56 0 R /K 2 /Pg 58 0 R >>
endobj
60 0 obj
<< /Type /StructElem /S /Bundtekst /P 56 0 R /K 0 /Pg 58 0 R >>
endobj
61 0 obj
<< /Type /StructElem /S /ReferenceLinjer /P 56 0 R /Lang (da) /K 1 /Pg 58 0 R >>
endobj
68 0 obj
<< /Type /StructElem /S /Fritekst /P 56 0 R /K 6 /Pg 58 0 R >>
endobj我已经“删除”了用%覆盖它们,但是检查白名单的工具仍然在抱怨,所以我想也许标签也在pdf的二进制部分中使用。可以abcpdf删除标签或有另一个解决方案?
发布于 2014-10-10 18:28:38
Docotic.Pdf库可以从PDF文档中删除结构信息。
下面是该任务的示例代码:
public static void saveWithoutStructureInformation(string input, string output)
{
using (PdfDocument document = new PdfDocument(input))
{
document.RemoveStructureInformation();
document.SaveOptions.RemoveUnusedObjects = true;
document.Save(output);
}
}免责声明:我为图书馆的供应商工作。
https://stackoverflow.com/questions/26298447
复制相似问题