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!
Python Example |
Post Reply |
Author | |
swillis
Beginner Joined: 04 Nov 09 Location: US Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 04 Nov 09 at 8:50PM |
This is a short Python example:
import win32com.client as w32c LicenseKey = "YourLicenseKeyHere" FileName = 'hello-world.pdf' QP = w32c.Dispatch(r"QuickPDFAX0715.PDFLibrary") Result = QP.UnlockKey(LicenseKey) if Result == 1: print "Valid license key" QP.DrawText(100, 500, "Hello world from Python") if QP.SaveToFile(FileName) == 1: print "File " + FileName + " written successfully" Edited by swillis - 04 Nov 09 at 8:53PM |
|
hbhntz
Beginner Joined: 13 Jun 12 Status: Offline Points: 6 |
Post Options
Thanks(0)
|
Ok thank you for your demo. import win32com.client as w32c LicenseKey = "YourLicenseKeyHere" FileName = '2.pdf' QP = w32c.Dispatch(r"QuickPDFAX0815.PDFLibrary") Result = QP.UnlockKey(LicenseKey) if Result == 1: print "Valid license key" QP.DrawText(100, 500, "Hello world from Python") if QP.SaveToFile(FileName) == 1: print "File " + FileName + " written successfully" I looked at my your code doesn't work, QP. UnlockKey (LicenseKey) returned results for 0, can you answer to it? Thank you |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Sorry for this question ... ;-)
I'm sure you didn't use the string "YourLicenseKeyHere"... You replaced it by your real key i think??? ;-) What did you got from this line: w32c.Dispatch(r"QuickPDFAX0815.PDFLibrary")? Cheers and welcome here, Ingo |
|
hbhntz
Beginner Joined: 13 Jun 12 Status: Offline Points: 6 |
Post Options
Thanks(0)
|
Thank you for your reply.
I want to ask " YourLicenseKeyHere" is to point to what? The key products? Or PDF files key? Can you give a demo I? |
|
Wheeley
Senior Member Joined: 30 Oct 05 Location: United States Status: Offline Points: 146 |
Post Options
Thanks(0)
|
Please go to www.quickpdflibrary.com and read the function reference. This is a user to user forum and we are here to help but you got to do some research also. Simply asking for a simple answer is wasting our time.
Wheeley |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
You'll need a personal test-licence-key directly from product-page
and not from here. On the original product-page you'll get many start-up-tutorials for different languages, too. Cheers, Ingo |
|
hbhntz
Beginner Joined: 13 Jun 12 Status: Offline Points: 6 |
Post Options
Thanks(0)
|
ok thank you
|
|
hbhntz
Beginner Joined: 13 Jun 12 Status: Offline Points: 6 |
Post Options
Thanks(0)
|
Thank YOu, I try to do
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Don't try it ... do it ;-)
At least your code should look similar to this one: LicenseKey = "123456789xyz123" FileName = '2.pdf' QP = w32c.Dispatch(r"QuickPDFAX0815.PDFLibrary") Result = QP.UnlockKey(LicenseKey) if Result == 1: print "Valid license key" |
|
hbhntz
Beginner Joined: 13 Jun 12 Status: Offline Points: 6 |
Post Options
Thanks(0)
|
ok
Thank YOu
Ingo
What you say is very right. |
|
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