File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes xml to pdf  format .. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "xml to pdf  format .." Watch "xml to pdf  format .." New topic

xml to pdf format ..

AshMir Anil

Joined: Jun 23, 2006
Posts: 4
Hi Will anyone tell me how to do tht ..

I have xml file.I want to convert that xml file in pdf format.

<StatementOfAccount IOPUCTY="649" CAGLLIC="BB" ICUSCNO="00001001" DCUABDS="060421" IEPSENT="001001001" ICUSTCN="00001001">
<Billing-Transaction ICININO="BILL6">
<Billing-Transaction ICININO="BILL7">
peter coster

Joined: Jan 13, 2006
Posts: 26
You can do this using XSL-FO , using the apache fop engine.

XML-Spy can also do this for you. (altova StyleVision)
AshMir Anil

Joined: Jun 23, 2006
Posts: 4
I m using xml-spy [altova style vision and I m getting the pdf format also. but my question is how to retrive Billing -transaction child elements.
I have written the following code.
I m not able to acess Billing-Transaction child elements values.
Will u plz tell me how to do tht .
Expecting positive response....
<xsl:template match="StatementOfAccount">
<xsl:apply-templates select="CustomerHeader"/>

<fo:flow flow-name="Arrears Body" xsl:use-attribute-sets="fs10">

<xsl:apply-templates select="CustomerFooter"/>
<xsl:apply-templates select="InvoiceItems"/>

<fo:block id="lastPage"/>
<xsl:template match="InvoiceItems">

<xsl:apply-templates select="InvoiceITem//Billing-Transaction"/>
I agree. Here's the link:
subject: xml to pdf format ..
jQuery in Action, 3rd edition