How to print label PDF file with customized paper size?


I've been testing the PDFPrint Command Line to see if it's what I've been looking for. So far it works fine.

I have one problem. I generate labels that I need to print on a Brother PT-9800PCN label prints that uses 6mm to 36mm tapes. I've been trying to print a pdf that has the page size 18x113mm and it prints on 36mm tape no matter if I use -paper "pdf" of -paper "18x113mm".


I would like to know if the pdfprint command line is capable of printing on those type of printer. I'm using the trial version as I'm trying to see if it's best for me.

Thank you.

We apologize for any inconvenience this may have caused to you. Can you please send to us your sample PDF file and your Order ID (if you have)? after we check your sample PDF file, we will figure out a solution to you shortly.

also, please run following command lines to print your PDF file again,

pdfprint.exe -shell C:\test.pdf
pdfprint.exe -shell2 C:\test.pdf
pdfprint.exe -raster2 C:\test.pdf
pdfprint.exe -vector C:\test.pdf
pdfprint.exe -printermargins -raster2 C:\test.pdf
pdfprint.exe -raster2 -rasterbwtext -rasterbitcount 1 -xres 150 -yres 150 C:\input.pdf
pdfprint.exe -useembedfont C:\test.pdf

We hope one of above command lines will print your PDF file properly, please give them a try.

I've attached a sample of the pdf.

I've tried the commands (with and without -paper "pdf" or -paper"18x113mm") and it still prints on 36mm tape.

My usual default settings for that printer is paper size 24mm , width 24mm, length 45mm.

Everytime I send printing commands to it, the printer changes settings to it's default one paper size 36mm, width 36mm, length 100.

I managed to get it working. What I've done is for the paper size needed 18x113mm and 24x50mm I've changed the printer preferences and for each size I saved the settings using the following command

rundll32 printui.dll PrintUIEntry /Ss /n "\\network\printer" /a "C:\location\temp_settings.dat" u

And then renamed the settings 18x113mm.dat and 24x50mm.dat,

When printing I do,

//save current printer settings
rundll32 printui.dll PrintUIEntry /Ss /n "\\network\printer" /a "C:\location\temp_settings.dat" u
//load required settings
rundll32 printui.dll PrintUIEntry /Sr /n "\\network\printer" /a "C:\location\18x113mm.dat" u
//print the pdf
C:\pdfprint_cmd\pdfprint_cmd\pdfprint.exe -printer "\\network\printer" C:\location\cal_kit_labels.pdf
//reload initial settings
rundll32 printui.dll PrintUIEntry /Sr /n "\\network\printer" /a "C:\location\temp_settings.dat" u
//delete temp settings
del C:\location\temp_settings.dat

Hope this helps in adding more options on you software for these types of printers that uses tapes instead of paper

Thanks for your great information, your information will greatly help our other customers in the future.

Have a nice day!

VN:F [1.9.20_1166]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.20_1166]
Rating: +1 (from 1 vote)
How to print label PDF file with customized paper size?, 10.0 out of 10 based on 1 rating

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Verify Code   If you cannot see the CheckCode image,please refresh the page again!