Bounding box and gs

Net Llama! netllama
Mon May 17 11:42:43 PDT 2004


Why not just use HTML_to_PDF and cut out the middleman:
http://www.rustyparts.com/pdf.php

On 01/05/03 07:21, Joel Hammer wrote:
> I am converting some html to ps to pdf (html2ps and ps2pdf).  The html
> contains images.
> 
> After html2ps, the postscript file looks right when viewed with gv. However,
> when ps2pdf is run, which uses gs, the left margin is chopped off.
> Looking at the postscript output, the bounding box has a negative value for
> the left margin:
> %%BoundingBox: -285 202 329 707 
> 
> gv displays this file properly only when is used the bounding box, not letter size.
> I can't see how to make gs use the bounding box.
> 
> So, is there an option which will force gs to use the BB, just like gv?
> Or, can html2ps be forced to not use negative margins?
> 
> Changing the bounding box to 0 485 329 707 doesn't do any.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
L. Friedman                       	       netllama at linux-sxs.org
Linux Step-by-step & TyGeMo: 		    http://netllama.ipfox.com

   8:35am  up 21 days, 15:44,  4 users,  load average: 0.06, 0.10, 0.08



More information about the Linux-users mailing list