• ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
We have new content about printers, Click here to check it out!
Check some of the most frequent questions about Instant Ink: HP INSTANT INK, HP+ PLANS: INK AND TONER.


Check out our WINDOWS 11 Support Center info about: OPTIMIZATION, KNOWN ISSUES, FAQs AND MORE.
HP Recommended
DeskJet 9300
Microsoft Windows 10 (64-bit)

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)

 

 

 

 

 

 

 

† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.