|
|
|
Web Invoice Sample
This sample describes how to receive PDF documents and thumbnails in a memory stream and how to render pages selectively. Before the generation of PDF documents or thumbnails this sample use a stylesheet(XSL) file to transform input XML into XSL-FO.
The important points of this sample are the following:
-
XSL Transformation:
- First load the XML input and the stylesheet.
- Transform the XML data using the stylesheet and place the transformtion in a memory stream.
- Use the transformation result as input to the engine.
-
Render PDF documents in memory:
-
Output format must be set before calling Render
- Call Render passing the HttpResponse.Response as the second parameter.
-
Selective Rendering and Thumbnails:
- Document is loaded with Load (or LoadUrl).
- Once the document is loaded, you can find the number of pages, as well as the dimensions of each iundividual page or resize the output.
- Use ExportTo to generate the output. This method can be called multiple times, for example to generate a thumbnail for each page, or to genarate the document and a thumbnail of the first page, etc.
|
|
home
| about us
| products
| services
| support
| customers
| partners
| downloads
| shop
Copyright© 2002-2008 Ecrion Software Inc. All Rights Reserved.
XSL FO, XML, XSL, XSLT, PDF, Postscript, XPS, SVG, Java, .NET, Delphi, W3C, HTML, WordML, Barcodes
|