Hello everyone! I hope this hasn't already been answered elsewhere, but my search hasn't revealed anything, so I apologize if this is a duplicate question.
I have a PDF that was generated from a Word file, and created through Foxit. When I try to open it with PDFsharp, I get the following error:
Code:
Unexpected character '0x0029' in PDF stream. The file may be corrupted. If you think this is a bug in PDFsharp, please send us your PDF file.
The character in question is the right parenthesis, ).
This happens no matter what PdfDocumentOpenMode I specify. It is unprotected, and regardless of whether or not I specify an empty password, the result is the same.
I am using PDFsharp 1.50-beta3, and I have applied pdfsharp-689-patch to Parser.cs, but that didn't seem to make a difference. I poked around in Lexer.cs and that seems to be where it is choking, but I'm not very familiar with PDFsharp's internals, so I could be mistaken.
I would be more than happy to submit the PDF for your research if necessary, but I would prefer to send it privately. The document reveals some of my employer's internal network structures and I would prefer that not be made public.
Please let me know if I can or need to send the PDF, and if so where.
Thank you for your time!