-
×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
- LaserJet Printing
- IllegalMediaSize

Create an account on the HP Community to personalize your profile and ask a question
06-14-2017 12:44 AM
Receiving an IllegalMediaSize error when trying to print Statement (5.5 x 8.5) paper from tray or manual feed. Printing starts well to the left of the paper. Specs indicate that this media size is within the printer's capability. Using PCL 6 Universal Driver. Updated firmware on printer tonight without fixing the problem. Also tried changing manual feed paper size to Statement in device settings--to no avail. Would really appreciate a solution or even a work-around. Thanks
Solved! Go to Solution.
Accepted Solutions
06-14-2017 02:44 PM
I did say that the two manuals appeared to contradict each other as regards the minimum size.
Returning to my original statement:
"The 'instructions' in the generated print job contain a reference to a paper size which is not supported by the PCL XL language interpreter in the printer's firmware".
You say that are using the (PCL6) Universal Printer Driver which (being a universal driver) may think that your printer model supports Statement as a standard paper size, whilst the printer firmware perhaps does not support this size as a standard size (or, at least, not with the PCL6 Page Description Language).
i.e. there is a discrepancy between the driver and the printer as regards the list of supported standard sizes.
If you can 'capture' (using the 'print to file' option) a sample print job, analysis of the resultant .prn file should show just what the driver is generating in terms of printer 'instructions'.
Use the PRN File Analyse tool in the PCL Paraphernalia application, available via https://www.pclparaphernalia.eu to perform the analysis.
Of course, all that this will do is to confirm what the printer is being instructed to do.
Possible circumventions:
- Instead of selecting a standard paper of Statement (a.k.a. Memo or Half-Letter), select use of a Custom paper size, and specify the appropriate dimensions.
- Try a PCL5 or PostScript drver instead of the PCL6 UPD you say that you are using.
06-14-2017 04:26 AM - edited 06-14-2017 04:36 AM
The IllegalMediaSize error indicates two things:
- You are using a PCL6 (PCL XL) printer driver.
- The 'instructions' in the generated print job contain a reference to a paper size which is not supported by the PCL XL language interpreter in the printer's firmware.
With PCL XL, standard paper sizes are referenced in one of two ways: using an enumerated value, or using a string value.
Different printer drivers and their associated printers may favour one or the other type of reference.
If the size is not recognised as one of the 'standard' sizes supported by the device, the driver may instead specify use of a 'custom' size.
The printer itself may not support the Statement paper size as one of its 'standard' sizes; the User Guide manual (reference c00495173) shows:
This shows that the minimum supported size is 148 mm x 210 mm (5.83" x 8.27") which (for the short edge) is less than the smaller dimension of the Statement size, which implies that even if a 'custom' paper size is specified, the printer won't support it.
Having said that, the Software Reference manual (reference c00606156) for the same printer series contradicts this by stating that the mimimum size is 98 mm x 191 mm (3.86" x 7.50")!
06-14-2017 02:44 PM
I did say that the two manuals appeared to contradict each other as regards the minimum size.
Returning to my original statement:
"The 'instructions' in the generated print job contain a reference to a paper size which is not supported by the PCL XL language interpreter in the printer's firmware".
You say that are using the (PCL6) Universal Printer Driver which (being a universal driver) may think that your printer model supports Statement as a standard paper size, whilst the printer firmware perhaps does not support this size as a standard size (or, at least, not with the PCL6 Page Description Language).
i.e. there is a discrepancy between the driver and the printer as regards the list of supported standard sizes.
If you can 'capture' (using the 'print to file' option) a sample print job, analysis of the resultant .prn file should show just what the driver is generating in terms of printer 'instructions'.
Use the PRN File Analyse tool in the PCL Paraphernalia application, available via https://www.pclparaphernalia.eu to perform the analysis.
Of course, all that this will do is to confirm what the printer is being instructed to do.
Possible circumventions:
- Instead of selecting a standard paper of Statement (a.k.a. Memo or Half-Letter), select use of a Custom paper size, and specify the appropriate dimensions.
- Try a PCL5 or PostScript drver instead of the PCL6 UPD you say that you are using.
06-14-2017 03:15 PM - edited 06-14-2017 03:15 PM
Now you have given an answer (instead of simply providing information). I used a paper width of 8.5" and length of 8.5", reset the right and left margins to 2", and printing was perfect. If I had time, I would have tried your other suggestion (PCL5 or PostScript).
I also appreciate your use of "circumvention" in place of "work-around". So, without further circumspection, I have accepted your answer and offer my kudos.
12-10-2017 10:44 AM
I had this same problem when trying to print C6 envelopes on a HP2700 Laserjet and on a HP2025 Laserjet.
I tried all the driver suggestions with no effect.
Eventually fixed it by the following -
When ready to print click "Print"
Select Printer and click "Properties"
Click "Paper/Quality" Tab and select "C6 Envelopes" (or your paper size)
Click "Effects" Tab, Click "Print document on" button and select "C6 Envelope" (or your paper size)
Click "OK"
Select page range
Click "OK"
This worked for me on both printers - no more "PCL XL errors"!
10-01-2019 09:11 AM
Hello,
Thank you for posting in this thread. Unfortunately based on when the last response was made, I have closed this thread to help keep comments current and up to date. We recommend starting a new thread for your issue by clicking here.
To be more helpful with your post, you can add key information if you desire:
1. Product Name and Number (please do not post Serial Number)
• Example: HP Pavilion DV2-1209AX or HP Deskjet 3000 Printer CH393A
2. Operating System installed (if applicable)
• Example: Windows XP, Windows Vista 32-bit, Windows 7 64-bit
3. Error message (if any)
• Example: ""Low disk space"" error in Windows
4. Any changes made to your system before the issue occurred
• Examples: Upgrading your Operating System or installing a new software; or installing new hardware like a printer, modem, or router.
If you have any other questions about posting in the community, please feel free to send me a private message!
Thank you
I work on behalf of HP