XF Rendering Server 2010
Build Powerful XML to PDF Solutions

XF Rendering Server family of products can automate the creation of electronic documents like technical manuals, brochures, catalogues and marketing materials, invoices, statements and business reports containing charts and graphs, by dynamically generating them from XML. Documents can be generated in both on-demand and in batch processes.

as low as $1,495

Try now! buy 

Convert XSL-FO to PDF Samples

Here are two typical "Hello World" samples in Java, C# that will show how to convert XSL-FO to PDF using XF Rendering Server.


C# Code Sample

Java Code Sample

Convert XML to PDF

The following samples in Java and C# show how to convert XML to PDF using XF Rendering Server. The layout of the document is placed in a template file (standard XSL templates or the more user friendly XFD files created using XF Designer).


C# Code Sample

Java Code Sample

Convert DOCX to PDF Samples

To convert DOCX/WordML to PDF simply change the input format accordingly. Below you will find two samples in Java, C# that will show how to convert DOCX to PDF using XF Rendering Server.


C# Code Sample

Java Code Sample

Sample Code

The following samples are included when install the product. The location of the samples has a path similar to the following. Here, it is assumed that C: is the installation drive for XF:

C:\Program Files\Ecrion\XF Ultrascale 2010\Samples\

.NET JAVA

XSLTransformation - Convert XML to PDF. An XSL transformation is performed using a template designed in XF Designer then the result is rendered as PDF.

WatermarkSample - Shows how to combine a XF Designer Template (XFD) with XML and generate PDF. The template has a 45 degrees watermark in the background.

DocXToPDF - Render a DocX (Word 2007) document as PDF. No third party software is used.

HelloWorld - Render XSL-FO text into PDF.

AFPSample - Render XSL-FO text as AFP, and performs a Grayscale conversion on the fly.

MergeSample - Merge multiple input files (XSL-FO, DocX, PDF, etc) into one output PDF file.

PrintOutput - Print a document to the specified printer.

TIFFSample - Render a document into a multipage, LZW compressed TIFF with 150 DPI. CCIT3 and CCIT4 compressions are also supported.

XSLTransformation - Convert XML to PDF. An XSL transformation is performed using a template designed in XF Designer then the result is rendered as PDF.

DocXToPDF - Render a DocX (Word 2007) document as PDF. No third party software is used.

HelloWorld - Render XSL-FO text into a PDF.

TIFFSample - Render a document into a multipage, LZW compressed TIFF with 150 DPI. CCIT3 and CCIT4 compressions are also supported.

More Online Samples

  1. Converting DOCX to PDF: WordMLSample.zip
    This is a sample Mail Merge application, which will combine a WordML template with records from an Access database. The conversion is performed on the server without any third party software (you don't need Microsoft Word to perform the rendering operation).
  2. Generating a PDF document directly into the Web Server's output stream: ASPXSample.zip.
  3. Converting AFP to PDF: AFPSample.zip
    Sample console application which generates an AFP document from XML data combined with a XFD or XSL template.
  4. DALSample.zip - Sample console application which generates a complex PDF document from multiple inputs, including static PDF documents and dynamic XML combined with XFD templates.


Copyright © Ecrion Software Inc. 2002-2010. All Rights Reserved.