When I try to create pdf file with fop, Acrobat Reader (5.0.5 for linux) refuses to open that file and says: "There was an error processing a page Wrong operand type" Page contains SVG image as background (fop does not complain about that) FO file: <?xml version="1.0" encoding="UTF-8"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xlink="http://www.w3.org/1999/xlink"> <fo:layout-master-set> <fo:simple-page-master margin-right="1.5cm" margin-left="1.5cm" margin-bottom="2cm" margin-top="1cm" page-width="21cm" page-height="29.7cm" master-name="first"> <fo:region-before extent="1cm" /> <fo:region-body margin-top="1cm" background-image="file:l.svg"/> <fo:region-after extent="1.5cm"/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="first"> <fo:flow flow-name="xsl-region-body"> <fo:block text-align="center">Simple text</fo:block> </fo:flow> </fo:page-sequence> </fo:root> l.svg file: <?xml version="1.0" encoding="iso-8859-1"?> <svg xml:space="preserve" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality" viewBox="-3079 0 6486 4146" > <defs> <style type="text/css"> <![CDATA[ .fil1 {fill:#666C70} ]]> </style> </defs> <g> <path class="fil1" fill-rule="evenodd" d="M2326 2865 l0 1272 "/> </g> </svg>
The bug here is that it creates a transform with 0 scaling values. This is due to the large viewport and the scaling factor is rounded down to 0. Scaling the image so that the viewport and path is smaller should work better.
Cannot reproduce in FOP 0.95.
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed