Hello everybody,
I have an issue on a specific usage and I hope someone will help me.
I try to fill AcroForm on iOS app create with Unity (I know, it's weird, but I need Unity for AR development).
In Unity Editor, everything work!
The compilation on iOS work fine and no error with PDFSharp library.
But in the app, when I try to read my original PDF I have this issue:
Code:
System.InvalidCastException: Unable to cast object of type 'PDFDictionary' to type 'PdfDocumentInformation'.
at PDFSharp.Pdf.Advanced.PdfTrailer.get_info () ...
at PdfSharp.Pdf.PdfDocument.get_info () ..
at PdfSharp.Pdf.IO.PdfReader.Open(System.IO.Stream stream, System.String password, PDFSharp.Pdf.IO.PdfDocumentOpenMode openmode, PdfSharp.Pdf.IO.PdfPasswordProvider passwordProvider) ...
at PdfSharp.Pdf.IO.PdfReader.Open(System.String path, System.String password, PDFSharp.Pdf.IO.PdfDocumentOpenMode openmode, PdfSharp.Pdf.IO.PdfPasswordProvider Provider) ...
I try to read the pdf with PdfDocumentOpenMode.Modify.
Someone have an idea? Thanks!
Best regards,
Alexis