[cairo] Embedding EPS files

Adrian Johnson ajohnson at redneon.com
Mon Nov 8 11:00:16 UTC 2021


On 8/11/21 21:18, Adrian Johnson wrote:
> On 8/11/21 19:53, Han-Wen Nienhuys wrote:
>> Hi there,
>>
>> I'm trying to embed an EPS file into Cairo's PS output. I've
>> scoured the internet in vain for an example of how to do
>> this, and it looks like this feature is untested (at least,
>> the test/ directory does not reference CAIRO_MIME_TYPE_EPS.)
> 
> I've attached a patch with the changes required to get your code to work.

I just noticed the NULL at the end of the embedded EPS. Remove the "+ 1"
from the call to cairo_surface_set_mime_data() in my patch.


More information about the cairo mailing list