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 pdf and Crop mark |
Post Reply |
Author | |
mpavas
Beginner Joined: 08 Jan 09 Location: India Status: Offline Points: 6 |
Post Options
Thanks(0)
Posted: 08 Jan 09 at 3:49AM |
Hello,
I have two questions: #1. Identify corrupt pdf There are certain files which can not be read by the pdf file and it throws 110 error. Is there a way we can identify that the file is corrupt. In this case the file size is not 0 kb. #2. How can I identify if there are crop marks available in the PDF file, before I can process the crop mark. Please suggest |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi!
Your questions seems to me as if you're NOT using QuickPDF from iSED but any other pdf-library? If not: Which version of QuickPDF you are using? Cheers, Ingo |
|
mpavas
Beginner Joined: 08 Jan 09 Location: India Status: Offline Points: 6 |
Post Options
Thanks(0)
|
I am using iSED.dll having version of 4.41.1.1
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Please try the last version 5.22 from the library section.
And see if your probs still exist. Cheers, Ingo |
|
mpavas
Beginner Joined: 08 Jan 09 Location: India Status: Offline Points: 6 |
Post Options
Thanks(0)
|
Actually these are not the problems. I want to know if there are any options to check if there are pdf crop marks on a pdf before I remove them. Just to reduce the overhead of the application.
Other question is: If there is a PDF which is corrupt, how can I identify that pdf is corrupt? |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi!
Crop: Use the function "HasPageBox". If the returning value is "2" then it's a crop box. Corrupt: Use the function "LoadFromFile". If the returning value is "1" then the pdf could be load successfully - which means that the file is okay. Cheers, Ingo |
|
mpavas
Beginner Joined: 08 Jan 09 Location: India Status: Offline Points: 6 |
Post Options
Thanks(0)
|
Thanks Ingo! I will surely try this. Also is it recommended to use the 5.22 library?
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
It's the latest version as dll - Try it.
Normally newer versions have less bugs and more functions... Please read in the library section ;-) Cheers, Ingo |
|
mpavas
Beginner Joined: 08 Jan 09 Location: India Status: Offline Points: 6 |
Post Options
Thanks(0)
|
Thanks, I have HasPageBox is fine.
About the other issue with corrupt pdf file. I get the below error: there was an error processing a page. There was a problem reading this document (110) And LoadFromFile returns 1. |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi!
Who raises these messages? "there was an error processing a page. There was a problem reading this document (110)" It's not QuickPDF. Why not reading the pdf page by page... getting some data from the pages... and if there's an error -> That's it. Perhaps the errors are always from the same pdf-engine (check creator and producer) the check will be much faster. Cheers, Ingo Edited by Ingo - 09 Jan 09 at 7:13AM |
|
mpavas
Beginner Joined: 08 Jan 09 Location: India Status: Offline Points: 6 |
Post Options
Thanks(0)
|
Yes, the dll do not raise this error.
When I open the PDF on a pdf reader manually i get this error. however the LoadFromFile method returns 1 i.e success. |
|
zlatan24
Beginner Joined: 22 Jul 10 Status: Offline Points: 2 |
Post Options
Thanks(0)
|
There is
a program which is able to help in this complicated situation. It owns many
other facilities such as restoring data after power failures, virus attacks.
pdf recovery has features allowing to
solve out problems with corrupted or lost pdf documents.
|
|
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