Adding to a PCL file for print


 
Thread Tools Search this Thread
Top Forums Programming Adding to a PCL file for print
# 1  
Old 11-22-2010
Adding to a PCL file for print

I am trying to add some variable print to a list of pcl files within a folder.
Am doing some programming within perl, bash and some other scripts.
(Open to a format and language).
I need to add an incrementing number (variable that will increment by one each time) to the first page of each pcl file within a folder. I have a specific position on the first page of each pcl file.
Is this possible?
# 2  
Old 11-23-2010
If your PCL text is just text, it should be possible. Make it a placeholder like %VAL% and replace it with sed.
# 3  
Old 11-23-2010
PCL has cursor control. You could insert an escape sequence at the end of the file to move the cursor back to the correct position, print the text, then eject (print) the page.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Adding to an array in an external file, and adding elements to it.

I have an array in an external file, "array.txt", which contains: char *testarray={"Zero", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine"};I want to be able to add an element to this array, and have that element display, whenever I call it, without having to recompile... (29 Replies)
Discussion started by: ignatius
29 Replies

2. UNIX for Beginners Questions & Answers

How to edit a pcl (binary) file ?

Dear Gurus, I'm getting a bunch of print spool files in pcl format. I need to edit them moving graphics to i.e. right to make room for barcode stickers. I'm trying to run a script in AIX 7.1.0.0 to edit some pcl pointer positions to the right. i.e. change p1018X to p1818X. Piece of cake.... (11 Replies)
Discussion started by: emare
11 Replies

3. AIX

Adding print queue in AIX

Hi When I add a print queue in my AIX server I get the below message. enq: (WARNING): 0781-162 Cannot awaken qdaemon (request accepted anyway). enq: errno = 2: A file or directory in the path name does not exist. Added print queue 'CUNE024'. Also when I give a test print the status... (3 Replies)
Discussion started by: newtoaixos
3 Replies

4. UNIX for Dummies Questions & Answers

Error in adding print queue

Hi Everyone, I am trying to add a print queue using HPPI. After selecting the option to add a new printer, I get the following message: ERROR: Printer configuration error Could not find the printer configuration file Please verify software installation Can someone please assist me with... (1 Reply)
Discussion started by: Scarlet
1 Replies

5. Shell Programming and Scripting

Adding to a PCL file for print - in a script

I am trying to add some variable print to a list of pcl files within a folder. Am doing some programming within perl, bash and some other scripts. (Open to a format and language). I need to add an incrementing number (variable that will increment by one each time) to the first page of each pcl... (1 Reply)
Discussion started by: mach1
1 Replies

6. Shell Programming and Scripting

Adding new lines to a file + adding suffix to a pattern

I need some help with adding lines to file and substitute a pattern. Ok I have a file: #cat names.txt name: John Doe stationed: 1 name: Michael Sweets stationed: 41 . . . And would like to change it to: name: John Doe employed permanently stationed: 1-office (7 Replies)
Discussion started by: hemo21
7 Replies

7. UNIX for Dummies Questions & Answers

Create a PCL DUPLEX File using ghostscript-8.62

table.ubbfoot {background-color="#9999ff"} td.ubbfoot1 {font-size=8pt; font-family=arial,helvietica,swiss; color="#000000";} td.ubbfoot2 {font-size=8pt; font-family=arial,helvietica,swiss; color="#ffffff";} hello, i want to create PCL Duplex Output (to print) from a pdf File. i uses itanium (64)... (0 Replies)
Discussion started by: chzi
0 Replies

8. AIX

How convert PCL or PDF file to text in AIX

I need to conver a PCL or PDF file to text in AIX, and I donīt know how. (0 Replies)
Discussion started by: 10789
0 Replies

9. IP Networking

Print to RICOH Aficio 3245C PCL 6

I am wanting to print a file directly from UNIX to a RICOH Aficio 3245C PCL 6. I have installed CUPS and setup the printer as a Local Raw Printer (LRP). I am able to print to other printers :) but Ricoh requires a validation name & code to print:mad:. How do I provide the name and code (password)?... (0 Replies)
Discussion started by: stewarr
0 Replies

10. UNIX for Dummies Questions & Answers

print a file contains binary and pcl file

I have a file that contain printer escape codes and text. How can I place the image on the top of each page in that file and print that text file out with the image in Unix. Thank you. (0 Replies)
Discussion started by: caol
0 Replies
Login or Register to Ask a Question