Table of Contents

Method SaveAsPdfa

Namespace
BitMiracle.Docotic.Pdf.Conformance
Assembly
BitMiracle.Docotic.Pdf.Conformance.dll

SaveAsPdfa(PdfDocument, string, PdfaConformanceLevel)

Saves document as a PDF/A-compliant document to a file.

public static void SaveAsPdfa(this PdfDocument document, string outputFile, PdfaConformanceLevel conformance)

Parameters

document PdfDocument

The PDF document.

outputFile string

The output file.

conformance PdfaConformanceLevel

The target PDF/A conformance level.

Remarks

The library detects and fixes PDF/A compliance issues for the specified conformance level.

All PDF/A levels require embedded fonts. Use FontLoader and FallbackFontProvider to customize font byte loading for document.

Exceptions

ConformanceException

The document cannot be saved as a PDF/A-compliant document.

ArgumentNullException

document or outputFile are null.

SaveAsPdfa(PdfDocument, Stream, PdfaConformanceLevel)

Saves document as a PDF/A-compliant document to a stream.

public static void SaveAsPdfa(this PdfDocument document, Stream output, PdfaConformanceLevel conformance)

Parameters

document PdfDocument

The PDF document.

output Stream

The output stream.

conformance PdfaConformanceLevel

The target PDF/A conformance level.

Remarks

The library detects and fixes PDF/A compliance issues for the specified conformance level.

All PDF/A levels require embedded fonts. Use FontLoader and FallbackFontProvider to customize font byte loading for document.

Exceptions

ConformanceException

The document cannot be saved as a PDF/A-compliant document.

ArgumentNullException

document or output are null.