Comment 4 for bug 1095334

Revision history for this message
Alex Cherepanov (alexcher-gs) wrote :

The problem is caused by by the Incscape EPS file that places the userdict on top of the dictionary stack and brings in all the context it has. In particular, it brings an unwanted definition of /showpage.

Patching the EPS file solves the problem.

--- cc_by_sa.eps 2021-06-02 23:49:29.426574732 -0400
+++ cc_by_sa-fixed.eps 2021-06-02 23:50:11.731325295 -0400
@@ -11,7 +11,7 @@
 /cairo_eps_state save def
 /dict_count countdictstack def
 /op_count count 1 sub def
-userdict begin
+100 dict begin
 /q { gsave } bind def
 /Q { grestore } bind def
 /cm { 6 array astore concat } bind def

My copy of Incscape, Inkscape 0.92.5 (2060ec1f9f, 2020-04-08) already has a similar fix. I believe that this bug can be closed as fixed.