sramage
12th August 2011, 17:43
Hi,
I've got a little problem with POSTSCRIPT device.
Currently I use a device with ttstpconv and POSTSCRIPT argument to create .ps file but I didn't manage to have A4 papersize.
It's always US letter papersize.
how can I fix this ?
Thank you
Seb
mark_h
15th August 2011, 17:54
Never really looked or used post script files. Can you look in the .ps file and see if it calls for a paper size?
sramage
16th August 2011, 09:53
I don't see anything about paper size in the .ps file.
I'm trying to convert the ps file into pdf using ps2pdf and if I set -sPAPERSIZE=A4 the final pdf is truncated on the right just because the A4 width is smaller than the Letter one.
... any ideas ?
mark_h
16th August 2011, 14:24
Have you tried - -sPAPERSIZE=a4? Wondering if that makes a difference with lower case "A". I only saw this when googling ps2pdf.
sramage
17th August 2011, 09:25
I found the problem, this is a bug in ttstpconv.
one line in the report has a width of 132 and use small font 17.1cpi so it's ok for A4 paper
but in this line I have a field with a big font 10cpi, a real printer handles this correctly, even if I mix small and big fonts, the line width doesn't exceed 132 in 17cpi.
But with POSTSCRIPT, ttstpconv doesn't adapt the number of character so using big font simply take more space and so this line exceed the target width.
the *.ps file is in Letter format but the content fits a A4 paper so when I apply ps2pdf, it just cuts the paper into A4 and it's fine !