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!
![]() |
PB 10.5 with QuickPDF 816 |
Post Reply ![]() |
Author | |
Ram ![]() Beginner ![]() ![]() Joined: 14 Aug 12 Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() Posted: 14 Aug 12 at 6:20AM |
Hi,
We are evaluating the QUICKPDF with PowerBuilder 10.5. I have written a piece of code to test the pdf merge functionality
Long ll_instance, ll_ret
ll_instance = QuickPDFCreateLibraryA() ll_ret = QuickPDFUnlockKey(ll_instance, 'j57g79ru43q3xz8su8wu3ej8y') if ll_ret = 1 then // ll_ret = QuickPDFAddToFileListA(ll_instance, 'List', 'one.pdf') ll_ret = QuickPDFAddToFileListA(ll_instance, 'List', 'two.pdf') ll_ret= QuickPDFMergeFileList(ll_instance, 'List', 'three.pdf') End if I am not able to get return value 1 (ll_ret = 1) in the unlockkey function. COuld you please help to overcome from this issue.
Thanks and regards,
Ram
|
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
PowerBuilder uses AnsiStrings and Quick PDF Library defaults to Unicode strings. We have added a set of 'A' functions to QPL to allow passing and returning of Ansi strings So instead of calling :- QuickPDFUnlockKey you call QuickPDFUnlockA Also QuickPDFLoadFromFileA QuickPDFRenderPageToFileA QuickPDFMergeFileListA ... Every QPL function that uses a string has a matching A function. Long ll_instance, ll_ret ll_instance = QuickPDFCreateLibrary() // << ll_ret = QuickPDFUnlockKeyA(ll_instance, 'j57g79ru43q3xz8su8wu3ej8y') // << if ll_ret = 1 then // ll_ret = QuickPDFAddToFileListA(ll_instance, 'List', 'one.pdf') ll_ret = QuickPDFAddToFileListA(ll_instance, 'List', 'two.pdf') ll_ret= QuickPDFMergeFileListA(ll_instance, 'List', 'three.pdf') // << End if Andrew. |
|
![]() |
|
Ram ![]() Beginner ![]() ![]() Joined: 14 Aug 12 Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() |
Hi Andrew
Thanks very much for sharing the tips to resolve the problem. It is working perfectly fine now. Is there any tips to create bookmarks inside the PDF's (like clicking on the master row should take me to detail rows in the same pdf document ). I am trying to incorporate linkage chain between master and detail records like we are doing inside the Datawindow linkage.
I really appreciate your timely help
Thanks and regards,
Ram
|
|
![]() |
|
Wheeley ![]() Senior Member ![]() ![]() Joined: 30 Oct 05 Location: United States Status: Offline Points: 146 |
![]() ![]() ![]() ![]() ![]() |
Ram,
Andrew is correct about Powerbuilder. Powerbuilder 10.5 does indeed use Ansi strings. BUT, if you upgrade to Powerbuilder 11.0 or greater, Powerbuilder then uses wide character (or sometimes called Unicode) strings. So depending on what functions you call you may have to change your code to accommodate Powerbuilder's internal changes. Just a little warning Wheeley |
|
![]() |
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