如何从pdf中删除标记
我有这个pdf,里面有这样的标签:如何从pdf中删除标记,pdf,tags,abcpdf,Pdf,Tags,Abcpdf,我有这个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 /Refer
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
62 0 obj
>
endobj
60 0 obj
>
endobj
61 0 obj
>
endobj
68 0 obj
>
endobj
我已通过用%覆盖它们来“删除”它们
然而,检查白名单的工具仍在抱怨
所以我在想,也许这些标签也被用于pdf的二进制部分。
abcpdf可以删除标记吗?或者有其他解决方案吗?可以从PDF文档中删除结构信息
以下是任务的示例代码:
public static void saveWithoutStructureInformation(string input, string output)
{
using (PdfDocument document = new PdfDocument(input))
{
document.RemoveStructureInformation();
document.SaveOptions.RemoveUnusedObjects = true;
document.Save(output);
}
}
免责声明:我为图书馆的供应商工作