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 > General Discussion
  New Posts New Posts RSS Feed - SaveToFile() fails
  FAQ FAQ  Forum Search   Register Register  Login Login

SaveToFile() fails

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


Joined: 04 Dec 11
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ardi Quote  Post ReplyReply Direct Link To This Post Topic: SaveToFile() fails
    Posted: 04 Dec 11 at 4:40AM
Hello,
 
I tried to create my first pdf file. The steps taken were:
 1) Load the dll library:   LoadLibrary(...)
 2) Get functions addr: GetProcAddress(...) to get addr for:
      a) QuickPDFCreateLibrary
      b) QuickPDFReleaseLibrary
      c) QuickPDFDrawText
      d) QuickPDFSetOrigin
      e) QuickPDFSaveToFile      
 3) Then I invoke the functions in the following order to write a simple text:
      a) QuickPDFCreateLibrary
      b) QuickPDFSetOrigin
      c) QuickPDFDrawText
      d) QuickPDFSaveToFile
      e) QuickPDFReleaseLibrary
      f) FreeLibrary() to free the dll
 
All are successful except the QuickPDFSaveToFile() that returns 0. I am making sure that the parameters to the QuickPDFSaveToFile are of correct type (int, wchar_t*). The documentation for the QuickPDFSaveToFile() has no information on the possible causes of the failure.
 
Thanks for your help.
 
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: 04 Dec 11 at 1:50PM
Hi Ardi!

Good to know: What's the programming language you're using?

Cheers and welcome here,
Ingo

Back to Top
tadicboris View Drop Down
Beginner
Beginner


Joined: 17 Apr 15
Location: Belgrade
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote tadicboris Quote  Post ReplyReply Direct Link To This Post Posted: 17 Apr 15 at 8:18PM
Does anyone has solution for this problem. I am using PDF Activex in Xojo and cant save pdf file!
Back to Top
TLeoN12345 View Drop Down
Beginner
Beginner


Joined: 22 Jul 10
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote TLeoN12345 Quote  Post ReplyReply Direct Link To This Post Posted: 22 Apr 15 at 4:07PM
"Save to file" don't work for me too.Confused
Windows 8.1 - Visual Studio 13 - WPF-form - C#
PDF-Lib: ActiveX 11.12 32bit-Version
Back to Top
erico View Drop Down
Senior Member
Senior Member
Avatar

Joined: 24 Sep 14
Location: Minnesota USA
Status: Offline
Points: 51
Post Options Post Options   Thanks (0) Thanks(0)   Quote erico Quote  Post ReplyReply Direct Link To This Post Posted: 22 Apr 15 at 10:35PM
More detail regarding the failure would really help. Check LastErrorCode, provide details regarding the circumstances, code snippet perhaps?

If SaveToFile had an intrinsic error, I think everyone would be having this problem.
Eric O
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: 23 Apr 15 at 7:46AM
Like Erico told already:
LastErrorCode would help a lot.
Next questions:
Which version (dll or Delphi, lite, test, normal, activeX, 32- or 64-bit) you're using? 
Does this happen with all files?
Is it possible to upload a problem file anywhere for checking?
Here you can see samples how to work with QuickPDF:
 
Cheers, Ingo
 
Cheers,
Ingo

Back to Top
tadicboris View Drop Down
Beginner
Beginner


Joined: 17 Apr 15
Location: Belgrade
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote tadicboris Quote  Post ReplyReply Direct Link To This Post Posted: 24 Apr 15 at 8:38AM
Solution for Xojo (ActiveX) is quite simple. You must enter licence key before save file. Thanks for all.
Back to Top
mLipok View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 Apr 14
Location: Poland, Zabrze
Status: Offline
Points: 453
Post Options Post Options   Thanks (0) Thanks(0)   Quote mLipok Quote  Post ReplyReply Direct Link To This Post Posted: 28 Apr 15 at 10:09AM
I you are using commercial version, then you should enter you licence key, in the begining.
Just after you load the dll library.
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600
Back to Top
ogmiga View Drop Down
Beginner
Beginner
Avatar

Joined: 07 Sep 15
Location: Nigeria
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote ogmiga Quote  Post ReplyReply Direct Link To This Post Posted: 07 Sep 15 at 8:49PM
What is the unlock-key for the trail version. I cannot save to pdf file. Thanks
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