Skip to content

Merge error in PDFs with Outline metadata #18

@clown

Description

@clown

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug or unexpected behaviorcubepdf utilityCubePDF Utility topicshelp wantedHelp wanted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions