Page 1 of 1
Image Placement
Posted: 2013-09-06T12:46:30-07:00
by drewksi
I have created a .PCL file from a .TIF file. It worked great. It is the right size and density. However, it prints too far to the right. I have used the -geometry and -size commands to try to move it left, with no effect. I would like to create the equivalent of PCL command Esc*p0x*p0Y to start at x(0), y(0). I am downloading this file as a Macro to the printer and setting left margin to 0 in my program before executing the Macro. Any help for the proper command syntax will be appreciated.
Re: Image Placement
Posted: 2013-09-06T13:46:09-07:00
by fmw42
What is your IM command? Can you post a link to your image? What version of IM are you using? What platform?
You might like to review
viewtopic.php?f=1&t=9620
Re: Image Placement
Posted: 2013-09-06T15:52:51-07:00
by glennrp
Try the "+repage" option. I'm not sure whether the PCL supports the virtual canvas, but if it does, this option will remove it.
Re: Image Placement
Posted: 2013-09-09T05:58:14-07:00
by drewksi
Sorry. I am using ImageMagic 6.8.6-8 2013-08-04 Q16. My command line is: convert test.tif -size 2550x3300 -geometry +0+0 -density 300x300 -repage +0+0 test.pcl I don't know how to create a link to my image. Sorry. What I would like to do is move the image about 1/4 inch to the left on the paper. Thanks
Re: Image Placement
Posted: 2013-09-09T09:58:55-07:00
by fmw42
drewksi wrote:Sorry. I am using ImageMagic 6.8.6-8 2013-08-04 Q16. My command line is: convert test.tif -size 2550x3300 -geometry +0+0 -density 300x300 -repage +0+0 test.pcl I don't know how to create a link to my image. Sorry. What I would like to do is move the image about 1/4 inch to the left on the paper. Thanks
-size should do nothing in this command as far as I can tell.
You can post your image to some free image hosting service such as dropbox and then put a link to it here. It is hard to know what is happening without seeing the input and output images and being able to look at the verbose information for them in IM.
What paper? Do you mean the image canvas?
You may need some -define for PCL.
See
http://www.imagemagick.org/script/formats.php
PCL W HP Page Control Language Use -define to specify fit to page option (e.g. -define pcl:fit-to-page=true).
Re: Image Placement
Posted: 2013-09-09T13:56:49-07:00
by drewksi
Thanks. The -define pcl: command correct my problem on one of the four printers I am going to. I don't know why it's not working on the other three. Any thoughts on this? When I said "paper" I was referring to the actual piece of paper my form prints on. I have been looking for a command that will allow me to set the X cursor position to 0. The PCL command is Esc*p0X. Does ImageMagick have a command for this? I appreciate your help. I'm getting closer. By the way, since your suggestion I now have my command down to: convert test.tif -density 300 -define pcl:fit-to-page=true test.pcl. I still will need to adjust it for the other printers. I would like this to be universal so it will print on any PCL compatible laser.
Re: Image Placement
Posted: 2013-09-09T14:15:26-07:00
by fmw42
did you try
convert test.tif +repage -density 300 -define pcl:fit-to-page=true test.pcl
Re: Image Placement
Posted: 2013-09-10T11:52:25-07:00
by drewksi
I tried the +repage parameter but it appeared to have no effect. I am making some progress though. I wrote a program that will insert the PCL command for Left Margin into the PCL file just after the Top Margin sequence. I ran the PCL file created by ImageMagick through it and set Left Margin to 0. Now, the file starts printing in the same position on every printer. However, on one printer the form prints perfectly, but on the others it stretches out to far to the right and, therefore off the page, and to far down on the printed page. It seems that I need to define the area on the printed page into which the form will be placed. I need the form to print exactly the same on all printers so I can fill it in with data. I apologize for continuing to bother you with basic questions, but I seem to be unable to determine what ImageMagick commands will accomplish what I need. Thanks again.