

Transformer transformer = factory.newTransformer(stylesheet) StreamSource stylesheet = new StreamSource(new FileInputStream("c:\\pdf\\test.xsl")) TransformerFactory factory = TransformerFactory.newInstance() It has to be first transformed into the required format. Transform the XML to the format required by the report generator: The XML file cannot be used as input to the report generator directly.test.xsl This XSL file will be used to create the final XML file that will sent as input to the Report generator. Create the template for the PDF(XSL) as shown below.Create the input XML file as shown below:.You only have to include the bforeport.jar file in your classpath. Download Big Faceless Report generator from here.Follow these steps to implement the example
#Big faceless report generator how to
The following is an example of how to use the Report generation library to create PDF files using an XML for input Data, and an XSL as a template. Create and edit interactive Forms, or "AcroForms".Load existing PDF documents as templates.Unicode support, Encryption, TrueType fonts, Barcodes and more.Familiar HTML syntax -, ,, , and so on - simpler and faster than FOP.Auto pagination of content with page headers and footers.Includes a servlet and a servlet filter for simple generation of PDF's from XML or JSP pages.Create inline graphs and charts with XML, direct from the database.HTML-style Tables - auto-sized nested tables with full control over padding, margins and borders.It easily out performs the open source PDF generators ( iText and XSL FOP) and also has a lot of intersting features. It has a very easy to use API, but the one thing that I like most about it is, for it is more than a bargain for the price you pay for it. The report generator is built on the Big Faceless Java PDF library. Big Faceless Report Generator is a commercial Java API for generating PDF files from XML input.
