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
documentPdfDocumentThe PDF document.
outputFilestringThe output file.
conformancePdfaConformanceLevelThe 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
documentoroutputFilearenull.
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
documentPdfDocumentThe PDF document.
outputStreamThe output stream.
conformancePdfaConformanceLevelThe 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
documentoroutputarenull.