Skip to content

IndexOutOfRangeException may occur when getting PDF metadata #34

Description

@clown

When Metadata or Save button is pressed, IndexOutOfRangeException may occur.
From Stacktrace, there seems to be a problem in getting Title and other information from PDF metadata.
Any information on this matter would be appreciated.

Stacktrace is as follows:

PresentableBase (366) System.IndexOutOfRangeException
   iText.IO.Source.PdfTokenizer.DecodeStringContent(Byte[] content, Int32 from, Int32 to, Boolean hexWriting)
   iText.Kernel.Pdf.PdfString.DecodeContent()
   iText.Kernel.Pdf.PdfString.ToUnicodeString()
   iText.Kernel.Pdf.PdfDocumentInfo.GetTitle()
   Cube.Pdf.Itext.ReaderExtension.GetMetadata(PdfDocument src)
   Cube.Pdf.Itext.DocumentReader..ctor(String src, Password password, OpenOption options)
   Cube.Pdf.Editor.File.GetItext(Entity src, IQuery`1 query, Boolean partial)
   Cube.Pdf.Editor.SaveExtension.Save(MainFacade src, String dest, Action`1 prev, Action`1 next)
   Cube.Pdf.Editor.SaveExtension.<>c__DisplayClass3_0.<Overwrite>b__0()
   Cube.Syntax.Extensions.Methods.Then(Boolean value, Action action)
   Cube.PresentableBase.<>c__DisplayClass21_0.<Run>g__invoke|0()

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug or unexpected behaviorcubepdf utilityCubePDF Utility topicshelp wantedHelp wanted

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions