Skip to content

# PDFUAFormatter

Namespace: O2S.Components.PDF4NET.Standards

Defines a formatter that can save PDF files in PDF/UA format.

    public class PDFUAFormatter : PDFStandardFormatter

Inheritance Object → PDFStandardFormatter → PDFUAFormatter

## Constructors

### PDFUAFormatter(PDFUAFormat)

Initializes a new PDFUAFormatter object.

    public PDFUAFormatter(PDFUAFormat format)

Parameters

`format` PDFUAFormat
PDF/UA standard for which the formatter is initialized.

## Methods

### Save(PDFFixedDocument, String, PDFUAFormat)

Saves the document to the file in the specified PDF/UA format.

    public static void Save(PDFFixedDocument document, string fileName, PDFUAFormat format)

Parameters

`document` PDFFixedDocument
The document to save.

`fileName` String
Destination file where the document is saved.

`format` PDFUAFormat
PDF/UA format for the saved document.

### Save(PDFFixedDocument, String, PDFUAFormat, Boolean)

Saves the document to the file in the specified PDF/UA format.

    public static void Save(PDFFixedDocument document, string fileName, PDFUAFormat format, bool enablePDFStructureCompression)

Parameters

`document` PDFFixedDocument
The document to save.

`fileName` String
Destination file where the document is saved.

`format` PDFUAFormat
PDF/UA format for the saved document.

`enablePDFStructureCompression` Boolean
Enables the compression of PDF file structure

### Save(PDFFixedDocument, Stream, PDFUAFormat)

Saves the document to the stream in the specified PDF/A format.

    public static void Save(PDFFixedDocument document, Stream stream, PDFUAFormat format)

Parameters

`document` PDFFixedDocument
The document to save.

`stream` Stream
Destination stream where the document is saved.

`format` PDFUAFormat
PDF/UA format for the saved document.

### Save(PDFFixedDocument, Stream, PDFUAFormat, Boolean)

Saves the document to the stream in the specified PDF/A format.

    public static void Save(PDFFixedDocument document, Stream stream, PDFUAFormat format, bool enablePDFStructureCompression)

Parameters

`document` PDFFixedDocument
The document to save.

`stream` Stream
Destination stream where the document is saved.

`format` PDFUAFormat
PDF/UA format for the saved document.

`enablePDFStructureCompression` Boolean
Enables the compression of PDF file structure