• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class DocumentPdfImporter

Imports PDF content into the existing Document model. DOCX serialization remains the responsibility of Save(string).

Inheritance
object
DocumentPdfImporter
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Document.Import.Pdf
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
Type Name Description
Stream source
PdfImportOptions options
CancellationToken cancellationToken
Returns
Type Description
PdfImportResult

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
Type Name Description
Stream source
PdfImportOptions options
CancellationToken cancellationToken
Returns
Type Description
Document

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
Type Name Description
string path
PdfImportOptions options
CancellationToken cancellationToken
Returns
Type Description
Document
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX