FreePDF guide
This guide shows how to make and change PDF files with FreePDF's drawing API, the PdfSharp.Drawing
and PdfSharp.Pdf namespaces that PDFsharp users know. None of it needs MigraDoc.
Every example on these pages is a test in src/samples/FreePDF.Samples: CI compiles and runs it and checks the PDF it writes.
- Getting started: install the package, make a PDF, save it to a file or a stream.
- Pages and coordinates: page sizes, orientation, units, and where (0, 0) is.
- Text: alignment, measuring text, paragraphs that wrap.
- Fonts: where fonts come from, fonts you ship, font resolvers.
- Shapes and colours: lines, rectangles, ellipses, polygons, transparency, rotation.
- Images: JPEG, PNG and BMP files, scaled to fit.
- Documents with many pages: a table that continues on new pages, page numbers.
- Existing PDF files: draw on the pages of a file, combine files.
- Links and bookmarks: web links, links to pages, the bookmark panel.
- Metadata and passwords: document properties, passwords and permissions.
More
- The API reference lists every public type and member, with the same text IntelliSense shows.
- Text extraction reads the text of existing pages.
- Migrating from PDFsharp 6.2.4 lists what changes in an upgrade.
- Forms, signatures, Factur-X invoices, accessible PDF (PDF/UA), barcodes, merging and splitting: see the sections of the README.
- MigraDoc (
io7.FreePDF.Layout) lays out paragraphs, tables, headers and footers for you; its types are in the API reference underMigraDoc.DocumentObjectModelandMigraDoc.Rendering.