Bonjour shinobar,
charlie6 wrote:...The problem is:
A4 format postscript files as even pdf file are not completely displayed = part of the documents header is not displayed; moreover printing a .ps or .pdf file from the postscript viewer do not print the full page: also a part of the header is «lost».....
I believe I got the explanation to fix this:
/usr/bin/gv is a script containing:
Code: Select all
#!/bin/sh
#Panzerkopf: Using a temporary file instead of pipe.
[ ! $1 ] && exit
ps2pdf "$@" /tmp/$$.pdf
epdfview /tmp/$$.pdf
rm -f /tmp/$$.pdf
ps2pdf default convert postscript to pdf file to US-letter format (216x2
79mm whereas A4 is 210x2
97mm i.e. 18mm difference)
To get the complete A4 document, change the script code to tell ps2pdf to format output to A4:
Code: Select all
#!/bin/sh
#Panzerkopf: Using a temporary file instead of pipe.
[ ! $1 ] && exit
exec ps2pdf -sPAPERSIZE#a4 "$@" /tmp/$$.pdf
epdfview /tmp/$$.pdf
rm -f /tmp/$$.pdf
or the following code I am currently using:
Code: Select all
#!/bin/sh
[ ! $1 ] && exit
exec ps2pdf -sPAPERSIZE#a4 "$@" - | epdfview -
Bien amicalement, Charlie