[cairo] EPS target: force boundingbox
ajohnson at redneon.com
Mon Aug 2 21:52:16 PDT 2010
On 16/07/10 21:47, J.B.C.Engelen at ewi.utwente.nl wrote:
>> -----Original Message-----
>> From: Adrian Johnson [mailto:ajohnson at redneon.com]
>> Sent: 16 July 2010 14:00
>> To: Engelen, J.B.C. (Johan)
>> Cc: cairo at cairographics.org
>> Subject: Re: [cairo] EPS target: force boundingbox
>> Cairo does not provide any means to override the automatically
>> generated BoundingBox comment.
> In that case, I want to file a feature request to either disable
> automatic calculation of boundingbox, or to provide a means to
> override it.
> Where should I file our request?
The attached patch allows the cairo generated %%BoundingBox and
%%PageBoundingBox comments to be overridden using the
surface = cairo_ps_surface_create()
cairo_ps_surface_dsc_comment(surface, %%BoundingBox: 100 100 200 200");
cairo_ps_surface_dsc_comment(surface, %%PageBoundingBox: 100 100 200 200");
Please test to see if this meets your requirements.
More information about the cairo