Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing to an A3+ sheet without truncating the edges

Status
Not open for further replies.

popalu

Programmer
Apr 8, 2004
31
GB
I am trying to print to a A3+ device in postscript using native postscript through a dos command line system. All the code works and the images are displayed fine in full colour apart from the very edges which are truncated and do not bleed over the edge. I am sending a command to specify that the page is A3, but I really need to tell the printer that I wish to use A3+. Does anyone know how to specify A3+ so that the edges are not truncated. I know it can be achieved as I have printed out from a MAC at A3+ with no problems. Thanks for any help
 
What commands/code are you currently using to set the page size in your PostScript code?



Thomas D. Greer
Providing PostScript & PDF
Training, Development & Consulting
 
This is the code I am using to set the page size, but the images are being truncated top and bottom on the page.

lprint chr$(4);" statusdict begin /manualfeed true def a3 end"
lprint " 2.835 dup scale"
lprint " .2 setlinewidth"
lprint " 0 0 translate 90 rotate 0 -297 translate
 
That code doesn't set a page size.

You need to insert a page size array into the page device dictionary.

A3 is 297 x 420 mm, right? If my metric to inches to points conversion is correct, that's 841.68 x 1190.99 in points.

So you need this line near the top of your program, before any imaging code:

Code:
<< /PageSize [841.68 1190.99] >> setpagedevice


Thomas D. Greer
Providing PostScript & PDF
Training, Development & Consulting
 
I have inserted that code, but the page is still truncated. I am printing to a OKI 9400CN printer, and the first page out contains the code I have inserted, so it looks like it is being rejected by the postscript interpretor, then the page follows with the same truncated images.

What are the << >> in the line for?
 
The double-angle brackets delimit a dictionary. The setpagedevice operator takes a dictionary as its argument.

I've re-read your original post, and think I understand. Are you trying to print full-bleed images to a laser printer, and yet the "margins" are white?

That's normal, and you can't do anything about it. Laser printers use rollers to grip the paper and move it through the device. The device is physically unable to image a certain about of space on the edges of the sheet.

To print full bleed images, you have to print on a sheet larger than your page image, and cut the paper down to size.

Forgive me if I still don't understand your question.



Thomas D. Greer
Providing PostScript & PDF
Training, Development & Consulting
 
Yes thats exactly what I'm trying to do. I don't normally use postscript so forgive the noobness :) . I have the paper cut to A3+ which is 315mm in height in landscape as opposed to 297mm on a standard sheet. I can print with full bleed direct from a MAC or Windows by selecting this page size, but I want to send the command direct as it is much, much faster. The images are 152mm high and 2 to view gives 304mm high, so I should have enough room for a 5mm white area around the edges without the bleed problem, but just can't seem to get the image to print into this area
 
I don't know how to help without seeing the code, sorry. If you care to send me the PostScript program in its entirety, I'll see what I can do for you.

I'm also still unclear on the paper sizes. I need the size of the physical sheet, and the size of the page image/trimmed page.

You can post a link to it or email me. My email address is on my website.



Thomas D. Greer
Providing PostScript & PDF
Training, Development & Consulting
 
Will email the code to you. Thanks for the help
 
Have sent some details and a copy of the output and code used to generate the images. I have sent them to your ino@ address.

Thanks
 
Did you get a chance to look at the code I sent Tom
 
Sorry, no. I've been extremely busy with a client. Send it again? I'll take some time today. Thanks for your patience.


Thomas D. Greer
Providing PostScript & PDF
Training, Development & Consulting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top