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!
Access violation with CopyPageRanges in Delphi XE2 |
Post Reply |
Author | |
Wolfgang Denz
Beginner Joined: 22 Jun 12 Status: Offline Points: 4 |
Post Options
Thanks(0)
Posted: 22 Jun 12 at 8:26AM |
Hi all,
when executing the following code in Delphi XE2 I get an access violation: AktPDF := PDFLibrary.SelectedDocument; //default 1-page Doc if not PDFLibrary.LoadFromFile(ExtractFilePath(Application.ExeName)+'\Org.pdf','') = 1 then halt(0); orgPDF := PDFLibrary.SelectedDocument; PDFLibrary.SelectDocument(aktPDF); PDFLibrary.CopyPageRanges(orgPDF,'1'); // -> access violation when copying first page of loadad pdf I'm really stuck at the moment Can anyone give me a hint where my problem is? Thanks Wolfgang
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Wolfgang!
What's before the line with "AktPDF"? Is there an additional LoadFromFile? If not that's the prob. Cheers and welcome here, Ingo |
|
Wolfgang Denz
Beginner Joined: 22 Jun 12 Status: Offline Points: 4 |
Post Options
Thanks(0)
|
Hello Ingo,
no the AktPDF should point to the initial Document when creating the QPDFLib. The error also occurs if I change the fist line to AktPDF := PDFLibrary.NewDocument; Regards Wolfgang
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
you should check the value in "AktPDF".
|
|
Wolfgang Denz
Beginner Joined: 22 Jun 12 Status: Offline Points: 4 |
Post Options
Thanks(0)
|
Hello Ingo,
AktPDF and orgPDF both seem to be a valid DocID. orgPDF is one digit hiher than AktPDF, so this seems to be OK for me. Wolfgang |
|
AndrewC
Moderator Group Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
|
The PDF file is most likely maformed or corrupted. Acrobat often repairs many documents which are corrupted and so it is not always easy to see if a document is corrupt or not.
You may need to send the PDF's to the official support pages and we can check the file. Andrew. |
|
Wolfgang Denz
Beginner Joined: 22 Jun 12 Status: Offline Points: 4 |
Post Options
Thanks(0)
|
As the PDF is a confidential document, how can I send the file to you?
Regards Wolfgang
|
|
AndrewC
Moderator Group Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
|
If you create a support case using the link -
http://www.quickpdflibrary.com/support/support-query.php then you will be given a case number. If you then reply to that email you can attach the file and it will only be accessible by the support staff at Debenu and will be treated as confiential.
Andrew.
|
|
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