Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge error in PDFs with Outline metadata #18

Open
clown opened this issue Aug 30, 2021 · 0 comments
Open

Merge error in PDFs with Outline metadata #18

clown opened this issue Aug 30, 2021 · 0 comments
Labels
bug Bug or unexpected behavior cubepdf utility CubePDF Utility topics help wanted Help wanted

Comments

@clown
Copy link
Member

clown commented Aug 30, 2021

Under some conditions, merging PDFs causes the following exception. According to this, we suspect that the Outline metadata causes the exception, but we don't know how to reproduce the condition. Please let me know if you have any information.

Cube.Pdf.Editor.RibbonViewModel - System.NullReferenceException: 
   Location iText.Kernel.Pdf.PdfCatalog.ConstructOutlines(PdfDictionary outlineRoot, IDictionary`2 names)
   Location iText.Kernel.Pdf.PdfCatalog.GetOutlines(Boolean updateOutlines)
   Location iText.Kernel.Pdf.PdfPage.GetOutlines(Boolean updateOutlines)
   Location iText.Kernel.Pdf.PdfDocument.CopyPagesTo(IList`1 pagesToCopy, PdfDocument toDocument, Int32 insertBeforePage, IPdfPageExtraCopier copier)
   Location iText.Kernel.Pdf.PdfDocument.CopyPagesTo(IList`1 pagesToCopy, PdfDocument toDocument, IPdfPageExtraCopier copier)
   Location iText.Kernel.Utils.PdfMerger.Merge(PdfDocument from, IList`1 pages)
   Location Cube.Pdf.Itext.DocumentWriter.OnSave(String path)
@clown clown added bug Bug or unexpected behavior help wanted Help wanted labels Aug 30, 2021
@clown clown added the cubepdf utility CubePDF Utility topics label Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug or unexpected behavior cubepdf utility CubePDF Utility topics help wanted Help wanted
Projects
None yet
Development

No branches or pull requests

1 participant