Code Samples

Top Previous Topic Next Topic  Print this topic

Summary

This section includes code samples for XF Rendering Server 2013:

 

Writing a Simple .NET Application

Writing a Simple Java Application

Example: XSL-FO to PDF

 

The source code for all samples illustrated here can be found in the Samples folder, which is accessible from the XF Rendering Server Start Menu entry.

The typical path on Windows Vista and newer Operating Systems is: C:\Users\Public\Documents\Ecrion\XF Ultrascale 2013 vX.X.X\Samples (vX.X.X is the server version)

 

Samples include:

 

XmlToPDFUsingLocalTemplates - the typical XML + XSL approach;
XmlToPDFUsingServerTemplates - the typical XML + XSL approach, with the optimization of having the stylesheet stored on the server side (see also Choosing Between Local and Server Templates);
DocXToPDF - converting Word 2007 input to PDF using XF Rendering Server (there is no need to have other products installed in order for the sample to function);
PrintOutput - outputting directly to a printer;
MergeSample - basic merging of multiple input files into a single output using a merge context (for complex merge operations, including overlays and on-the-fly table of contents, the DAL job add-on and examples section is available)

 

For a step-by-step visual guide on writing some of the above samples, the online Video Tutorials for XF Rendering Server are available.