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:
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: