Overview

TallPDF.NET is a 100% managed .NET component for dynamic generation of PDF documents. Central to TallPDF.NET is a highly intuitive object model consisting of classes like Document, Section, Paragraph, Table, Footer, etc. You can generate documents either programmatically or from XML.

Feature highlights

  • Automatic pagination and page numbering.
  • Table of content generation.
  • Auto-formatted cross-references.
  • Text, tables, images, drawing and tables.
  • Headers and footers with automatic content
  • Do-not-break and keep-with-next
  • Subsetting of TrueType fonts

What's new in 4.0?

  • Windows Server 2008 and higher compatibility
  • Full HTML 4.01, XHTML and CSS 2.1 support
  • Generate digitally signed documents
  • AES (128 and 256 bit) support
  • Standard and Professional editions merged into one

4.0 is fully backwards compatible with 3.0.

Generate PDF from XML + XSL

1 // Load XML 2 XmlDocument xml = new XmlDocument(); 3 xml.Load( "data.xml" ); 4 5 // Load XSL 6 XslTransform xsl = new XslTransform(); 7 xsl.Load( "transform.xsl" ); 8 9 // Transform 10 XmlReader reader = xsl.Transform( xml, null ); 11 12 // Write PDF 13 Document doc = new Document(); 14 doc.Read( reader ); 15 16 using( FileStream file = new FileStream( "out.pdf", FileMode.Create, FileAccess.ReadWrite ) ) 17 { 18 doc.Write( file ); 19 }