Blank page printed after BatchConvertEx

If you are a C/C++/C# developer and have any questions about using our products from your application here is the place to post them.
Post Reply
lovison@algolsh.it
Posts: 30
Joined: Fri Apr 04 2003

Blank page printed after BatchConvertEx

Post by lovison@algolsh.it »

Hi,
I have Amyuni Document Converter 2.10e Developer Edition.
With this C++ code :

/* Set PDF Printer as Default */
EnablePrinter(hPDFPrinter,COMPANY,CODE);
BatchConvertEx(hPDFPrinter,"prova.doc");

/* Restore Previous default Printer */
EnablePrinter(hPDFPrinter,COMPANY,CODE);
PrintPDFDocument("prova.pdf","",1,1,1);

, I obtain correct pdf on paper with Windows 2000 / XP / 2003,
but on some PCs with Win 98 I have a blank paper, on correct
printer, but a blank paper...

Do you have any suggestion??
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

I am not sure I got what you mean by: "on some PCs with Win 98 I have a blank paper, on correct printer, but a blank paper... "

Do you mean that an extra empty page is added when printing the pdf document to the printer?
Or en extra empty page is added to the pdf file on screen?

In most cases the empty page is added because the page size of the pdf file is different from the paper size of the printer.

Hope this helps.
lovison@algolsh.it
Posts: 30
Joined: Fri Apr 04 2003

Post by lovison@algolsh.it »

Joan wrote: Do you mean that an extra empty page is added when printing the pdf document to the printer?
Or en extra empty page is added to the pdf file on screen?
Sorry for my poor english...
On screen the pdf file is correct with only one page with text, but when I print this file with PrintPDFDocument(...),
I obtain only one blank page.
If I print this file with ShellExecute("print"...), I obtain correct page as on screen....
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Please send your pdf file along with some explanation to support@amyuni.com so we can check it futher.
lovison@algolsh.it
Posts: 30
Joined: Fri Apr 04 2003

Blank page printed after BatchConvertEx

Post by lovison@algolsh.it »

Hi,
I have found the problem!
The "bad" PCs had installed Word 97 and Word 2000: I removed Word 97 and voilà the PrintPDFDocument prints correct page.
Thanks.
Post Reply