invalid eps file created from null/empty svg file, crash in current trunk
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Invalid
|
High
|
Unassigned |
Bug Description
I'm running OpenBSD 4.9 on x86. I'm using inkscape version 'Inkscape 0.48.0 r9654 (Feb 17 2011)'. I've generated the following svg file:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://
<svg version="1.0" xmlns="http://
<metadata>
Using a program called SignPuddle. This file is my empty/null image file, when I don't have an image--I want in this to generate a blank .svg which I then convert to a blank .eps. I run inkscape using the following command-line:
inkscape -f nil.svg -E nil.eps
The following .eps file is generated:
%!PS-Adobe-3.0 EPSF-3.0
%%Creator: cairo 1.10.2 (http://
%%CreationDate: Wed Oct 26 09:41:00 2011
%%Pages: 1
%%BoundingBox: 0 -2147483648 0 -2147483648
%%DocumentData: Clean7Bit
%%LanguageLevel: 2
%%EndComments
%%BeginProlog
/cairo_eps_state save def
/dict_count countdictstack def
/op_count count 1 sub def
userdict begin
/q { gsave } bind def
/Q { grestore } bind def
/cm { 6 array astore concat } bind def
/w { setlinewidth } bind def
/J { setlinecap } bind def
/j { setlinejoin } bind def
/M { setmiterlimit } bind def
/d { setdash } bind def
/m { moveto } bind def
/l { lineto } bind def
/c { curveto } bind def
/h { closepath } bind def
/re { exch dup neg 3 1 roll 5 3 roll moveto 0 rlineto
0 exch rlineto 0 rlineto closepath } bind def
/S { stroke } bind def
/f { fill } bind def
/f* { eofill } bind def
/n { newpath } bind def
/W { clip } bind def
/W* { eoclip } bind def
/BT { } bind def
/ET { } bind def
/pdfmark where { pop globaldict /?pdfmark /exec load put }
{ globaldict begin /?pdfmark /pop load def /pdfmark
/cleartomark load def end } ifelse
/BDC { mark 3 1 roll /BDC pdfmark } bind def
/EMC { mark /EMC pdfmark } bind def
/cairo_store_point { /cairo_point_y exch def /cairo_point_x exch def } def
/Tj { show currentpoint cairo_store_point } bind def
/TJ {
{
dup
type /stringtype eq
{ show } { -0.001 mul 0 cairo_font_matrix dtransform rmoveto } ifelse
} forall
currentpoint cairo_store_point
} bind def
/cairo_selectfont { cairo_font_matrix aload pop pop pop 0 0 6 array astore
cairo_font exch selectfont cairo_point_x cairo_point_y moveto } bind def
/Tf { pop /cairo_font exch def /cairo_font_matrix where
{ pop cairo_selectfont } if } bind def
/Td { matrix translate cairo_font_matrix matrix concatmatrix dup
/
/cairo_font where { pop cairo_selectfont } if } bind def
/Tm { 2 copy 8 2 roll 6 array astore /cairo_font_matrix exch def
cairo_
/g { setgray } bind def
/rg { setrgbcolor } bind def
/d1 { setcachedevice } bind def
%%EndProlog
%%Page: 1 1
%%BeginPageSetup
%%PageBoundingBox: 0 -2147483648 0 -2147483648
%%EndPageSetup
q 0 -2147483648 0 0 rectclip q
Q
showpage
%%Trailer
count op_count sub {pop} repeat
countdictstack dict_count sub {end} repeat
cairo_eps_state restore
%%EOF
I believe the Bounding Box line:
%%BoundingBox: 0 -2147483648 0 -2147483648
Is incorrect, though I don't know enough about .eps to confirm. When I try to include this file in a resulting TeX document, I get the following error (from the epsf.tex package):
! Number too big.
\epsfury ->-2147483648
I was expecting to have a document with a blank/null/empty image, rather than the above error.
tags: |
added: cairo exporting removed: svg |
summary: |
- invalid eps file created from null/empty svg file + invalid eps file created from null/empty svg file, crash in current + trunk |
> invalid eps file created from null/empty svg file
Neither gs (Ghostscript 9.04) nor evince nor Apple's Preview.app complain about an invalid EPS file when opeing such an empty EPS file generated by Inskcape: they all display an empty EPS file. Could this be a limitation of the epsf.tex package?
(your pasted SVG code is broken, btw - it lacks the closing tag for <svg>).