C# PDF generation library
You can create PDF documents by combining building blocks like pages, containers, images, paragraphs of text and the like. Layout add-on for Docotic.Pdf library will generate PDFs from your layout.
You would need Layout add-on to generate PDF documents using Layout API. This is a free add-on for Docotic.Pdf library. The add-on is also available in the zip file with the library binaries.
9.5.17664-dev 9.5.17664-dev14,820 passed Total NuGet downloads 4,998,853
Articles
Read these articles to know how to describe the layout of your documents in C# and VB.NET code and have the library generate PDF files for you.
Generate PDF documents in C# and VB.NET
C# PDF generator API to create PDF files easily. Modern code-only approach with Fluent API and powerful layout engine.Getting Started
Generate PDF documents, reports, and invoices by following this initial information on using Layout API.Building documents
How to set up document encryption, metadata, and some generation-related options.How to layout pages
How to layout PDF pages using built-in content slots. Describes how to add watermarks, specify text direction and style.Containers and their content
How to use Layout API containers to organize content. Describes types of content you can put into containers. Shows ways to decorate containers.Size, position, and rendering of containers
Shows how to specify size and position for containers. Describes conditional rendering of content. Talks about support for left-to-right and right-to-left content directions.Compound containers
Describes Row, Column, grid, lists and other containers that can hold more than one element. Shows how to add watermarks to PDF.Table container
Table container capabilities. How to define rows and columns, header and footer for tabular data. Talks about cells that span multiple rows and/or multiple columns.Create PDF documents in C# and VB.NET
Generate PDF documents in C# and VB.NET using Docotic.Pdf library.
API reference
Check out the API reference for Layout addon to find out methods parameters and other implementation details.
Sample code
These sample projects show how to create PDF documents in C# and VB.NET using Layout add-on.
Generate PDF documents with complex layout
Shows how to create a PDF document with complex layouts.Layout components
How to create reusable components for common parts of your document layout.Add header and footer to PDF documents
Use PageLayout.Header and PageLayout.Footer methods to add headers and footers to PDF pages.Hello, world! with Layout API
Shows in action common building blocks provided by Layout API.Fonts
How to manage fonts in PDF documents. Also shows how to handle missing glyphs and use a custom font loader.Page layout in PDF documents
Define page layout and set page properties like size, margins, background color, text style and direction.PDF document builder
PdfDocumentBuilder is an entry point in Layout add-on. Use it to set up encryption, metadata, PDF version and other aspects of generated PDF documents.Create multi-column PDF documents
How to organize PDF content using rows and columns.Create table of contents in PDF documents
Add table of contents using information about sections in your PDF document.Add tables to PDF documents
How to create tables of any complexity. Also shows repeatable table headers and footers.Text styling
Customize text appearance in PDF documents by using custom fonts, font sizes, colors, letter spacing, and other text style properties.Typography
How to reuse Document, Header, Body, Footer, Hyperlink, and other text styles with the help of Typography class.