Bug 12494 - fop produces pdf file which Acrobat Reader refuses to display
Summary: fop produces pdf file which Acrobat Reader refuses to display
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: pdf (show other bugs)
Version: 0.20.4
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-10 18:56 UTC by Mirek Hankus
Modified: 2012-04-01 06:50 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mirek Hankus 2002-09-10 18:56:09 UTC
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>
Comment 1 keiron 2002-12-06 09:47:52 UTC
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.
Comment 2 Jeremias Maerki 2008-11-01 08:55:41 UTC
Cannot reproduce in FOP 0.95.
Comment 3 Glenn Adams 2012-04-01 06:50:22 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed