Rendering SVG ARC in AFP (advanced function presentation) using Apache FOP

124 Views Asked by At

I am using apache fop xmlgraphics 2.2 to generate SVG for PDF and AFP, Bellow is the code snippet which I have coded

<fo:instream-foreign-object><svg:svg width="5.4928cm" height="5.4928cm" viewBox="0 0 400 400"><svg:path stroke="#70237B" stroke-width="1" stroke-linejoin="round" fill="#C1BDBC" d="M 200,200 L 200,0 A200,200 0 1,1 143.87,391.96 z"/></svg:svg></fo:instream-foreign-object> 

Which renders properly in the PDF, However the same code snippet doesn’t work for AFP. Code generates the ARC shape but doesn’t fill the color(attribute fill="#C1BDBC" doesn’t work in case of AFP). The Above mentioned problem happens only when rendering Arc’s for AFP, Other Shapes like circle, polygon works fine.

Please let me know if I have to do anything Which is specific to AFP.

attached the svg's generated for reference.

AFP PDF

0

There are 0 best solutions below