Description of problem: ps2pdf fails to cope with PostScript files that are missing the PageSize command, and chops the bottom or top of the page. This may be an non-Letter problem only. Version-Release number of selected component (if applicable): $ rpm -qf `which ps2pdf` ghostscript-7.05-20 How reproducible: Generate an A4 PostScript file without a PageSize command (a print of a webpage from Galeon should do it) then run ps2pdf on it. You should find that either the top or the bottom of the page is missing in the resultant PDF file. Steps to Reproduce: 1.See above. 2. 3. Actual results: The top or the bottom of the page is missing in the resultant PDF file. Expected results: The page is complete. Additional info: Here's a rough n' ready wrapper for ps2pdf that works for me: #!/bin/sh ISPS=`head -1 ${1} | grep '^%!PS'` if [ ! $ISPS ]; then # if not a PostScript file then exit echo here exit 1 else BASENAME=`basename ${1} .ps` PDFNAME=`echo $BASENAME.pdf` BBOX=`head -20 ${1} | grep BoundingBox` SIZE=`echo $BBOX | awk '{MAXX = 2642; MINX = 595; MAXY = 129600; MINY = 595; X=$2+$4; Y=$3+$5; if (X > MAXX) X=MAXX else if ( X < MINX ) X=MINX if (Y > MAXY) Y=MAXY else if ( Y < MINY ) Y=MINY print X+100,Y+100}'` sed "/EndComments/a\\ << /PageSize [ ${SIZE} ] /ImagingBBox null \ >> setpagedevice" ${1} \ | ps2pdf - $PDFNAME fi
Please supply a PS file that demonstrates the problem. Thanks.
Created attachment 90394 [details] .ps file generated by Galeon
Seems to work fine: 1. ps2pdf register.ps 2. gs register.ps & xpdf register.pdf 3. Compare windows They look exactly the same, top and bottom, all three pages.
Not here - note that gv register.ps has a header at the very top of the page consisting of 'The Register http://www.theregister.co.uk/', whereas the ps2pdf'ed version doesn't (in both xpdf and acroread). If you can't reproduce this, I guess it might be because you've got your system configured for US (rather than European) paper sizes...
Oh, *gv*. You said gs, and that doesn't show that part of the page. This is nothing to do with ps2pdf; the original PostScript shows incorrectly in gs as well.
The sample file doesn't set the page size. The page size cannot be determined from the BoundingBox comment; it shows the size ot the box that included all printed elements and can have any value. The problem should be fixed at the source: Galeon .
We don't ship galeon now.