GemBox.Pdf
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    Supported File Formats

    GemBox.Pdf supports multiple file formats with varying degree of support.

    File format support

    GemBox.Pdf supports the following file formats:

    Input and output:

    • Adobe Portable Document Format (PDF).

    Output only:

    • Image formats (PNG, JPEG, GIF, BMP, TIFF and WMP).
    • Microsoft XML Paper Specification (XPS).

    Supporting a file format as an input file format means that GemBox.Pdf is able to read the specified file format and supporting it as an output file format means that GemBox.Pdf is able to write to the specified file format.

    GemBox.Pdf support for file formats depends on the used framework as following:

    FrameworkPDFXPSImage
    .NET 6.0+ on Windows
    YYY
    .NET Standard 2.0+
    (for Linux, macOS, Android, iOS, …)
    YNN
    .NET Framework 4.6.2+
    YYY

    Additional conversion outputs

    In addition to exporting to a file or a stream, GemBox.Pdf also supports printing a PDF file (Print() method) and converting a PDF file to the following types:

    • using the PdfDocument.ConvertToXpsDocument(XpsSaveOptions) method and
    • using the PdfDocument.ConvertToImageSource(ImageSaveOptions) method.

    These outputs are especially useful in WPF applications, by providing a means to embed a PDF file in your WPF application with and controls, as shown in our GemBox.Pdf WPF examples.

    Following code snippet shows how to assign a PdfDocument instance to and controls:

    • C#
    • VB.NET
    // Assign a PdfDocument instance to DocumentViewer control.
    documentViewer.Document = pdfDocument.ConvertToXpsDocument(SaveOptions.Xps).GetFixedDocumentSequence();
    
    // Assign a PdfDocument instance to Image control.
    image.Source = pdfDocument.ConvertToImageSource(SaveOptions.Image);
    
    ' Assign a PdfDocument instance to DocumentViewer control.
    documentViewer.Document = pdfDocument.ConvertToXpsDocument(SaveOptions.Xps).GetFixedDocumentSequence()
    
    ' Assign a PdfDocument instance to Image control.
    image.Source = pdfDocument.ConvertToImageSource(SaveOptions.Image)
    
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.