Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: PDF Creation Using Given XML and XSL

  1. #1
    Junior Member
    Join Date
    Jul 2012
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default PDF Creation Using Given XML and XSL

    Sir , i have to use basic java programming means Inside of

    public static void main(String s[]) { } and from a particular path i want to use Generated XML and XSl and generate the PDF not use of Apache. Only Use of Itext latest version. Actully i have created the PDF Of using Itext 1.0 version but when i go to itext heigher version the PDF Formatting is Not in proper formatted.so please please suggest me How can i create PDF Using XML and XSL OF ITEXT latest Version


  2. #2
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: PDF Creation Using Given XML and XSL

    i have to use basic java programming means Inside of
    What are "basic java programming means", and what seems to be stopping you from doing what you want?
    I do not clearly understand your question. Post the code you have so far and try to explain where you are stuck or maybe someone else understands what you are asking...

  3. #3
    Junior Member
    Join Date
    Jul 2012
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: PDF Creation Using Given XML and XSL

    Dear Sir don't confused with "basic java programming means" i just want to generate PDF Using itext5.0.jar , XML and XSL file which is in my c:\ drive.

  4. #4
    Junior Member
    Join Date
    Jul 2012
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: PDF Creation Using Given XML and XSL

    Dear Sir Please Help me :- I have lot of Search But Not found the Code According To My Question
    I have One XML :=
    <?xml version="1.0"?>
    <report>
    <persondetail>
    <name>Vishal Singh</name>
    <surname>9990806510</surname>
    </persondetail>

    <persondetail>
    <name>Vishal Singh</name>
    <surname>9990806510</surname>
    </persondetail>

    </report>

    and One XSl====>

    <xsl:stylesheet version="1.0" xmlnssl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
    <html>
    <body>
    <xsl:for-each select="report/persondetail">
    <table width="100%" border="1" height="2%" cellpadding="2">
    <tr>
    <td width="10%"> <xsl:value-of select="name"/> </td>
    <td width="90%"> <xsl:value-of select="surname"/> </td>
    </tr>

    </table>
    </xsl:for-each>
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>

    I want to Create PDF Using The XML and XSl from A Specific Location And Signing, WaterMark Of PDF also.

    Please Provide me Code. I will be very Thankful to you
    Thanks

Similar Threads

  1. convert excel to xml and read the input from xml file
    By rahulruns in forum Object Oriented Programming
    Replies: 5
    Last Post: April 3rd, 2012, 11:13 AM
  2. Reading XML File using DOMParser and have problem with accessing xml
    By optiMystic23 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: January 21st, 2012, 02:22 PM
  3. Apache XML-RPC server creation problem
    By r0x in forum What's Wrong With My Code?
    Replies: 0
    Last Post: October 10th, 2011, 09:52 AM
  4. [SOLVED] Write an xml dom to a xml file
    By Kakashi in forum File I/O & Other I/O Streams
    Replies: 2
    Last Post: March 2nd, 2011, 03:30 PM
  5. java xml-rpc response parsing to xml
    By kievari in forum File I/O & Other I/O Streams
    Replies: 0
    Last Post: November 19th, 2009, 02:36 PM

Tags for this Thread