Xml to Pdf in java using iText Sample code

Xml to Pdf: We can convert any xml file to pdf in java using iText lib. Required Jar Files: Xml to Pdf Required Jars Xml File: <?xml version="1.0"?> <XMLtoPDF> <Friend> <FriendName>Hemakumar</FriendName> <FriendPlace>Arcot</FriendPlace> </Friend> <Friend> <FriendName>Chudar</FriendName> <FriendPlace>Vellore</FriendPlace> </Friend> <Friend> <FriendName>Selva kumar</FriendName> <FriendPlace>Arcot</FriendPlace> </Friend> </XMLtoPDF> Xsl File (stylesheet for the above xml): <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method=’html’ version=’1.0′ encoding=’UTF-8′

513 total views, 1 views today

» Read more

Train Route Java Program

Now you can get the train route information by simply inputting train number to the below program, Requirement: Jsoup jar Train Route Java Program: package in.javadomain; import java.io.IOException; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; public class TrainRoute { public static void main(String[] args) { TrainRoute tr = new TrainRoute(); System.out.println(tr.getTrainSchedule("12635")); } private String getTrainSchedule(String trainNumber) { String trainRoute = null; String trainUrl

138 total views, no views today

» Read more

Domain availability Java program

Requirement: Register in the Freedomainapi.com for api key, of course its free. Once you got the apikey replace in the below program and run. Requied Jar file: Java Json Jar Domain Availability Java program: import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.URL; import java.net.URLConnection; import org.json.JSONException; import org.json.JSONObject; public class DomainCheck { public static void main(String[] args) { DomainCheck dc

51 total views, no views today

» Read more

Mtc Bus Route java program

Mtc Bus Route Java program: Input – Bus Number. Eg: Input – 27B. Java program: import java.io.IOException; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.select.Elements; public class mtcRoutes { public static void main(String[] args) { mtcRoutes mr = new mtcRoutes(); String mtcBusDetails; try { mtcBusDetails = mr.getMtcRouteInfo("15B"); System.out.println(mtcBusDetails); } catch (IOException e) { System.out.println("Server may be down or busy"); }

102 total views, no views today

» Read more

javax.xml.transform.transformerconfigurationexception could not compile stylesheet java

Error: javax.xml.transform.transformerconfigurationexception could not compile stylesheet java solution workded for me is, previously, <xsl:stylesheet version="1.0"xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> but it has to be, <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 36 total views, no views today

36 total views, no views today

» Read more

Html to Pdf in Java using iText

Required Jar filess: Html to Pdf Required Jar Files Program: package in.javadomain; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import org.xhtmlrenderer.pdf.ITextRenderer; import com.lowagie.text.DocumentException; public class Html2Pdf { public static void main(String[] args) throws IOException, DocumentException { // Specify the input html file location String htmlInputFileUrl = "D:\\javadomain.html"; String url = new File(htmlInputFileUrl).toURI().toURL().toString(); // specify the output pdf file location

64 total views, no views today

» Read more

Domain name suggestions for social networking website

Hi Herewith you can find many domain name suggestions for social networking website and all the domains mentioned here are at available stats as on 14th Aug 2013, chatzchen.com kerkuts.com facemand.com fogbook.com subfaces.com facetray.com facetace.com facetata.com facetice.com gilfaces.com facewel.com facemeal.com facerday.com facedone.com facetrim.com facetric.com fundians.com cfacebook.com infarewell.com ninethbook.com ninthbook.com lazyhunt.com mochahunt.com justtwit.com twitlazy.com jovialbook.com pleasantbook.com funstromers.com inaipu.com friendsgalli.com tweetsplanet.com tweetsgalli.com

51 total views, no views today

» Read more

Javadomain Released Free Mobile Operator API

Hello All, As requested by many users/subscribers/followers/fans Javadomain finally released the beta version of Mobile Operator API. Mobile Operator API URL: http://agnmobileapiu.appspot.com/mobileoperatorapi?mobile=9943 Output: TAMILNADU – VODAFONE (HUTCH) App By Javadomain.in What is not there ? As the request having only first 4 digits we are not able to provide the MNP (mobile number portability) numbers operator correctly. Is is Free

71 total views, 1 views today

» Read more

How to create a mobile recharge website ?

How to create a mobile recharge website ? Hi All, After lot of browsing, surfing and googling I have found the way to create the online recharge website. I have also created a readymade recharge script to help anyone to start their online recharge business like paytm and freecharge without any of these below steps.   Few of our recent

688 total views, 3 views today

» Read more
1 2