Here is my code:
%declare global variables
/pagemarginH 0 def
/pagemarginV 0 def
/A4WIDTH 595 def
/A4HEIGHT 842 def
%procedure to set page orientation, size and margins
/setPageLayoutMargins
%in: (layout), pagemarginH, pagemarginV
%out: -
%set globals: /pagelayout, /pagewidth and /pageheight...
Tomas,
your code with showpage works. And I don't trace PS currentpoint in my C program. But there is the last problem I couldn't solve. If a table in my generated report is multipage, I should redraw the table header on new page.
Of course, drawing this header first time, I can save it to a...
I assigned PageSize to [792 612] and properly rotated coordinate system to deal with landscape orientation.
GhostView displays my file correctly.
But the printer (LJ1200) always outputs my PS as portrait.
"%%Orientation: Landscape" comment takes no effect.
What is wrong?
How should I...
Tomas,
Of course, I can trace PS currentpoint in my C program.
For this I need repeatedly perform some transformations, e.g. number of text lines (of various fonts) and borders of table to PS points. Nevertheless, I think such an approch will work.
Thank you.
I was interested in continious...
I'm trying to generate some reports in Postscript from my C++ program. When the report exceeds one page I need properly insert "%%Page: label NUMBER" comment into the ps-file. Starting generating the ps-file I don't know the total number of pages. I attemped to declare...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.