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 - QP LoadFromFile error
  FAQ FAQ  Forum Search   Register Register  Login Login

QP LoadFromFile error

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


Joined: 24 Aug 12
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote purple Quote  Post ReplyReply Direct Link To This Post Topic: QP LoadFromFile error
    Posted: 24 Aug 12 at 3:01AM
I'm using Quick PDF Library 8.16
Any one encounter this bug in delphi7?
QP.LoadFromFile(f)=0
and QP.LastErrorCode is 0, this is not define in the reference guide.
 
and in Quick PDF Library 7.xx QP.LoadFromFile is 1.
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 24 Aug 12 at 7:55AM
Hi Purple!

This has to to with ansi strings and unicode strings.
QP handling has changed in this point.
It depends on what your dev-environment expects.
Try the LoadFromFileA and then it should work.
If you want to know more details try the search function
above and search with LoadFromFileA.

Cheers and welcome here,
Ingo

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: 27 Aug 12 at 4:02PM
What development environment are you using ?  If it is PowerBasic, PowerBuilder or WinDev then you may need to use the LoadFromFileA function as Ingo suggested. 

Is QP.UnlockKey successfully returning 1 ?  If it is then you don't need to use the LoadFromFileA function.

LoadFromFile errors can also be created by malformed PDF files.  You may need to send us the PDF file via the official support forums and we can see what could be causing the error.

Andrew.
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 27 Aug 12 at 9:44PM
Hi Andrew!

Value 1 comes from version 7.xx - there was only one version from LoadFromFile.
So he should try LoadFromFileA ;-)

Cheers, Ingo

Back to Top
purple View Drop Down
Beginner
Beginner


Joined: 24 Aug 12
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote purple Quote  Post ReplyReply Direct Link To This Post Posted: 11 Sep 12 at 3:55AM
I use Quick PDF Library 8.16 without fullsource code. I can not use the qp"LoadFromFileA" function.
The filename is unicode, I send the filename as widestring to qp"LoadFromFile", it return false,
and I change filename to A-Z string, send string to qp"LoadFromFile", and it works.
Is this a bug?  thank you
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: 11 Sep 12 at 4:30AM
Can you please create a support ticket at  http://www.quickpdflibrary.com/support/support-query.php  When you receive a ticket number then send a reply email and attach the problem file.

I will look at the PDF to see what the problem could be.  I see you are using Delphi 7 so the LoadFromFileA function doesn't apply in this case.

I assume that QP.UnlockKey is returning 1 also ?  If not then the licence key is not valid for QPL 8.xx for some reason.

Andrew.
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