The following examples show ways that you can use the HTMLDocument class to generate HTML and Extensible Stylesheet Language (XSL) Formatting Object (FO) source data. Both examples stream the data to....? but you can do this or that with it, too?
The following examples show how to generate both HTML source data and XSL FO source data at the same time:
Example: Using HTMLDocument to generate both HTML source and XSL FO source
After you create XSL FO source data, you need to convert that XSL FO data to a form that your users can view and print. The following example shows how to convert a file that contains XSL FO source data to a PDF document by using the XSLReportWriter and Context classes:
Example: Converting XSL FO source data to a PDF
The following disclaimer applies to all of the IBM® Toolbox for Java™ examples:
Code example disclaimerIBM grants you a nonexclusive copyright license to use all programming code examples from which you can generate similar function tailored to your own specific needs.
All sample code is provided by IBM for illustrative purposes only. These examples have not been thoroughly tested under all conditions. IBM, therefore, cannot guarantee or imply reliability, serviceability, or function of these programs.
All programs contained herein are provided to you "AS IS" without any warranties of any kind. The implied warranties of non-infringement, merchantability and fitness for a particular purpose are expressly disclaimed.
The following disclaimer applies to all of the IBM Toolbox for Java examples:
Code example disclaimerIBM grants you a nonexclusive copyright license to use all programming code examples from which you can generate similar function tailored to your own specific needs.
All sample code is provided by IBM for illustrative purposes only. These examples have not been thoroughly tested under all conditions. IBM, therefore, cannot guarantee or imply reliability, serviceability, or function of these programs.
All programs contained herein are provided to you "AS IS" without any warranties of any kind. The implied warranties of non-infringement, merchantability and fitness for a particular purpose are expressly disclaimed.