Class DocumentPdfImporter
Imports PDF content into the existing Document model.
DOCX serialization remains the responsibility of Save(string).
Inheritance
DocumentPdfImporter
Assembly: DRIT.Document.dll
Syntax
public static class DocumentPdfImporter
Methods
Import(Stream, PdfImportOptions, CancellationToken)
Imports a PDF stream and returns the document together with page outcomes and diagnostics.
The source stream is not disposed.
Declaration
public static PdfImportResult Import(Stream source, PdfImportOptions options = null, CancellationToken cancellationToken = default)
Parameters
Returns
Load(Stream, PdfImportOptions, CancellationToken)
Loads a PDF stream into a document. The caller retains ownership of the stream.
Declaration
public static Document Load(Stream source, PdfImportOptions options = null, CancellationToken cancellationToken = default)
Parameters
Returns
Load(string, PdfImportOptions, CancellationToken)
Loads a PDF file into a document. The file is opened and closed by this method.
Declaration
public static Document Load(string path, PdfImportOptions options = null, CancellationToken cancellationToken = default)
Parameters
Returns