File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PDF generation using dynamic svg content with xslt

 
Saravanan Krishnamoorthy
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have xml and xsl with dynamic svg content and wanted to convert as PDF but it is not working.



Please let me know the whether this is right approach or is there any other way to achieve this.

Thanks in advance
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you trying to convert that into a PDF? In which way isn't it working? TellTheDetails.
 
Saravanan Krishnamoorthy
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying converting svg to pdf using Apache FOP 0.95 version.

I am having simple pojo object with name, number and svgcontent. Then this pojo will be convert into xml using JAXB and passed as stream to transform(src, res) method.
The mapping of these 3 attributes are given in the xsl.

Now simple text are coming in the pdf but not the image [svg content].

Note:
In the xsl, if we place the svg content as static then it is generating the pdf with image.

 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If this was my problem, I'd start by using the current version of FOP, which is 1.1. Then I'd try to get the examples working that come with it - there are inline SVG examples which presumably work out of the box.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic