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 - SelectPage Method fails
  FAQ FAQ  Forum Search   Register Register  Login Login

SelectPage Method fails

 Post Reply Post Reply
Author
Message Reverse Sort Order
Fred View Drop Down
Beginner
Beginner


Joined: 18 Apr 09
Location: United States
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fred Quote  Post ReplyReply Direct Link To This Post Topic: SelectPage Method fails
    Posted: 18 Apr 09 at 5:39PM
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...
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 24 Nov 08 at 3:44PM
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
Back to Top
Eddy View Drop Down
Beginner
Beginner


Joined: 17 Nov 08
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Eddy Quote  Post ReplyReply Direct Link To This Post Posted: 19 Nov 08 at 7:35AM
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
Back to Top
DELBEKE View Drop Down
Debenu Quick PDF Library Expert
Debenu Quick PDF Library Expert
Avatar

Joined: 31 Oct 05
Location: France
Status: Offline
Points: 151
Post Options Post Options   Thanks (0) Thanks(0)   Quote DELBEKE Quote  Post ReplyReply Direct Link To This Post Posted: 19 Nov 08 at 6:02AM
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
Back to Top
Eddy View Drop Down
Beginner
Beginner


Joined: 17 Nov 08
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Eddy Quote  Post ReplyReply Direct Link To This Post Posted: 19 Nov 08 at 5:53AM
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
Back to Top
DELBEKE View Drop Down
Debenu Quick PDF Library Expert
Debenu Quick PDF Library Expert
Avatar

Joined: 31 Oct 05
Location: France
Status: Offline
Points: 151
Post Options Post Options   Thanks (0) Thanks(0)   Quote DELBEKE Quote  Post ReplyReply Direct Link To This Post Posted: 19 Nov 08 at 5:16AM
Can you upload the file somewhere to have a try ?
Back to Top
Eddy View Drop Down
Beginner
Beginner


Joined: 17 Nov 08
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Eddy Quote  Post ReplyReply Direct Link To This Post Posted: 19 Nov 08 at 4:51AM
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.
Back to Top
Eddy View Drop Down
Beginner
Beginner


Joined: 17 Nov 08
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Eddy Quote  Post ReplyReply Direct Link To This Post Posted: 18 Nov 08 at 8:04AM
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.
 
 
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 17 Nov 08 at 12:26PM
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
Back to Top
Eddy View Drop Down
Beginner
Beginner


Joined: 17 Nov 08
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote Eddy Quote  Post ReplyReply Direct Link To This Post 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
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. About — Contact — Blog — Support — Online Store