Batch converting word to pdf

This Forum is for the use of Clarion For Windows - Software Developers requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers SDK (only) - Please use the PDF-Tools SDK Forum for Library DLL assistance.

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

Post Reply
marisoft
User
Posts: 57
Joined: Sat Nov 12, 2005 3:39 pm
Contact:

Batch converting word to pdf

Post by marisoft » Fri Dec 29, 2006 8:29 pm

Hi,

I am trying to modify the Office Inside example to convert a bunch of Word docs to pdf without much success.

Calling the procedure once with the doc filename and destination filename as parameters works great, but as soon as I call it from a process it fails.

After first run I get a "PDFXC3_Globalinit functions failed" and now the pdf is not saved silently but instead the PdfXchange printer driver save dialog is presented.

What am I doing wrong ?

Cheers,
Poul Jensen
.::Poul Jensen::.

Clarion developer

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

Post by Tracker - Clarion Support » Fri Dec 29, 2006 8:52 pm

Hi Poul!

Late last week we made some changes to the behavior of the PDF-XChange Driver OI handling to correct a problem that sounds very much like yours.

Are you using a version of PDF-XChange Driver downloaded this week? If not I suggest downloading the most current build 110 version and try again.

HTH!
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

marisoft
User
Posts: 57
Joined: Sat Nov 12, 2005 3:39 pm
Contact:

Post by marisoft » Fri Dec 29, 2006 10:43 pm

Hi Craig,

I have downloaded from the site but even though the version displayed on the download page says v.3.60110 19th Dec, 2006 the installation file is stamped 3.60109.

Which one is correct ?

Cheers,
Poul Jensen
.::Poul Jensen::.

Clarion developer

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

Post by Tracker - Clarion Support » Sat Dec 30, 2006 11:38 am

Hi Poul!

I downloaded the indicated file and checked it. Although the installation file PDFXV3SDKPRO_CW.EXE is stamped 3.60109.0.0, the files contained are stamped 3.6.0.110.

I'll bring this to John's attention.
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

marisoft
User
Posts: 57
Joined: Sat Nov 12, 2005 3:39 pm
Contact:

Post by marisoft » Sat Dec 30, 2006 3:55 pm

OK.

This means I still have the problem.

Cheers,
/Poul
.::Poul Jensen::.

Clarion developer

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

Post by John - Tracker Supp » Sun Dec 31, 2006 4:41 pm

Hi Poul,

Apologies for the confusion - I have updated the build info on the install and uploaded - though all the files remain as they were.

Can I ask also - have you tried our standard demo app's to ensure all is functioning correctly with the installation ?
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

marisoft
User
Posts: 57
Joined: Sat Nov 12, 2005 3:39 pm
Contact:

Post by marisoft » Mon Jan 01, 2007 12:54 pm

Hi,

Yes demo apps work.

I am actually using PxcWOI36.app for testing this.
- Calling the main procedure with inputfile and outputfile as parameter works ok.
- Calling it repeatedly from a process does not work.

I do note that there is an orphaned embed: %PXCDV3PBeforeRunEmbed.
This containt this code:
PXCDRV32:PrintInfo.printerDriver = PXCDRV32.GetPrinterDriver()

If I check in the EmbedEditor it looks like the code is placed correctly before:
START(PrintProc, 32000, PXCDRV32:PrintInfo)

Cheers,
Poul Jensen
Attachments
dan_pdf002.zip
Source-code for modyfied procedure.
(3.17 KiB) Downloaded 239 times

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

Post by Tracker - Clarion Support » Mon Jan 01, 2007 1:53 pm

Hi Poul!

Due to a long-standing glitch in the template handling, all #EMBED() points within #CODE templates appear as Orphans in the embed tree.

HTH!
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

marisoft
User
Posts: 57
Joined: Sat Nov 12, 2005 3:39 pm
Contact:

Post by marisoft » Mon Jan 01, 2007 10:03 pm

Hi Craig,

OK - noted.

/Poul
.::Poul Jensen::.

Clarion developer

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

Post by John - Tracker Supp » Tue Jan 02, 2007 6:02 pm

Thanks Poul.
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

marisoft
User
Posts: 57
Joined: Sat Nov 12, 2005 3:39 pm
Contact:

Post by marisoft » Mon Jan 08, 2007 7:33 am

Thanks Craig,

Problem solved.

See this thread: http://www.docu-track.com/forum/viewtop ... 0440#10440
.::Poul Jensen::.

Clarion developer

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

Post by John - Tracker Supp » Mon Jan 08, 2007 9:31 am

:)
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

Post Reply

Return to “PDF-XChange Drivers (only) API SDK - For Clarion For Windows Developers only Please”