在Itext7上删除PDF页面的异常

时间:2018-04-05 19:07:13

标签: itext7

根据itext网站,这是提交错误报告的过程?

无论如何使用某些PDF文件(不是全部)我将在 Itext V7.1.1.0

中看到此异常调用文档上的删除功能

如果我吞下异常,它似乎会删除页面并生成有效的PDF文件。

System.NullReferenceException: Object reference not set to an instance of an object.
at iText.Kernel.Pdf.PdfOutline..ctor(String title, PdfDictionary content, PdfOutline parent)
at iText.Kernel.Pdf.PdfCatalog.ConstructOutlines(PdfDictionary outlineRoot, IDictionary`2 names)
at iText.Kernel.Pdf.PdfCatalog.GetOutlines(Boolean updateOutlines)
at iText.Kernel.Pdf.PdfCatalog.RemoveOutlines(PdfPage page)
at iText.Kernel.Pdf.PdfDocument.RemovePage(Int32 pageNum)

0 个答案:

没有答案