aspose file tools*
The moose likes XML and Related Technologies and the fly likes XML 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 "XML" Watch "XML" New topic
Author

XML

Skyler Smith
Greenhorn

Joined: Oct 05, 2001
Posts: 12
Is there any way to import XML data into a PDF. I know that you can take a XML doucment and produce a PDF document. But can you take a XML data and have a PDF document that was created using Adobe Acorbat and import the data into assigned fields?
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
Are you talking about treating the XML data as the data source for some kind of document merging?


Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Skyler Smith
Greenhorn

Joined: Oct 05, 2001
Posts: 12

Yes. I am creating an XML document that contains data that I want to put into a PDF. I created my PDF document with Adobe Acrobat, which allows me to put fields on the form and name them. I want the associated XML document fields to go into the PDF form via a program import. Is there anyway to do this and hopefully through Java?
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
Although I have never tried it myself, I know that Formatting Objects ( XSL:FO ) supports writing stylesheets for PDF format.
Skyler Smith
Greenhorn

Joined: Oct 05, 2001
Posts: 12
I have done the Xsl:fo. I do get it to produce a PDF. However my thing is that it is a very complicated PDF form. It is like a tax form. It has fields all over. This is going to prove to be very difficult to produce with an XSL sheet. I was hoping that with Adobe Acrobat where fields can be added to the form and named, that I could import the data that I am getting from a JSP page. After the JSP page I am putting it into an XML file. I would like to take the XML file and import it by the way of a program into a PDF form. I have not seen anything that will allow me to do that.
 
 
subject: XML