Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
corrupt XREF sections |
Post Reply ![]() |
Author | |
ukobsa ![]() Senior Member ![]() Joined: 29 May 06 Location: Germany Status: Offline Points: 115 |
![]() ![]() ![]() ![]() ![]() Posted: 06 Oct 06 at 5:02AM |
Hi all,
sometimes I get pdfs from our customers with a corrupt xref section and cannot open it with QuickPDF. I know that it is possible to repair them with pdftk but I need a solution to do this with QuickPDF. As I have not found anything in QuickPDF to do such a repair: has someone implemented such a functionality and would be willing to shared the code? Or how would you implement such a repair functionality? Thankx, Uli |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi Uli!
With QuickPDF you can only test if a pdf is valid or not (CheckObjects). Chicks told in an older postings how to use pdftk in such a case. It's opensource - perhaps you can detect the relevant code-parts in pdftk? Or you can implement pdftk in your solution via shell/shellexecute... Best regards, Ingo |
|
![]() |
|
ukobsa ![]() Senior Member ![]() Joined: 29 May 06 Location: Germany Status: Offline Points: 115 |
![]() ![]() ![]() ![]() ![]() |
Hi Ingo,
I just looked for CheckObjects in source code, but this seems to do nothing really useful: it needs the document being already loaded by QuickPDF and then only decodes each object. And it doesn't returns a result of the check. So it doesn't help to check for xref sections. But thanks for giving this hint! greetings, Uli |
|
![]() |
|
marian_pascalau ![]() Debenu Quick PDF Library Expert ![]() Joined: 28 Mar 06 Location: Germany Status: Offline Points: 278 |
![]() ![]() ![]() ![]() ![]() |
Hi Ulrich, send please a test sample to me. I will check your error and propose a sollution. Gruß, Marian |
|
![]() |
|
ukobsa ![]() Senior Member ![]() Joined: 29 May 06 Location: Germany Status: Offline Points: 115 |
![]() ![]() ![]() ![]() ![]() |
Marian,
the problem with invalid XREFs mostly is caused by a wrong startxref values or invalid object positions on xref entries. What I tried to find is a way to rebuild an xref section from ground up. greetings, Uli |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store