Print Page | Close Window

Repairing PDF files

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2327
Printed Date: 25 Apr 25 at 11:19AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Repairing PDF files
Posted By: TorbenM
Subject: Repairing PDF files
Date Posted: 02 Jul 12 at 1:50PM
We are receiving PDF files from external vendors, which are being processed and transferred to an archiving solution. A small percentage of these files are corrupted, and I would like to repair them before transferring them to the archive.
 
I have tried to process the files using LoadFromFile followed by SaveToFile, and then tested for the returncode from SaveToFile.
 
It seems that this handles some of the problems, but I would like to hear if there are better ways to repair the files.
 
I was thinking whether I should use "RenderToFile", but the PDF format is not supported !!
 
 



Replies:
Posted By: TorbenM
Date Posted: 02 Jul 12 at 1:57PM
Comment:
 
LoadFromFile() returns 1 on these files.


Posted By: Ingo
Date Posted: 02 Jul 12 at 2:48PM
Hi!

Result 1 means okay.
If the RenderToFile-functionalty is okay for you
you should use it. What does "format is not supported" mean?
You can render the pages to images and resample them later to a new pdf.
If it's not necessary to have any form fields on the pdf available this could be a (slow) solution.
I think the bigger poblem is to determine the corrupt pdf?

Cheers and welcome here,
Ingo




Posted By: AndrewC
Date Posted: 04 Jul 12 at 3:27AM
You should send some of the corrupted files to us and we may be able to add some extra processing code to handle the corrupted PDF's.  

If you create a support ticket you will then be able to send us a few sample files.

http://www.quickpdflibrary.com/support/support-query.php - http://www.quickpdflibrary.com/support/support-query.php  

Unfortunately corrupted PDF's are more common than they should be which make everyone's life difficult.


Posted By: Ludwig
Date Posted: 04 Apr 16 at 1:01PM
I am trying to set the Field Values of the following PDF using Debenu. 
But it always Crashes. My code works fine for other PDFs.

I am using the Android Version of the Quick Pdf Library.
http://drive.google.com/file/d/0B_6Z82hoBteTMzAwY2U3ZE13QkU/view?usp=sharing" rel="nofollow - https://drive.google.com/file/d/0B_6Z82hoBteTMzAwY2U3ZE13QkU/view?usp=sharing

However if I open the PDF in Acrobat Reader before using it with the function, it asks me if I would like save the changes(Even though I make no changes). If I click yes, the pdf size is reduces and it stops crashing.


Posted By: Ingo
Date Posted: 04 Apr 16 at 7:47PM
Ludwig. You've already made a post regarding this issue.
Additionally it's not good to post a new prob at the end of a thread from 2012 :(



-------------
Cheers,
Ingo




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk