-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
- HP Community
- Printers
- Printer Wireless, Networking & Internet
- PDF document does not fit to page when printing direct to po...

Create an account on the HP Community to personalize your profile and ask a question
05-10-2021 03:09 PM
I am sending a PDF file direct to network attached M118dw laser printer. I send the PDF file to port 9100 of the printer. But the print does not fit to the page. Content on the edge of the page is clipped. Are there print options I can specify when printing a PDF file in this way?
here is the PHP code that is used to send the PDF file to the printer:
$print_data = file_get_contents('/downloads/packing list (40).pdf') ;
05-14-2021 03:02 PM
Thank you for posting on the HP Support Community.
Don't worry as I'll be glad to help, however, to provide an accurate resolution, I need a few more details:
- Are you printing from your phone or computer?
- What is the operating system?
Keep me posted for further assistance.
ECHO_LAKE
I am an HP Employee
05-14-2021 03:25 PM
Customer might be referring to PHP coding language as defined here: