Hi all,
I sent a mail to Cairo's maillist about this issue: https://bugs.launchpad.net/inkscape/+bug/380501
Adrian Johnson provided a patch for Cairo that seems to solve our problem. How to proceed?
Thanks, Johan
-----Original Message----- From: Adrian Johnson [mailto:ajohnson@...1679...] Sent: Tuesday, August 03, 2010 06:52 To: Engelen, J.B.C. (Johan) Cc: cairo@...278... Subject: Re: [cairo] EPS target: force boundingbox
On 16/07/10 21:47, J.B.C.Engelen@...1578... wrote:
-----Original Message----- From: Adrian Johnson [mailto:ajohnson@...1679...] Sent: 16 July 2010 14:00 To: Engelen, J.B.C. (Johan) Cc: cairo@...278... 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?
Thanks, Johan
The attached patch allows the cairo generated %%BoundingBox and %%PageBoundingBox comments to be overridden using the cairo_ps_surface_dsc_comment() API.
eg
surface = cairo_ps_surface_create() cairo_ps_surface_dsc_comment(surface, %%BoundingBox: 100 100 200 200"); cairo_ps_dsc_begin_page(surface); cairo_ps_surface_dsc_comment(surface, %%PageBoundingBox: 100 100 200 200");
Please test to see if this meets your requirements.