Skip to content

2.2 FonetDriver Class

win edited this page Mar 18, 2017 · 1 revision

FonetDriver Class

An instance of Fonet.FonetDriver is obtained by calling the static factory method FonetDriver.Make.

using Fonet;

namespace FonetExample {
	class HelloWorld {
		static void Main(string[] args) {
		FonetDriver driver = FonetDriver.Make();
		// do something with driver
		}
	}
}

Once an instance of FonetDriver has been obtained, PDF documents can easily be created by calling the Render method. The Render method is passed two arguments:

the source XSL-FO document that describes what to render. the destination stream or file that the PDF document should be written to.

A variety of overloaded forms of Render are available.

Last edited Jan 31, 2009 at 12:49 PM by griffm, version 1

Clone this wiki locally