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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[HP 5100] paper size 1

Status
Not open for further replies.

yp56

Programmer
Aug 30, 2001
83
FR
Hello,
I have to print through a HP 5100. I use postscript into my application. This printer can print on non-standard paper size.
How can I define paper size with postscript ?
At this time, I can print on all paper type but there is only a A4 area which can be printed.

Thank you
 
I have just filter my output by the programme ppdfilter (with the HP 5100 ppd as option) and there are those line into the output :


%%BeginFeature: PageSize A4

<</PageSize [595 842] /ImagingBBox null>> setpagedevice
%%EndFeature

I think 595 and 842 are given as 1/72 inch but What must I write instead of A4 since I don't use standard paper ? (I can't find it into ppd file)
 
Are you printing from your application through a printer driver? If so, then there should be settings in the printer driver to set the desired page size.

Is your application generating PostScript code without using a printer driver? If it is, then the line you mentioned is correct:

<</PageSize [595 842]>> setpagedevice

The first number is the width in 1/72 inch, the second number is the height in 1/72 inch. Adjust those numbers for whatever page size is desired. For example, A3 would be:

<</PageSize [842 1190]>> setpagedevice

Thanks
Scott Prouty
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top