PDF file post processing trouble using 2.10h Developer

The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.
Post Reply
dpritts
Posts: 2
Joined: Mon Apr 05 2004
Contact:

PDF file post processing trouble using 2.10h Developer

Post by dpritts »

Recently upgraded to 2.10h of pdf converter professional developer version. Everything is working fine for creating pdf report files. I would like to use the Acrobat Reader 5 to automatically view the pdf file just created. Adding the post processing value to the SetDocFileProps options param. seems to have no affect.

Options param(long) = NoPrompt + UseFileName + Concatenate + PostProcessing. Decimal value of options param sent is 65543.

Adobe Acrobat Reader is associated application for "pdf" files extentions.

I am assuming here that launching the associated app is how post processing is to work. What am I missing?
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Please check that you are specifying the path and exe location of the Acrobat Reader 5 in the postprocessing key in the registry.

You can open the registry using Regedit from the Run command and locate the following key:
Hkey-Current-Config --> Software --> Amyuni PDF Printer --> PostProcessing
Then add the path of Acrobat Reader 5 on your sytem to that key.

Hope this helps.
dpritts
Posts: 2
Joined: Mon Apr 05 2004
Contact:

Post by dpritts »

Thanks for the registry info Joan, but post processing still eludes me.
Can you point me to a document or forum post that explains it?

Thanks again for your input.
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Please send us an e-mail to support@amyuni.com so we can send you a screenshot to illustarte this.

Thanks.
johnramesh
Posts: 6
Joined: Mon May 17 2004

Integrating our app from MS office via Amyuni PDF Converter

Post by johnramesh »

I am currently evaluating the developer version of PDF printer converter 2.10i-3. Currently i am trying to integrate this PDF printer converter to MS application such as word and excel using my application. When a document gets printed from MS word through 'Amyuni PDF Converter', our application should run and the created pdf file sholuld be copied in the predefined loaction selected by the user in our app.

How do i create using this tool?

I tried postporcessing in registry as mentioned and added 10000 in the SetFileNameOptions. nothing happens.

Any idea for this kind of integration.

Thanks
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

I didn't really get your requirements, but i will give you some info that might be helpful:

You need the Developer version of the PDF Converter, this version enables you to open Word and Excel from inside your application and print the documents to the PDF Printer and generate pdf files without any user interaction.

Copying the pdf files then to a specific directory should be done from inside your application using windows programming by example or the File object (if you are in an environment like VB).

Concerning postprocessing, please use the decimal value instead of the Hexadecimal one, this may help. 10000 Hex = 65536 Decimal

Hope this helps.
johnramesh
Posts: 6
Joined: Mon May 17 2004

Post by johnramesh »

I am using the powerbuilder sample provided at your web site and added the PostProcessing code as decimal value and added in SetFileNameOptions.

value for PostProcessing is C:\Program Files\Adobe\Acrobat 6.0\Reader\AcroRd32.exe under HKEY_CURRENT_CONFIG\Software\Amyuni PDF Converter. it is creating the pdf file properly but it is not bringing the AcroRd32.exe to run.

Please let me know what i am missing.

Following is the PB code.

Constant Long NoPrompt = 1 //do not prompt for file name
Constant integer UseFileName = 2 //use file name set by SetDefaultFileName
Constant Decimal PostProcessing = 10000

PDFPrinter = DriverInit(PrinterName)
SetResolution (PDFPrinter, 600)
SetDefaultConfig (PDFPrinter)
SetDefaultPrinter (PDFPrinter)
SetDefaultFileName (PDFPrinter, OutputFileDll)

// Set file options for the first report without concatenation
SetFileNameOptions (PDFPrinter,NoPrompt + UseFileName + PostProcessing)

// Enable the printer. Used with version 2.1 Developer edition
EnablePrinter(pdfPrinter,LicensedTo,ActivationCode)

// Print the list
dw_list.print()


// Reset file options
SetFileNameOptions (PDFPrinter, 0)

// Restore the default printer.
DriverEnd (PDFPrinter)

Thanks,
john
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

If you declare postprocessing as follows it will work:

Constant Long PostProcessing = 65536

I am not sure however what is the real difference in Powerbuilder between declaring a constant in decimal value or converting it to Decimal in the declaration.
johnramesh
Posts: 6
Joined: Mon May 17 2004

Post by johnramesh »

It works if i make it as an activex in powerbuilder and set the value 65536. But using as dll and setting this value does not work.

Thanks
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

I will forward this issue to our developers to check it.
Post Reply