Hello,
Does PDFSharp have any known issues reading PDF files generated by PaperPort 11.0? I am using PDFSharp 1.2.1269.0
In the Adobe Reader document properties:
"PDF Version 1.3 (Acrobat 4.x)"
Code:
failed: PdfSharp.Pdf.IO.PdfReaderException : Token '03103' was not expected.
at PdfSharp.Pdf.IO.Parser.ReadSymbol(Symbol symbol)
at PdfSharp.Pdf.IO.Parser.ReadTrailer()
at PdfSharp.Pdf.IO.PdfReader.Open(Stream stream, String password, PdfDocumentOpenMode openmode, PdfPasswordProvider passwordProvider)
at PdfSharp.Pdf.IO.PdfReader.Open(Stream stream, PdfDocumentOpenMode openmode)
Which is generated by the call:
Code:
PdfReader.Open(_inputPdfDocument, PdfDocumentOpenMode.Import);
Where inputPdfDocument is a binary memory stream.
Opening the file in the HxD hex editor, I see at the end of the file is:
Code:
.trailer.<</Size 12/Info 3 0 R/Root 1 0 R/ID[<638301399204a582ea0fe641d579f2b2><7ee6a1f67b79fe725b09f0564cd94c0e>]>>.startxref.103103.%%EOF.%PaperPortPDFversion
The code works for other non PaperPort 11.0 documents. What is it about the 03103 that is causing the problem?