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!
![]() |
Repairing PDF files |
Post Reply ![]() |
Author | |
TorbenM ![]() Beginner ![]() Joined: 02 Jul 12 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() 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 !!
|
|
![]() |
|
TorbenM ![]() Beginner ![]() Joined: 02 Jul 12 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
Comment:
LoadFromFile() returns 1 on these files.
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
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 Edited by Ingo - 02 Jul 12 at 2:51PM |
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
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
Unfortunately corrupted PDF's are more common than they should be which make everyone's life difficult. |
|
![]() |
|
Ludwig ![]() Team Player ![]() Joined: 07 May 15 Location: India Status: Offline Points: 33 |
![]() ![]() ![]() ![]() ![]() |
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. 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.
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
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