PDF Toolbox Merge Code 3.6 Template Error

This Forum is for the use of Clarion For Windows - Software Developers requiring help and assistance for Tracker Software's PDF-Tools SDK of Library DLL functions(only) - Please use the PDF-XChange Drivers API SDK Forum for assistance with all PDF Print Driver related topics.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Chris - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software, Tracker - Clarion Support, John - Tracker Supp, Support Staff, moderators

Post Reply
Timo M
User
Posts: 5
Joined: Fri Mar 03, 2006 12:45 pm

PDF Toolbox Merge Code 3.6 Template Error

Post by Timo M » Tue Mar 11, 2008 8:15 am

Hi,

I tried to update our application using version 2.5 of the PDF Tools Clarion SDK to the latest v3.6 version of the SDK. Installer file PDFTV3SDK_CW.EXE is dated 2008-03-04 10:25 .

Regular PDF Report extensions work well, but the PDF Toolbox Merge Code v3.6 -template gives the following errors in the Clarion IDE:

Unknown Variable 'PDFXTBFileName'
Unknown Variable 'PDFXTBPreviewType'
Unknown Variable 'PDFXTBOptimFonts'
Unknown Variable 'PDFXTBOptimNames'
Unknown Variable 'PDFXTBOptimCompression'
Unknown Variable 'PDFXTBAuthor'
Unknown Variable 'PDFXTBTitle'
Unknown Variable 'PDFXTBSubject'
Unknown Variable 'PDFXTBCreator'
Unknown Variable 'PDFXTBKeywords'

I unregistered all the previous versions PDF Tools templates in the template registry and did a clean install of the v.3.6 PDF Tools templates, but this didn't fix the problem.

I can reproduce this with the legtbx36.app example application (attached): when I first compile this application as supplied with the installer, it works. In this application there is a procedure called MergeMultipleFilesTPL which contains an instance of PDF Toolbox Merge Code v3.6.

However, if I insert a second, identical instance of the PDF Toolbox Merge Code v3.6 -template in the procedure MergeMultipleFilesTPL, I get the same errors as with our own application. It would appear that the latest template PDFTBX36.TPL uses there variables but they are not fully set when inserting the Merge extension.

I'm using Clarion EE 6.3.9056 and Clarion template chain.

Best regards,
--
Timo Multanen
Attachments
legtbx36.zip
legtbx36.app
(44.79 KiB) Downloaded 152 times

John - Tracker Supp
Site Admin
Posts: 8204
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Tue Mar 11, 2008 8:43 am

Hi Toimo,

thanks for the message - I will ask Craig to investigate ASAP.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

Tracker - Clarion Support
Site Admin
Posts: 1412
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Post by Tracker - Clarion Support » Tue Mar 11, 2008 3:46 pm

Hi Timo!

Thanks very much for reporting this!

It appears that we had lost part of our Merge tabsheet.

Attached is a corrected replacement pdftbx36.tpl file.
Attachments
PDFTBX36tpl.zip
PDFTBX36.tpl with corrected Merge Template.
(36.12 KiB) Downloaded 162 times
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

Timo M
User
Posts: 5
Joined: Fri Mar 03, 2006 12:45 pm

Post by Timo M » Wed Mar 12, 2008 8:17 am

Thanks for a quick fix!

This fixed the merge template. Unfortunately, now when I compile the example application I get errors in the module
\Clarion6\3rdParty\libsrc\pdfmgr36.clw:

Syntax error: Field not found: FONTNAME

and source lines that cause this error look like this:

SELF.WMQ.FontName = CLIP(FontName)

It seems like the PDFWatermarksClass doesn't have a field called FontName.

See attached screenshot for line numbers.

Best regards,
--
Timo Multanen
Attachments
pdfmgr36_compile_error.zip
Clarion 6 compile error of legtbx36.app
(14.6 KiB) Downloaded 153 times

John - Tracker Supp
Site Admin
Posts: 8204
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Wed Mar 12, 2008 9:21 am

Hi Timo,

this was fixed a few days ago I believe but you obviously dont have that build - both of the fixes are now available in the main download.

http://www.tracker-software.com/downloads/Clarion/

HTH
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

Tracker - Clarion Support
Site Admin
Posts: 1412
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Post by Tracker - Clarion Support » Wed Mar 12, 2008 4:22 pm

Hi Timo!

I just checked the pdfmgr36.clw file and noticed two things:

1. Fontname does exist in those locations, usually as a parameter in the PROCEDURE statement.

2. The line numbers all seem to be 3 lines down from where the Fontname appears.

Please download the latest version. That should fix your problem.
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

John - Tracker Supp
Site Admin
Posts: 8204
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Wed Mar 12, 2008 4:48 pm

Just as a postscript Timo/Craig,

I am just refreshing all the Clarion builds as we I write this to be sure all is up to date.

Please wait approx 60 mins.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

Timo M
User
Posts: 5
Joined: Fri Mar 03, 2006 12:45 pm

Post by Timo M » Wed Mar 12, 2008 8:48 pm

Thanks, I downloaded the latest release and everything works excellently now. Amazing support from you guys, I must say!

I converted our application set to version 3.6.130 version of the PDF-XChange with ease. The 2.5 to 3.6 TXA converter is a real time-saver.

Cheers,
--
Timo

Post Reply

Return to “PDF-Tools SDK (DLL Libraries Only) - Clarion For Windows Developers Only Please”