This project is read-only.
FonetDriver Class

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

{code:c#}
using Fonet;

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

{code:vb.net}
Imports Fonet

Module FonetTest
Sub Main()
Dim driver As FonetDriver = FonetDriver.Make
' do something with driver
End Sub
End Module
{code:vb.net}

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.

{code:c#}
driver.Render("input.fo", "output.pdf");
{code:c#}

A variety of overloaded forms of Render are available.

Last edited Jan 31, 2009 at 6:49 AM by griffm, version 1

Comments

No comments yet.