[cairo] long dash patterns

Tobias Preclik cairo at tobias.preclik.de
Wed May 13 02:26:22 PDT 2015


Dear cairo devs,

I manually constructed an svg file and converted it with Inkscape and 
cairosvg to a PDF. The PDF looks as intended. However, printing it fails 
in various ways depending on the printer driver (empty page, wrong dash 
pattern). Converting the PDF file with pdf2ps reports an error:

    **** Error reading a content stream. The page may be incomplete.
    **** File did not complete the page properly and may be damaged.

    **** This file had errors that were repaired or ignored.
    **** The file was produced by:
    **** >>>> cairo 1.14.2 (http://cairographics.org) <<<<
    **** Please notify the author of the software that produced this
    **** file that it does not conform to Adobe's published PDF
    **** specification.

Since Inkscape as well as cairosvg use Cairo I believe that Cairo might 
be the source of the problem. The manually constructed svg is

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" 
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg xmlns="http://www.w3.org/2000/svg" 
xmlns:xlink="http://www.w3.org/1999/xlink" width="297mm" height="210mm" 
viewBox="0 0 297 210">
	<line x1="10" y1="11.67" x2="287" y2="11.67" style="stroke:black; 
stroke-width:1.0; stroke-dasharray:25,10,10,10,30,10,10,10,50,10,30,10;" />
</svg>

The error seems to be connected to the long dash array. Any ideas on 
your side what could be the problem?

Best regards,
Tobias


More information about the cairo mailing list