By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,374 Members | 2,014 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,374 IT Pros & Developers. It's quick & easy.

Editing a PCL file

P: 1
Hi there,

I'm working on a task that deals with editing a PCL (Printer Command Language) file. The requirement is search/replace a key/value pair if found in the file. When I try this, either the file gets corrupted or the wrong data gets edited. It works fine if I try for single key/value. The more I try to edit, it gets messed up. I've been trying to find the page limiter for such PCL files since my scope is limited to editing first couple of pages. I followed PCL command reference and tried to make sense of such files but still I'm not quite successful with editing these files.

My question is, is it safe to edit PCL files in Windows? I've a bunch of PCL files to edit and each PCL file is different when it comes to the header part. So, I'm not able to figure out a standard simple way to edit these files.

Could someone throw few pointers on this one? This would help me a lot.

Thanks,
Thilak
Apr 1 '10 #1
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 785
It depends on the Editor you are using. Will it preserve and show non-ascii characters? Will it preserve Carrige-Return and Line-Feed? And do you fully understand the structure to edit binary data? If all yes, then it's save.

Else the best is to do the editing via Pcl Viewer or a perl-script.

I would use a pcl-to-pdf converter to convert it to pdf, then edit it with a pdf-editor (or Open-Office) and then convert it back to pcl (for example by just printing to file)
Apr 12 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.