PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.com/

Invalid entry in XRef table
http://forum.pdfsharp.com/viewtopic.php?f=2&t=3834
Page 1 of 1

Author:  Iurii [ Mon Aug 27, 2018 11:38 am ]
Post subject:  Invalid entry in XRef table

Hi guys,

I'm using PdfSharp in my project - it's cool and fast, that's why I choose it! Thank you!

Would you be kind to help me with next problem:
I use the PdfSharp library to read and process uploaded by user PDF documents. From time to time, there are documents which are cannot be opened by PdfSharp library, but can be easily be opened by any PDF reader (viewer).

I've prepared a small console app, please find it in attachment (InvalidEntryInXrefTable.zip), the userd PdfSharp version is "1.50.4845-RC2a"
It's also contains an example of the PDF document inside.

Looking forward to hearing from you

Thank you

Attachments:
InvalidEntryInXrefTable.zip [190.13 KiB]
Downloaded 417 times

Author:  Iurii [ Wed Dec 19, 2018 12:44 pm ]
Post subject:  Re: Invalid entry in XRef table

Hi guys,

would you be kind to comment the issue?
Do you have any plans for that?

I've found the similar one here viewtopic.php?f=2&t=3856&p=11995#p11995


Looking forward to hearing from you.

Author:  TH-Soft [ Wed Dec 19, 2018 3:50 pm ]
Post subject:  Re: Invalid entry in XRef table

PDFsharp was not built to deal with corrupt PDF files.

Which error message do you get from PDFsharp?

Author:  Iurii [ Thu Dec 20, 2018 9:33 am ]
Post subject:  Re: Invalid entry in XRef table

Hi Thomas,

thank you for the answer.

The error message example is next: Invalid entry in XRef table, ID=45, Generation=0, Position=0, ID of referenced object=6, Generation of referenced object=0

Looking forward to hearing from you

Author:  TH-Soft [ Thu Dec 20, 2018 12:48 pm ]
Post subject:  Re: Invalid entry in XRef table

Iurii wrote:
Invalid entry in XRef table, ID=45, Generation=0, Position=0, ID of referenced object=6, Generation of referenced object=0
So the file is corrupt. And PDFsharp was not made to fix corrupt files, it was made to modify intact files.

Author:  Iurii [ Thu Dec 20, 2018 12:51 pm ]
Post subject:  Re: Invalid entry in XRef table

Hi Thomas,

thank you for the information.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/