-
×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 Setup, Software & Drivers
- Deskjet 9300 & Windows 10 64bit - custom paper sizes

Create an account on the HP Community to personalize your profile and ask a question
12-26-2024 07:34 PM - edited 12-27-2024 05:52 PM
I wanted to reply to https://h30434.www3.hp.com/t5/Printer-Setup-Software-Drivers/Deskjet-9300-amp-Windows-10-64bit-compa... but that topic has already been locked.
The printer works fine, but the option to choose a custom paper size is no longer present in the printing dialog.
It is a bit inconvenient, but you can still add a custom size in the "Print server properties", which can be accessed from the "Printers & scanners" settings page.
However, there is one more issue. For some reason, the maximum paper length is also much smaller than it used to be with the 9300 driver.
I was able to solve this by editing C:\Windows\System32\spool\drivers\x64\3\HPWM5122.GPD
Under *Option: CUSTOMSIZE I increased the maximum length 10 times.
See the modified part below. I only changed 2 lines. The one with *MaxSize and the one with *CursorOrigin under LANDSCAPE_CC90.
*Option: CUSTOMSIZE
{
*rcNameID: =RCID_DMPAPER_SYSTEM_NAME
*MinSize: PAIR(4720, 6832)
*MaxSize: PAIR(15120,220960)
*TopMargin: 144
*BottomMargin: 552
*MaxPrintableWidth: 15120
*MinLeftMargin: 240
*CenterPrintable?: FALSE
*Command: CmdSelect
{
*Order: PAGE_SETUP.20
*Cmd: =PCL_CUSTOMSIZE "<1B>*p144y0X"
}
*switch: Orientation
{
*case: PORTRAIT
{
*PrintableOrigin: PAIR(240, 144)
*CursorOrigin: PAIR(240, 0)
}
*case: LANDSCAPE_CC90
{
*PrintableOrigin: PAIR(240, 144)
*CursorOrigin: PAIR(240, 221104)