printing a PDF-File

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
ToniR
Posts: 6
Joined: Wed Apr 14 2004

printing a PDF-File

Post by ToniR »

Hi!

We want to print an existing PDF-File by using "PrintPDFDocument". But only the first page is printed. I've called "EnablePrinter" with our ActivationCode which should be for a professionell version - as mentioned in your manual. If calling "PrintPDFDocument" without "EnablePrinter" it's the same result...?

Do you have any ideas?

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

Post by Joan »

Hello Toni,

Please try the following:

1 - Please make sure that your code is using the activation code you received when purchasing the product and not the evaluation one.

2 - Please try to print another PDF document to a physical printer and see what will happen.
Custom Brand the Amyuni PDF Printer Driver http://www.amyuni.com/en/developer/branding/index.html

Amyuni PDF Converter tested for true PDF performance. View results - http://www.amyuni.com/benchmark
ToniR
Posts: 6
Joined: Wed Apr 14 2004

Post by ToniR »

Hello Joan,

1 - I'm using the correctly activation code: It's the same which I use to create a PDF-File. And that works without problems.

2 - No differences: only the "Startpage" is printed

Do you have any other ideas?
David
Amyuni Team
Posts: 89
Joined: Mon Dec 18 2006

Post by David »

Hello

If the first page is only being printed, can you verify that the value for EndPage is greater or equal to the number of pages in the document e.g.

PrintPDFDocument "C:\TEMP\test.pdf", "", 1, 1, 1

Will print only the first page of the document, while

PrintPDFDocument "C:\TEMP\test.pdf", "", 1, 5, 1

Will print page 1 upto page 5 of the document

If the number of pages is not known and we need to print the whole document, a very large integer can be used for the EndPage
parameter.

Hope that helps
ToniR
Posts: 6
Joined: Wed Apr 14 2004

Post by ToniR »

Hello David,

the problem is that

PrintPDFDocument "C:\TEMP\test.pdf", "", 1, 5, 1

prints only the first page of the larger PDF-File. There are no changes in the printed result when changing the ParaMeter "EndPage".

In your describtion is mentioned that we need a professionell version in order to print more than one page. Our licence should be a professionell version. May you check "PrintPDFDocument" with our licence-code? May be there is a mistake in that code...

regards
ToniR
Posts: 6
Joined: Wed Apr 14 2004

Post by ToniR »

Hello David,

I have to say "sorry"!

It was my own mistake because I used "EnablePrinter" instead of "SetLicenseKeyA" before using "PrintPDFDocument". That's why the advanced DLL-functions did not work as a wanted.

I hope it was not to much work for you...

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

Post by Joan »

Hello,

We have to say 'sorry' as well.

We should have thought about checking with your if you are calling SetLicenseKey() right before your PrintPDFDocument() call.
Custom Brand the Amyuni PDF Printer Driver http://www.amyuni.com/en/developer/branding/index.html

Amyuni PDF Converter tested for true PDF performance. View results - http://www.amyuni.com/benchmark
Post Reply