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

IndexOutOfRangeException may occur when getting PDF metadata #34

Open
clown opened this issue May 8, 2023 · 0 comments
Open

IndexOutOfRangeException may occur when getting PDF metadata #34

clown opened this issue May 8, 2023 · 0 comments
Labels
bug Bug or unexpected behavior cubepdf utility CubePDF Utility topics help wanted Help wanted

Comments

@clown
Copy link
Member

clown commented May 8, 2023

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()
@clown clown added bug Bug or unexpected behavior help wanted Help wanted cubepdf utility CubePDF Utility topics labels May 8, 2023
@clown clown changed the title IndexOutOfRangeException occurs when getting title IndexOutOfRangeException occurs when getting PDF metadata May 8, 2023
@clown clown changed the title IndexOutOfRangeException occurs when getting PDF metadata IndexOutOfRangeException may occur when getting PDF metadata May 9, 2023
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