• ×
    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
Join the HP Community Solve‑a‑thon | Help Others & Share Your Solutions | Live on Zoom | 2:30 PM to 2:30 AM IST | Every Wednesday Click here to know more
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

Looking for documentation source for Escape sequences to change font, size and lines per inch as well as reset to default etc for this printer as have a need to add headings on plain paper for various fields when printing pay slip and other  documents .

5 REPLIES 5
HP Recommended

Hi @vbcoen,
 
Welcome to the HP Support Community!

Thanks for reaching out!


To assist you better with the escape sequences for your printer, could you kindly confirm the exact printer model you are using ( Is it a HP Smart Tank 7305 All-in-One Printer )? 

Additionally, If I may ask:

 

  1. What software or application are you currently using to print the documents?
  2. When you print, you usually get a preview page before the job is sent to the printer are you looking to make changes directly in that preview stage, or do you want the printer itself to handle formatting through escape sequences?
  3. Could you please brief us on your setup for instance, whether you are printing from Windows, Linux, or a custom application, and how the headings need to appear on plain paper?

With these details, we’ll be able to guide you with the appropriate documentation that you are looking for . 

 

I hope this helps. 

I'm an HP Employee.


If this reply helped resolve your issue, please select the Accept as Solution as it helps others in the community quickly find the answer they’re looking for.


And if you found this reply helpful, clicking Yes below is a great way to let us know we’re providing the support you need, as it encourages us to keep improving and sharing helpful guidance.

HP Recommended

Printer is 7305/6 but could be others using PCL3.

Software is written in Cobol (using the GnuCobol compiler) and there are 6 fields in a (parameter record) that can hold escape sequences for :

1.  Reset Font

2. Change font size - Small

3. Change font size - Normal

4. Reset colour.

5. Change to colour 1.

6. Change to colour 2.

Others could be added later if needed such as 

7. Change line depth (from 6 to 8 per inch).

 

I am the programmer for this application which in this instance is Payroll and when printing Fed or state reports using plain paper.

 

Change of font size is to support headings using smaller fonts and/or colour.

I have tried to locate documents that detail these escape groups but could only find one doc dated 1995.

A tad out of date for modern printers 🙂

 

HP Recommended

Hi @vbcoen,
 

Thanks for your response. 

 

I understand you’re working with COBOL and PCL3 escape sequences for your payroll application and printing reports. Upon checking our support resources, I can confirm that for the HP Smart Tank 7305 All-in-One, the official driver and software package is available on the HP Support website. This driver ensures compatibility with modern operating systems and provides the necessary printing functionality.
 

While HP does not publish detailed PCL3 escape sequence documentation for newer consumer printers (as these are generally managed through the driver rather than direct programming), the driver package is the recommended way to handle font, size, and color changes. For custom escape sequences, you may need to refer to the PCL3 reference guides (though older) or use the driver’s built-in capabilities to manage formatting.

 

I hope this helps.

 

I'm an HP Employee.


If this reply helped resolve your issue, please select the Accept as Solution as it helps others in the community quickly find the answer they’re looking for.


And if you found this reply helpful, clicking Yes below is a great way to let us know we’re providing the support you need, as it encourages us to keep improving and sharing helpful guidance.

HP Recommended

Forgot to mention that I personally use Linux (Mageia, a Redhat variant) for development and testing also the entire accounting system is now O/S (Open Source) available at sourceforge.net as ACAS.

 

This makes any possible use of HP drivers not a working solution but in any event these drivers are not available with programming documentation to create what ever escape sequences or similar are needed.

 

The 7305/6 printer is the one I use for my own use and for testing so if it will not work on that then there is no hope for any other printer of the inkjet/tank type as I assume the majority of ACAS users would use those and not a laser printer but those as well use PCL processes although can be PCL3 or 5/6.

 

It is a pity that HP does not document these processes as I am sure there are many other programmers out there that would like the extra flexibility such can provide for such printers as against use a matrix or line printer with continuos stationary etc.

These issues all relate to printing out for preprinted forms or the lack of them so that reduced fonts can be used for field headings as well as may be colour.

 

Again the drivers do not come with any information to program for the equivalent of escape sequences to change font sizing on a line by line basis.

 

 

HP Recommended

Hi @vbcoen 

You may need to check that information on HP Developers Portal in the next link:

>> https://developers.hp.com/hp-printer-command-languages-pcl

 

* Click YES   to say thank you, 

* Click Accepted as Solution when question is answered.

Best regards,

ferRX.

dodecaedroh.gif,.-.-,.-,.-,.-,.-,.-,.-,.-


@ferRX / I am a volunteer posting answers on my own time.
† 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>.