Read

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

Add and remove pages in an existing PDF

This sample shows how to insert and delete pages of an existing PDF document. Since PDF pages can't be edited in place, it reopens the source file with PdfReader and rebuilds it page by page with PdfWriter: copying each page's content with GetContent and Graphics.DrawContainer, skipping the page to remove, and adding a brand-new page where one should be inserted.

Combine multiple PDF files into one document

This sample shows how to combine the pages of several existing PDF files into a single multi-page PDF document. It opens each source file with PdfReader, copies every page's vector content into a new document with PdfWriter and Graphics.DrawContainer, preserving each source page's own size and resolution.

Convert And Write JPEG

Converts to PixelFormat.Format24bppRgb to and saves to JPEG format.

Copy Clipping Path

Copies all Adobe resources including clipping path.

Copy Clipping Path (Memory Friendly)

Copies clipping path using memory-friendly Pipeline API.

Crop Image And Preserve Clipping Path

Crops image and preserves clipping path.

Crop Jpeg Losslessly

Crops JPEG image losslessly.

Enum Container Elements

Enumerates the elements of a graphics container.

Flip Jpeg Losslessly

Flips JPEG image losslessly.

Get embedded profile using memory-friendly Pipeline API

Gets and displays information about the embedded profile using the memory-friendly Pipeline API.

Get EXIF Thumbnail

Gets thumbnail of image from its EXIF metadata.

Load Multiframe Image

Loads multiframe image.

Load Save Stream

Loads and saves image to stream.

Modify Clipping Path Explicitly

Modifies clipping path explicitly.

Modify Clipping Path Explicitly (Memory Friendly)

Modifies clipping path explicitly using memory-friendly Pipeline API.

Overlay one PDF's graphics onto another

This sample shows how to overlay the vector content of one PDF file, such as a seal or logo, onto every page of another PDF file. It reads the stamp from "Seal.pdf" and the page content from "GraphicsContainer.pdf" with PdfReader, shrinks the stamp's GraphicsContainer to a fixed size with Scale, then draws the page content and the stamp together onto each output page with PdfWriter and Graphics.DrawContainer.

Process Complex EXIF Types

Reads and writes complex EXIF tags.

Read and Write JPEG

Reads and writes image in JPEG format.

Read and write PDF page boxes

This sample shows how to define print production page boundaries (MediaBox, CropBox, BleedBox, TrimBox, and ArtBox) when writing a 300 DPI PDF, and how to read them back afterwards. It builds a bleed-aware business card layout with PdfWriter and PdfPage, converting real-world sizes to pixels with UnitConverter, then reopens the file with PdfReader to show that CropBox, BleedBox, TrimBox, and ArtBox always come back in points regardless of the page's DPI.

Read Animated Gif

Reads frames of animated image in GIF format.

Read Clipping Path Flatness

Read a TIFF image that contains an Adobe resource block for clipping paths, retrieve and display the clipping path name and flatness.

Read EXIF and IPTC

Reads EXIF and IPTC metadata.

Read Extra Channel From TIFF

Reads a extra channel from a TIFF file and saves it as a new TIFF image.

Read Image Metadata

Reads image metadata without loading bitmap data.

Read image with WPF

Demonstrates passing an image to a pipeline with the custom image reader.

Read Multiframe TIFF

Reads multiframe image in TIFF format.

Read Multiframe TIFF Memory Friendly

Reads multiframe image in TIFF format using memory-friendly Pipeline API.

Read TIFF

Reads first frame of image in TIFF format.

Read XMP Metadata

Reads all XMP properties.

Read XMP Property

Reads specific XMP property.

Recompress JPEG partially

Applies mosaic effect on region of image with partial JPEG recompression.

Resize And Preserve Metadata

Resize a JPEG and preserve/update metadata with Aurigma Graphics Mill. Halves width (keeps aspect), updates EXIF Software, adds IPTC keyword, sets Adobe copyright flag, adds XMP dc:contributor, and saves all metadata.

Resize Animated Gif

Resizes animated image in GIF format.

Resize Image And Clipping Path (Memory Friendly)

Resizes image and clipping path using memory-friendly Pipeline API.

Resize while reading JPEG

Demonstrates how to resize a JPEG image using the codec's resize capability.

Rotate JPEG losslessly

Rotates JPEG image losslessly.

Split channels

Extracts individual channels from a CMYK image using channel splitter and saves them as separate files.

Update JPEG metadata losslessly

Updates metadata of JPEG image without recompression.

Write bitmap to EPS

Saves bitmap to EPS format.

Write image with WPF

Demonstrates writing an image from a pipeline with the custom image writer.

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