PCL Image from jpg - Putting 1B45 in the beginning

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
fijin
Posts: 2
Joined: 2015-01-26T11:51:08-07:00
Authentication code: 6789

PCL Image from jpg - Putting 1B45 in the beginning

Post by fijin »

A jpg image was converted to PCL format using imagemagick. But the issue which we are facing is that the converted PCL file begins with 1B45 which is a new page for printer. When I try to use this image, this is getting printed in a new page. I am not able to insert this image into the middle of a form. Can someone suggest an idea on how to remove the 1B45 so that this image can be inserted.
Thanks in advance :)
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: PCL Image from jpg - Putting 1B45 in the beginning

Post by magick »

At the beginning of a PCL we issue a printer reset and set presentation mode as recommended by the PCL specification we reviewed when we wrote this code. We could add a define to skip resetting the printer or you can post process the image to remove the first few bytes of the image to remove the printer reset.
fijin
Posts: 2
Joined: 2015-01-26T11:51:08-07:00
Authentication code: 6789

Re: PCL Image from jpg - Putting 1B45 in the beginning

Post by fijin »

Thanks. I removed the first few bytes of the image and it is not resetting the printer now.
Post Reply