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!
![]() |
SelectPage Method fails |
Post Reply ![]() |
Author | |
Eddy ![]() Beginner ![]() Joined: 17 Nov 08 Status: Offline Points: 16 |
![]() ![]() ![]() ![]() ![]() Posted: 17 Nov 08 at 6:55AM |
Hi every body,
I've got a so strange issue I can't solve myself. I've got a pdf file, containing 4 pages. When I open it with Acrobat reader or Foxit reader, there is no problem. But when I try to do: oPdf.SelectPage 4, an error appears, telling me that there is an error, with no explanation (error -2147418113 (8000ffff)). Anybody can explain me what's wrong ? Note that this error occurs only with few pdf files, every time on the last page... Thanks in advance Eddy -------------------------- I've partially solved the problem. It appears that my pdf was not perfect. There was a conflict of font. However, what is strange is that I was able to open the pdf with a reader, without any error or warning message... Edited by Eddy - 17 Nov 08 at 11:14AM |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi Eddy,
first of all:
What version do you use?
With key or without?
The adobe reader installation is about 100 mb - and QuickPDF?
The adobe reader can manage faulty documents with a lot of dll-stuff instead of the smaller QuickPDF.
A repairing run through/with PDFTK can help before using QuickPDF.
Try something similar to this one:
QP := TiSEDQuickPDF.Create;
try QP.UnlockKey('mypersonalkey'); QP.LoadFromFile(fneu); If ( QP.Encrypted > 0 ) Then QP.Unencrypt; x := QP.PageCount; For i := 1 to x Do begin QP.SelectPage(i); // and so on ...
Best regards and welcome here,
Ingo
Edited by Ingo - 17 Nov 08 at 12:30PM |
|
![]() |
|
Eddy ![]() Beginner ![]() Joined: 17 Nov 08 Status: Offline Points: 16 |
![]() ![]() ![]() ![]() ![]() |
Thank you for your response, Ingo, I will try what you propose, to unencrypt before selecting the page.
Indeed, I have not been precise enough in my question.
I work in VB6, with quickpdf version 5.22.0.119 (dll version number).
I don't understand the question With key or not ? Do you mean the unlockkey ? If yes, I have one.
I will give you more details after testing Ingo's proposition...
Bye and thank you again.
|
|
![]() |
|
Eddy ![]() Beginner ![]() Joined: 17 Nov 08 Status: Offline Points: 16 |
![]() ![]() ![]() ![]() ![]() |
Hello again,
Well, I've tried your proposition, Ingo, but the pdf document in error is not encrypted, so, there is no change at all. However, I've noticed that the "wrong" pdf files contain a font (ARIAL), which size is 367112 !!! I don't know how the pdf is generated : it cames from OpenOffice or Ms office, I suppose. Is it possible to modify or delete an embbeded font ? Thank you in advance for your reponses. |
|
![]() |
|
DELBEKE ![]() Debenu Quick PDF Library Expert ![]() ![]() Joined: 31 Oct 05 Location: France Status: Offline Points: 151 |
![]() ![]() ![]() ![]() ![]() |
Can you upload the file somewhere to have a try ?
|
|
![]() |
|
Eddy ![]() Beginner ![]() Joined: 17 Nov 08 Status: Offline Points: 16 |
![]() ![]() ![]() ![]() ![]() |
The pdf file is available at : http://dl.free.fr/jOOTHixRC
It's a French site, just click on "Télécharger ce fichier" to download it. Thank you |
|
![]() |
|
DELBEKE ![]() Debenu Quick PDF Library Expert ![]() ![]() Joined: 31 Oct 05 Location: France Status: Offline Points: 151 |
![]() ![]() ![]() ![]() ![]() |
Good news, the next version of the library open the pdf without any problem. Just be patient a little. It's comming soon
Edited by DELBEKE - 19 Nov 08 at 6:03AM |
|
![]() |
|
Eddy ![]() Beginner ![]() Joined: 17 Nov 08 Status: Offline Points: 16 |
![]() ![]() ![]() ![]() ![]() |
I can also open the documentwith my version of quickpdf. The problem is I can not do a SelectPage on the last page of the document. Could you verify that point ?
Do you know when the new version will be available ? Eddy |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi Eddy,
i've tested it with your doc.pdf this moment and it works. Page 16 could be selected. You can make a clear preview (RenderDocumentToFile) from each page and you can initiate textextraction from each page. The current (still not published) version won't have any problems with your document.
I think it's still a matter of weeks publishing the new version.
Best regards,
Ingo Edited by Ingo - 24 Nov 08 at 3:46PM |
|
![]() |
|
Fred ![]() Beginner ![]() Joined: 18 Apr 09 Location: United States Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() |
I'm using the latest version of QuickPdf and I've got the same issue:
In fact, on a 1 page doc, SelectPage(0) works but SelectPage(1) doesn't.
Looks like page count is a 0 based counter...
|
|
![]() |
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