TallPDF.NET 5.0


We have sent an email with a download link.
No results
Compatible with



Document doc = new Document();
Section section = doc.Sections.Add();
section.PageSize = PageSize.Letter;
TextParagraph textParagraph = new TextParagraph();
// ... add fragment objects
section.Paragraphs.Add(textParagraph);
Image image = new Image("some.jpg");
// ... set image properties
section.Paragraphs.Add(image);
Table table = new Table();
// ... add rows, cells, etc.
section.Paragraphs.Add(table);
Generate PDF from scratch
Central to TallPDF.NET is a consistent and intuitive object model consisting of layout classes like Document, Section, TextParagraph, Table, Header, Footer, etc.
Document doc = new Document();
Section section = new Section();
doc.Sections.Add( section );
// add a new drawing of size 200 x 200 pt
Drawing drawing = new Drawing( 200, 200 );
section.Paragraphs.Add( drawing );
// add a pie shape with a red outline and blue interior
PieShape pie = new PieShape();
pie.Pen = new Pen( System.Drawing.Color.Red, 2 );
pie.Brush = new SolidBrush( System.Drawing.Color.Blue );
drawing.Shapes.Add( pie );
Vector graphics
Among the specialisations of class Paragraph is Drawing. Use it to draw many types of shapes such as lines, bezier curves and even barcodes. Use pens and brushes to draw outlines and fills.
<document xmlns="http://www.tallcomponents.com/schemas/tallpdf/v3">
<section>
<paragraph type="textparagraph">
<fragment>Hello World</fragment>
</paragraph>
</section>
</document>
Generate from XML
Instead of building a Document programmatically, you can load it (partly) from XML. In general you will use XSL to transform from a given XML schema to XML that can be consumed by TallPDF.NET.
Document doc = new Document();
Section section = new Section();
doc.Sections.Add(section);
// add a table
Table table = new Table();
section.Paragraphs.Add(table);
// add a row
Row row = table.Rows.Add();
// add a cell
Cell cell = row.Cells.Add();
// add text to the cell
TextParagraph text = new TextParagraph();
cell.Paragraphs.Add(text);
Tables
Add Tables to a Section. Add Rows to a Table. Add Cells to a Row and add any Paragraph to a Cell. Specify spacings, margins, borders and backgrounds.
Document doc = new Document();
Section section = new Section();
doc.Sections.Add(section);
Header oddHeader = new Header();
oddHeader.TopMargin = new Unit(0.2, UnitType.Inch);
section.OddHeader = oddHeader;
TextParagraph textParagraph = new TextParagraph();
textParagraph.Fragments.Add(new Fragment("Page #p of #P"));
oddHeader.Paragraphs.Add(textParagraph);
Headers and footers
Headers and footers are added to each page that matches the specified page traits (first, odd, even, last). Include dynamic content such as current page number and total page count.