aspose file tools*
The moose likes XML and Related Technologies and the fly likes PDF generation using dynamic svg content with xslt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "PDF generation using dynamic svg content with xslt" Watch "PDF generation using dynamic svg content with xslt" New topic
Author

PDF generation using dynamic svg content with xslt

Saravanan Krishnamoorthy
Greenhorn

Joined: Jul 25, 2013
Posts: 2
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
Marshal

Joined: Mar 22, 2005
Posts: 42600
    
  65
How are you trying to convert that into a PDF? In which way isn't it working? TellTheDetails.


Ping & DNS - my free Android networking tools app
Saravanan Krishnamoorthy
Greenhorn

Joined: Jul 25, 2013
Posts: 2
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
Marshal

Joined: Mar 22, 2005
Posts: 42600
    
  65
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
 
subject: PDF generation using dynamic svg content with xslt