Home › Forums › PDF24 Creator › General › Create several printers with overlays and print to physical printer
- This topic has 10 replies, 2 voices, and was last updated 7 years, 10 months ago by tecmafra.
-
AuthorPosts
-
2018-08-30 at 09:53 #5557tecmafraParticipant
Hi!
I have created several virtual printers. Each one overlays a different pdf file to the printing pdf and saves it. After that, I have a code (provided by pd24 support) that prints the resulting pdf to a phisycal printer.
The pdf file is created properly, but it's not printing on paper. The printer is connected throught ethernet. Script is:
pdf24-docTool.exe -shellPrint -printerName "PRINTER_NAME" "$FILE"
2018-08-30 at 10:07 #5558Stefan ZieglerKeymasterDo you have an application installed, that can print PDF files? The shellPrint command uses ShellExecute from Windows with the print operation. In order to get this to work, there needs to be an application installed that can print the file and that registers correctly in Windows. If you have e.g. the Adobe Reader installed, than the shellPrint command should work.
2018-08-30 at 10:10 #5559tecmafraParticipantYes, I have adobe reader X, and sumatra pdf.
2018-08-30 at 10:21 #5560Stefan ZieglerKeymasterSeems that you have used a dash at -printerName and not a hyphen. I've corrected your command in your question. Please test this one.
2018-08-30 at 10:34 #5561tecmafraParticipantOk, I tested it but no luck. This is the script with the printer name
pdf24-docTool.exe -shellPrint -printerName "RICOH_MP_C2004" "$FILE"
2018-08-30 at 10:38 #5562Stefan ZieglerKeymasterHmm weird. Do you see any kind of error or are the printout in the Windows printer queue and can not be processed or send to the printer?
2018-08-30 at 10:52 #5563tecmafraParticipantIt's just like it's sending nothing to the printer.
The virtual printer shows a qeued document until is't saved in pdf, but the real printer never shows a document to print, so I'm assuming it's not sending it to the printer
2018-08-30 at 11:03 #5564Stefan ZieglerKeymasterPlease try to execute the command manually on the command line in a shell. Does this work?
2018-08-30 at 13:11 #5565tecmafraParticipantI tried and as is the code does not work.
I had to go to execute the code from the program files folder, and then change the $FILE with the real location and name of the file. This worked.
EDIT:
I also tried this:
"c:\Program Files (x86)\PDF24\pdf24-docTool.exe" -shellPrint -printerName "RICOH Aficio MP C3001" "Real file name & location"
And also worked.
But this code:
"c:\Program Files (x86)\PDF24\pdf24-docTool.exe" -shellPrint -printerName "RICOH Aficio MP C3001" "$FILE" didn't work.
2018-08-30 at 13:21 #5566Stefan ZieglerKeymasterah, file must be lowercase. You have to use "${file}" or "$file"
2018-08-30 at 14:00 #5567tecmafraParticipantHurra! We have a winner right here! At last :D. There are a pair of things that we need, but I will open a new thread so everything is on place. Thank you for your help on this topic!
-
AuthorPosts
- You must be logged in to reply to this topic.