Portable Document Format (PDF)

Codecs Format Conversion Drawing Bitmap Pipeline Write Read Metadata Transform Text Color Conversion PDF JPG TIFF Channels Filesystem Adobe Resources Color Management Resize Color Adjustment Multiple frames Graphics Container Text Layout Formatted Text PSD Clipping Paths EXIF Personalization Branched Pipeline Color Profile PSD Processor Crop Extra Channels Font Interoperability Lossless JPEG Spot Color Thumbnail WEBP Advanced GIF IPTC Rotate WPF Art Text Indexed format PNG Stream TGA Watermark XMP Compression EPS Gradient Image Validation Modify Container SVG VDP Green Screen Pixel Access Rasterization RAW Transparentize Vignette BMP

These samples demonstrate creating and exporting PDF documents with both raster and vector content, including drawing shapes, images, and embedded text. They cover single‑ and multi‑page output, layer visibility control, writing text as real PDF text, and size reduction with compression settings.

Add a tiled watermark to PDF pages

Adds a semi-transparent, rotated tiled text watermark to every page of a PDF file.

Add and remove pages in an existing PDF

Rebuilds an existing PDF page by page, removing one page and inserting a new one.

Combine multiple PDF files into one document

Combines the pages of several existing PDF files into one multi-page PDF document.

Create a PDF/VT file with personalized business cards

Creates a PDF/VT file with personalized business card records for a batch of recipients.

Create a PDF/X-4 file with CMYK output intent

Creates a PDF/X-4 file with CMYK output intent and color-managed images.

Create Business Card

Creates a business card layout and saves it as a PDF file.

Create Multipage PDF

Generates personalized multipage PDF invitations with variable data.

Lay out paragraphs, lists, and tab-aligned columns in a PDF

Lays out paragraphs, a bulleted list, and a dot-leader tab-aligned schedule directly in a PDF.

Overlay one PDF's graphics onto another

Overlays the vector content of one PDF, a seal, onto every page of another PDF.

PDF Layers

Creates a PDF document with multiple visible and invisible layers.

Rasterize a PDF page two ways: quick vs. full control

Compares PdfFrame.GetBitmap, a quick RGB24 preview, against GraphicsContainerRasterizer, which allows any pixel format and resolution.

Read and write PDF page boxes

Defines print production page boxes (bleed, trim, art) on a 300 DPI PDF using UnitConverter, then reads them back with PdfReader.

Write Bitmap To PDF Memory Friendly

Saves a JPEG image to PDF using a memory-friendly pipeline approach.

Write Raster And Vector Graphics To PDF

Saves both raster and vector graphics to a PDF file with compression.

Write Text To PDF

Writes plain and round text as PDF text with embedded fonts.

For AI-assisted development: Download Graphics Mill Code Samples XML Catalog