PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Mon Apr 22, 2019 10:42 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Mon Aug 27, 2018 11:38 am 
Offline

Joined: Mon Aug 27, 2018 11:02 am
Posts: 5
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 39 times
Top
 Profile  
Reply with quote  
PostPosted: Wed Dec 19, 2018 12:44 pm 
Offline

Joined: Mon Aug 27, 2018 11:02 am
Posts: 5
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.


Top
 Profile  
Reply with quote  
PostPosted: Wed Dec 19, 2018 3:50 pm 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 464
Location: CCAA
PDFsharp was not built to deal with corrupt PDF files.

Which error message do you get from PDFsharp?

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
PostPosted: Thu Dec 20, 2018 9:33 am 
Offline

Joined: Mon Aug 27, 2018 11:02 am
Posts: 5
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


Top
 Profile  
Reply with quote  
PostPosted: Thu Dec 20, 2018 12:48 pm 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 464
Location: CCAA
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.

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
PostPosted: Thu Dec 20, 2018 12:51 pm 
Offline

Joined: Mon Aug 27, 2018 11:02 am
Posts: 5
Hi Thomas,

thank you for the information.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group