Hello,
I'm currently evaluating the PDFPrint Command Line product in order to integrate it in my application and I have some issues.
My first step is to make a proof of concept in order to check if this tool matches with our requirements and, in the second hand we will discuss about licensing.
Requirements:
- Print a PDF file on a network printer
- Specify bin/tray of the printer
- Print in a "noscale" mode
- High performance
Application overview:
This is a client/server application, writing in .NET C# and hosted on Windows Server 2003 32 bits (currently) and tomorrow on Windows Server 2008 R2 64 bits.
This application allows users to print archived pdf files (which were generated by the application on the web server side).
My goal is to use PDFPrint Command Line product in order to not have any link in the source code of the application for this feature.
Issues:
I created an dedicated application which run pdfprint.exe as a command line.
The executed command line is like this : pdfprint.exe -printer "\\XXX\PRINTER" -scalex 100 -scaley 100 -chgbin 259 "\\XXX\sample.pdf"
"No scale" works with the options : -scalex 100 -scaley 100
1) Performance
In the output in can read that it takes 400ms to send the file to the printer, through a printer spooler. After 1 second, I didn't see the document in the printer spooler : that is good !
But after this fast step, the printer is blocked during 5 minutes (on WS 2008) and 10 minutes (on WS 2003), before printing the page.
Why does it take this time to print ?
Is it due to the evaluation license of the product ?
Is there an option to accelerate the printing ?
2) Bin/tray
The option -chgbin doesn't work.
The first bin is always used.
Is it the good option to specify the bin I want to reach ?
I used the option -listbins to be sure that the value 259 reached the second bin.
An additional question : does this option change the default settings for this printer ?
Thank you in advance for your answer.
Customer
-----------------------------------
>>1) Performance
>>Why does it take this time to print ?
>>Is it due to the evaluation license of the product ?
>>Is there an option to accelerate the printing ?
Please run following command line to try again, the following command line will print your PDF file faster,
pdfprint.exe -raster2 -rasterbwtext -rasterbitcount 1 -xres 150 -yres 150 C:\input.pdf
OR
pdfprint.exe -shell C:\test.pdf
pdfprint.exe -shell2 C:\test.pdf
>>2) Bin/tray
>>The option -chgbin doesn't work.
>>The first bin is always used.
>>Is it the good option to specify the bin I want to reach ?
>>I used the option -listbins to be sure that the value 259 reached the second bin.
You need add Everyone user account to target printer, and allow Full Control Permission to Everyone user account, then you can change the bin/tray properly.
Please refer to following web pages for more information,
https://www.verypdf.com/wordpress/201311/verypdf-command-line-paper-source-39255.html
https://www.verypdf.com/wordpress/201107/question-about-pdfprint-tray-selection-ok-1420.html
https://www.verypdf.com/wordpress/201109/change-paper-size-and-paper-tray-in-pdf-print-sdk-3427.html
https://www.verypdf.com/wordpress/201110/pdfprint-chgbin-can-not-change-the-tray-to-printer-3542.html
https://www.verypdf.com/wordpress/201106/change-bintray-in-pdf-print-command-line-595.html
https://www.verypdf.com/wordpress/201111/how-can-i-change-the-printer-tray-to-print-pdf-via-a-command-line-13235.html
>>An additional question : does this option change the default settings for this printer?
Yes, but you can use "-restoreprinter" parameter to restore original settings to printer after printing, e.g.,
pdfprint.exe -restoreprinter -chgbin 15 -printer "docPrint" C:\input.pdf
pdfprint.exe -restoreprinter -papersource "auto" -printer "docPrint" C:\input.pdf
pdfprint.exe -restoreprinter -papersource "Tray 1" -printer "docPrint" C:\input.pdf
pdfprint.exe -restoreprinter -papersource "Manual Feed" -printer "docPrint" C:\input.pdf
pdfprint.exe -restoreprinter -papersource "Media Tray" -printer "docPrint" C:\input.pdf
pdfprint.exe -restoreprinter -papersource "Tray 3" -settraytopclfile C:\test.pcl
----------------------------------------
Hi,
Thank you for your reply.
Bin/tray works perfectly with the option "-restoreprinter" and the good user rights.
I still have the issue for performance.
When I use the options "raster", it takes much time for the tool the deliver the printing document to the printer spooler (1600 ms instead of 400ms in the other way) => this time is not a problem.
When the printer receives data, it processes data during 3 minutes before printing. This is definitively too slow.
I have this problem on this printers :
- HP LaserJet P3015 (driver : HP Universal Printing PS, data type : RAW)
- Lexmark T650n (driver : Lexmark T650 PS3, data type : RAW)
But I don't have any problem on this printer : CANON IR 3025 N (Driver : Canon iR3025 PCL6, data type : RAW)
Is this a driver's configuration issue ?
Or would you have any other idea ?
Thanks.
Customer
----------------------------------------
In addition, I forgot to mention that the printer takes 3 minutes for each page of the PDF file.
Customer
----------------------------------------
You may run following command line to try again, will this command line print your PDF file faster than before?
pdfprint.exe -raster2 -rasterbwtext -rasterbitcount 1 -xres 150 -yres 150 C:\input.pdf