PDF Converter version 2.1. StartDoc return error.

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
Vlad
Posts: 1
Joined: Mon Apr 12 2004

PDF Converter version 2.1. StartDoc return error.

Post by Vlad »

I have application written in Borland C++ which works with PDF Converter version 1.58. which works on Windows XP.
Application includes two EXE.
One initiates PDF driver using PDFDriverInit, and other is using PDF driver.
All worked OK when I used version 1.58 but do not work with version 2.1.

To switch on version 2.10 I changed dll name from cdintf.dll to cdintf210.dll in code and copied all required files to application’s directory.
Function PDFDriverInit works OK (I can see printer in printer's list) but main part which work with PDF driver fail when call function
StartDoc(DC, &diInfo). This function returns -1. GetLastError returns 21 - The device is not ready.
What I am doing wrong?
Thanks
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello Vlad,

Using the PDF Converter version 2.10, you need to enable the printer before using it.

The printer is enabled by calling EnablePrinter(), this should be called right after PDFDriverInit and right before each printout, if you are catching the driver messages you can call EnablePrinter() in the EnablePre() event.

For more information on using version 2.10 please check our new Developers' manual "Common Driver Interface 210.pdf".
Post Reply