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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Repairing PDF files
  FAQ FAQ  Forum Search   Register Register  Login Login

Repairing PDF files

 Post Reply Post Reply
Author
Message
TorbenM View Drop Down
Beginner
Beginner


Joined: 02 Jul 12
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote TorbenM Quote  Post ReplyReply Direct Link To This Post Topic: Repairing PDF files
    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 !!
 
 
Back to Top
TorbenM View Drop Down
Beginner
Beginner


Joined: 02 Jul 12
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote TorbenM Quote  Post ReplyReply Direct Link To This Post Posted: 02 Jul 12 at 1:57PM
Comment:
 
LoadFromFile() returns 1 on these files.
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3529
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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




Edited by Ingo - 02 Jul 12 at 2:51PM
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post 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 

Unfortunately corrupted PDF's are more common than they should be which make everyone's life difficult.
Back to Top
Ludwig View Drop Down
Team Player
Team Player


Joined: 07 May 15
Location: India
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ludwig Quote  Post ReplyReply Direct Link To This Post 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.

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.
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3529
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store