Menu

#93 System.InvalidCastException on just one PDF document

0.1.2.1
open
nobody
None
5
2022-02-28
2022-02-28
No

I have installed "PDFClown by andregsilv v0.1.2" from NuGet, but I have also downloaded the 0.1.2 source code, built the solution, and just used the dll as a reference. I get the same result.

I can read other PDF documents but the one I need is throwing an error.

I can provide the invoice by email. I would prefer not to post it on the public forum. Please advise an email address to send it to.

Message: 
System.InvalidCastException : Unable to cast object of type 'org.pdfclown.objects.PdfReal' to type 'org.pdfclown.objects.PdfInteger'.

Stack Trace: 
CompositeFont.OnLoad()
Font.Load()
Font.ctor(PdfDirectObject baseObject)
CompositeFont.ctor(PdfDirectObject baseObject)
Type2Font.ctor(PdfDirectObject baseObject)
Font.Wrap(PdfDirectObject baseObject)
FontResources.Wrap(PdfDirectObject baseObject)
ResourceItems1.get_Item(PdfName key) SetFont.GetResource(IContentContext context) SetFont.GetFont(IContentContext context) <5 more frames...> ContentScanner.get_CurrentWrapper() TextExtractor.Extract(ContentScanner level, IList1 extractedTextStrings)
TextExtractor.Extract(ContentScanner level, IList1 extractedTextStrings) TextExtractor.Extract(ContentScanner level, IList1 extractedTextStrings)
TextExtractor.Extract(IContentContext contentContext)

Discussion


Log in to post a comment.

MongoDB Logo MongoDB