Recently we have purchased your pdf solution for prints pdf for line command
We use the software for prints labels that are generated online our operating system is windows xp.
But some of then no are printed and pdfprint returns error 11.
C:\pdf>PDFPRINT 1.PDF
Thank you for choosing our product.
Printing '1.PDF' file...
Printing 1 page...
Time of printing is: 157ms(0.16s)
Exit Code = 11
C:\pdf>
can you help us ? I upload the errorred pdf.
=======================================
Thanks for your message, please refer to following error codes,
int WINAPI VeryPDF_PDFPrint(LPCTSTR lpCommand)
Return values:
0: Print PDF file successfully.
-10: PDFPrint Library is damaged.
-11: Something is wrong in the command line options.
-101: Can’t start “spooler” service, please start “spooler” service from Service Manager by manual.
-4: Can’t locate specify printer in this computer.
-12: Can’t open specify printer.
-13: Something is wrong when set options to printer.
-5: No input PDF file for printing.
9: Password Required to open this PDF file.
Other values: Something is wrong during render PDF file.
Please refer to more technologies about pdfprint at following web page,
https://www.verypdf.com/wordpress/category/pdf-print
=======================================
Reviewing your list, it seems that the error due me is "-11: Something is wrong in the command line options.",
but is a message too general to know what is the problem, especially when the line that I use is "pdfprint 1.pdf" can't be more simpler.
I have sent the file you the file that I try to print, you can give more specific help?
=======================================
Please deliver the full path of PDF file to VeryPDF_PDFPrint() function to try again, for example,
char *lpPDFName = "D:\temp\1.pdf";
char *lpRegcode = "XXXXXXXXXXXXXXXXXXXX";
char szCommandLine[1024];
sprintf(szCommandLine,"pdfprint \"-$\" \"%s\" -pdforient 4 -scalex -1 -scaley -1 \"%s\"", lpRegcode,lpPDFName);
int nRet = VeryPDF_PDFPrint(szCommandLine);
printf("Return Value = %d\n",nRet);
We hoping above sample code will work fine to you, please give it a try.
If you are using PDFPrint Command Line application, you can run following command line to print your PDF file in CMD window,
Pdfprint.exe C:\test.pdf
=======================================
Related Posts
Related posts:
pdf printing tool that runs under Red Hat Linux
pdfprint documents with different pagesizes
Print pdf documents to other formats via a command line
How to print PDF using low resolution via command line?
How to print a PDF in black and white paper document?
Privileges required to print PDF files from Local System or Local Service accounts
How to convert Office and other documents to PDF files and then print the PDF files to Windows Print...
How to use PDFPrint Command Line to print PDF file with fonts subsetting?