Documentize Namespace

Classes

Class NameDescription
AddTimestampOptionsRepresents Add Timestamp Options for Documentize.Timestamp plugin.
CompressOptionsRepresents Compress options for Documentize.Optimizer plugin.
DecryptionOptionsRepresents Decryption Options for Documentize.Security plugin.
DirectoryDataSourceRepresents directory data for load and save operations of a plugin.
DocConverterRepresents Documentize.DocConverter plugin. Used to convert PDF documents into DOC/DOCX format.
EncryptionOptionsRepresents Encryption Options for Documentize.Security plugin.
FileDataSourceRepresents file data for load and save operations of a plugin.
FileResultRepresents operation result in the form of string path to file.
HtmlConverterRepresents Documentize.HtmlConverter plugin. Used to convert PDF documents into HTML format and HTML documents into PDF format.
HtmlToPdfOptionsRepresents HTML to PDF converter options for Documentize.HtmlConverter plugin.
ImageExtractorRepresents Documentize.ImageExtractor plugin. Used to extract images from PDF documents.
ImageExtractorOptionsRepresents images extraction options for the Documentize.ImageExtractor plugin.
InfoThe class provides information about current product build.
JpegConverterRepresents Documentize.JpegConverter plugin. Used to convert PDF documents into JPEG format.
LicenseProvides method to set License.
MergeOptionsRepresents Merge options for Documentize.Merger plugin.
MergerRepresents Documentize.Merger plugin. Used to merge multiple PDF documents into a single PDF.
MessageA chat completion message generated by the model.
ObjectResultRepresents operation result in the form of string.
OptimizeOptionsRepresents Optimize options for Documentize.Optimizer plugin.
OptimizerRepresents Documentize.Optimizer plugin.
PageInfoRepresents the page information.
PageSizeClass representing size of page in PDF document.
PdfAConvertOptionsRepresents options for converting PDF documents to PDF/A format with the Documentize.PdfAConverter plugin.
PdfAConverterRepresents a plugin for handling the conversion of PDF documents in a PDF/A format and for validation of the PDF/A conformance.
PdfAOptionsBaseRepresents the base class for the Documentize.PdfAConverter plugin options. This class provides properties and methods for configuring the PDF/A conversion and validation process.
PdfAValidateOptionsRepresents options for validating PDF/A compliance of PDF documents with the Documentize.PdfAConverter plugin.
PdfAValidationResultRepresents the result of a PDF/A validation process.
PdfChatGptRepresents PdfChatGpt plugin.
PdfChatGptOptionsRepresents options for Documentize.PdfChatGpt plugin.
PdfChatGptRequestOptionsRepresents options for Documentize.PdfChatGpt plugin.
PdfConverterOptionsRepresents options for Pdf converter plugins.
PdfExtractorRepresents base functionality to extract text, images, and other types of content that may occur on the pages of PDF documents.
PdfExtractorOptionsRepresents options for the TextExtractor and ImageExtractor plugins.
PdfToDocOptionsRepresents PDF to DOC converter options for Documentize.DocConverter plugin.
PdfToHtmlOptionsRepresents PDF to HTML converter options for Documentize.HtmlConverter plugin.
PdfToJpegOptionsRepresents PDF to JPEG converter options for the Documentize.JpegConverter plugin.
PdfToPngOptionsRepresents PDF to PNG converter options for the Documentize.PngConverter plugin.
PdfToTiffOptionsRepresents PDF to TIFF converter options for the Documentize.TiffConverter plugin.
PdfToXlsOptionsRepresents PDF to XLSX converter options for Documentize.XlsConverter plugin.
PluginBaseOptionsRepresents base options for plugins.
PngConverterRepresents Documentize.PngConverter plugin. Used to convert PDF documents into PNG format.
RectangleClass represents rectangle.
ResizeOptionsRepresents Resize options for Documentize.Optimizer plugin.
ResultContainerRepresents container that contains the result collection of processing the plugin.
RotateOptionsRepresents Rotate options for Documentize.Optimizer plugin.
SecurityRepresents Documentize.Security plugin.
SignOptionsRepresents Sign Options for Documentize.Signature plugin.
SignatureRepresents Documentize.Signature plugin.
SplitOptionsRepresents Split options for Documentize.Splitter plugin.
SplitterRepresents Documentize.Splitter plugin. Used to split documents into separate pages.
StreamDataSourceRepresents stream data source for load and save operations of a plugin.
StreamResultRepresents operation result in the form of Stream.
StringResultRepresents operation result in the form of string.
TableBuilderClass represents builder for table in pdf page.
TableCellBuilderClass represents builder for table cell.
TableGeneratorRepresents Documentize.TableGenerator plugin. Used to add a table to a PDF document.
TableOptionsRepresents options for add table to document by Documentize.TableGenerator plugin.
TableRowBuilderClass represents builder for table row.
TextExtractorRepresents Documentize.TextExtractor plugin. Used to extract text from PDF documents.
TextExtractorOptionsRepresents text extraction options for the Documentize.TextExtractor plugin.
TiffConverterRepresents Documentize.TiffConverter plugin. Used to convert PDF documents into TIFF format.
TimestampRepresents Documentize.Timestamp plugin.
XlsConverterRepresents Documentize.XlsConverter plugin. Used to convert PDF documents into XLSX/XLS format.

Interfaces

Interface NameDescription
IDataSourceGeneral data interface that defines common members that concrete data should implement.
IOperationResultGeneral operation result interface that defines common methods that concrete plugin operation result should implement.
IPluginOptionsGeneral plugin option interface that defines common methods that concrete plugin option should implement.

Enums

Enum NameDescription
ConvertErrorActionThis class represents action for conversion errors.
ConvertSoftMaskActionThis action represents actions for conversion of images with soft mask.
DataTypeRepresents possible types of data for plugin processing.
PdfToXlsOptions.ExcelFormatAllows to specify .xlsx, .xls/xml or csv file format. Default value is XLSX.
HtmlMediaTypeSpecifies possible media types used during rendering.
HtmlPageLayoutOptionSpecifies flags that together other options determine sizes and layouts of pages.
PdfAStandardVersionSpecifies the PDF/A standard version for a PDF document.
RoleThe role of the messages author.
RotationEnumeration of possible rotation values.
PdfToHtmlOptions.SaveDataTypeDefines output type of HTML file.
TextExtractorOptions.TextFormattingModeDefines different modes which can be used while converting a PDF document into text. See Documentize.TextExtractorOptions class.

Subsections of Documentize Namespace

Class AddTimestampOptions

Info

Represents Add Timestamp Options for Documentize.Timestamp plugin.

public class AddTimestampOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsAddTimestampOptions

Implements

Inherited Members

Constructors

AddTimestampOptions(Stream, string, string, string)

Initializes new instance of the Documentize.AddTimestampOptions object with default options.

public AddTimestampOptions(Stream pfx, string password, string serverUrl, string serverBasicAuthCredentials = "")

Parameters

  • pfx Stream: The path to the pfx file.
  • password string: The password to the pfx file.
  • serverUrl string: The timestamp server url.
  • serverBasicAuthCredentials string: The basic authentication credentials, username and password are combined into a string “username:password”. (Optional).

AddTimestampOptions(string, string, string, string)

Initializes new instance of the Documentize.AddTimestampOptions object with default options.

public AddTimestampOptions(string pfx, string password, string serverUrl, string serverBasicAuthCredentials = "")

Parameters

  • pfx string: The path to the pfx file.
  • password string: The password to the pfx file.
  • serverUrl string: The timestamp server url.
  • serverBasicAuthCredentials string: The basic authentication credentials, username and password are combined into a string “username:password”. (Optional).

Namespace: Documentize Assembly: Documentize.dll

Class CompressOptions

Info

Represents Compress options for Documentize.Optimizer plugin.

public sealed class CompressOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsCompressOptions

Implements

Inherited Members

Constructors

CompressOptions()

Initializes new instance of the Documentize.CompressOptions object with default options.

public CompressOptions()

Namespace: Documentize Assembly: Documentize.dll

Class DecryptionOptions

Info

Represents Decryption Options for Documentize.Security plugin.

public class DecryptionOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsDecryptionOptions

Implements

Inherited Members

Constructors

DecryptionOptions(string)

Initializes new instance of the Documentize.DecryptionOptions object with default options.

public DecryptionOptions(string ownerPassword)

Parameters

  • ownerPassword string: Owner password.

Properties

OwnerPassword

Owner password.

public string OwnerPassword { get; set; }

Property Value

string

Namespace: Documentize Assembly: Documentize.dll

Class DirectoryDataSource

Info

Represents directory data for load and save operations of a plugin.

public sealed class DirectoryDataSource : IDataSource

Inheritance

objectDirectoryDataSource

Implements

Inherited Members

Constructors

DirectoryDataSource(string)

Initializes new directory data with the specified path.

public DirectoryDataSource(string path)

Parameters

  • path string: A string representing the path to the directory.

Properties

DataType

Type of data source.

public DataType DataType { get; }

Property Value

DataType

Path

Gets the path to the directory of the current data.

public string Path { get; }

Property Value

string

Namespace: Documentize Assembly: Documentize.dll

Class DocConverter

Info

Represents Documentize.DocConverter plugin. Used to convert PDF documents into DOC/DOCX format.

public sealed class DocConverter

Inheritance

objectDocConverter

Inherited Members

Examples

The example demonstrates how to convert PDF document to Doc format.

// create DocConverter
var plugin = new DocConverter();
// create PdfToDocOptions object to set instructions
var opt = new PdfToDocOptions();
// add input file path
opt.AddInput(new FileDataSource(inputPath));
// set output file path
opt.AddOutput(new FileDataSource(outputPath));
// perform the process
plugin.Process(opt);

Constructors

DocConverter()

public DocConverter()

Methods

Dispose()

Implementation of IDisposable.

public void Dispose()

Process(PdfToDocOptions)

Starts the Documentize.DocConverter processing with the specified parameters.

public ResultContainer Process(PdfToDocOptions options)

Parameters

  • options PdfToDocOptions: An options object containing instructions for the Documentize.DocConverter.

Returns

ResultContainer : An Documentize.ResultContainer object containing the result of the operation.

Namespace: Documentize Assembly: Documentize.dll

Class EncryptionOptions

Info

Represents Encryption Options for Documentize.Security plugin.

public class EncryptionOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsEncryptionOptions

Implements

Inherited Members

Constructors

EncryptionOptions(string, string)

Initializes new instance of the Documentize.EncryptionOptions object with default options.

public EncryptionOptions(string ownerPassword, string userPassword)

Parameters

  • ownerPassword string: Owner password.
  • userPassword string: User password.

Properties

OwnerPassword

Owner password.

public string OwnerPassword { get; set; }

Property Value

string

UserPassword

User password.

public string UserPassword { get; set; }

Property Value

string

Namespace: Documentize Assembly: Documentize.dll

Class FileDataSource

Info

Represents file data for load and save operations of a plugin.

public sealed class FileDataSource : IDataSource

Inheritance

objectFileDataSource

Implements

Inherited Members

Constructors

FileDataSource(string)

Initializes new file data source with the specified path.

public FileDataSource(string path)

Parameters

  • path string: A string representing the path to the source file.

Properties

DataType

Type of data source.

public DataType DataType { get; }

Property Value

DataType

Path

Gets the path to the file of the current data.

public string Path { get; }

Property Value

string

Namespace: Documentize Assembly: Documentize.dll

Class FileResult

Info

Represents operation result in the form of string path to file.

public sealed class FileResult : IOperationResult

Inheritance

objectFileResult

Implements

Inherited Members

Properties

Data

Gets raw data.

public object Data { get; }

Property Value

object

IsFile

Indicates whether the result is a path to an output file.

public bool IsFile { get; }

Property Value

bool

IsStream

Indicates whether the result is an output stream.

public bool IsStream { get; }

Property Value

bool

IsString

Indicates whether the result is a text string.

public bool IsString { get; }

Property Value

bool

Methods

ToFile()

Tries to convert the result to a file.

public string ToFile()

Returns

string : A string representing the path to the output file if the result is file; otherwise null.

ToStream()

Tries to convert the result to a stream object.

public Stream ToStream()

Returns

Stream : A stream object representing the output data if the result is stream; otherwise null.

Namespace: Documentize Assembly: Documentize.dll

Class HtmlConverter

Info

Represents Documentize.HtmlConverter plugin. Used to convert PDF documents into HTML format and HTML documents into PDF format.

public sealed class HtmlConverter : IDisposable

Inheritance

objectHtmlConverter

Implements

Inherited Members

Examples

The example demonstrates how to convert PDF to HTML document.

// create HtmlConverter
var plugin = new HtmlConverter();
// create PdfToHtmlOptions object to set output data type as file with embedded resources
var opt = new PdfToHtmlOptions(PdfToHtmlOptions.SaveDataType.FileWithEmbeddedResources);
// add input file path
opt.AddInput(new FileDataSource(inputPath));
// set output file path
opt.AddOutput(new FileDataSource(outputPath));
plugin.Process(opt);

The example demonstrates how to convert HTML to PDF document.

// create HtmlConverter
var plugin = new HtmlConverter();
// create HtmlToPdfOptions
var opt = new HtmlToPdfOptions();
// add input file path
opt.AddInput(new FileDataSource(inputPath));
// set output file path
opt.AddOutput(new FileDataSource(outputPath));
plugin.Process(opt);

Constructors

HtmlConverter()

public HtmlConverter()

Methods

Dispose()

Implementation of IDisposable.

public void Dispose()

Process(IPluginOptions)

Starts the Documentize.HtmlConverter processing with the specified parameters.

public ResultContainer Process(IPluginOptions options)

Parameters

  • options IPluginOptions: An options object containing instructions for the Documentize.HtmlConverter.

Returns

ResultContainer : An Documentize.ResultContainer object containing the result of the operation.

Namespace: Documentize Assembly: Documentize.dll

Class HtmlToPdfOptions

Info

Represents HTML to PDF converter options for Documentize.HtmlConverter plugin.

public sealed class HtmlToPdfOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsHtmlToPdfOptions

Implements

Inherited Members

Constructors

HtmlToPdfOptions()

Initializes new instance of the Documentize.HtmlToPdfOptions object.

public HtmlToPdfOptions()

Properties

BasePath

The base path/url for the html file.

public string BasePath { get; set; }

Property Value

string

HtmlMediaType

Gets or sets possible media types used during rendering.

public HtmlMediaType HtmlMediaType { get; set; }

Property Value

HtmlMediaType

IsRenderToSinglePage

Gets or sets rendering all document to single page.

public bool IsRenderToSinglePage { get; set; }

Property Value

bool

PageInfo

Gets or sets document page info.

public PageInfo PageInfo { get; set; }

Property Value

PageInfo

PageLayoutOption

Gets or sets layout option.

public HtmlPageLayoutOption PageLayoutOption { get; set; }

Property Value

HtmlPageLayoutOption

Namespace: Documentize Assembly: Documentize.dll

Class ImageExtractor

Info

Represents Documentize.ImageExtractor plugin. Used to extract images from PDF documents.

public class ImageExtractor : PdfExtractor, IDisposable

Inheritance

objectPdfExtractorImageExtractor

Implements

Inherited Members

Examples

The example demonstrates how to extract images from PDF document.

// create ImageExtractor object to extract images
using (var plugin = new ImageExtractor())
{
    // create ImageExtractorOptions
    var opt = new ImageExtractorOptions();

    // add input file path
    opt.AddInput(new FileDataSource(inputPath));
    // set output directory
    opt.AddInput(new FileDataSource("D:\\"));

    // perform extraction process
    var resultContainer = plugin.Process(opt);

    // get the image from the ResultContainer object
    var imageExtracted = resultContainer.ResultCollection[0].ToFile();
}

Constructors

ImageExtractor()

public ImageExtractor()

Namespace: Documentize Assembly: Documentize.dll

Class ImageExtractorOptions

Info

Represents images extraction options for the Documentize.ImageExtractor plugin.

public sealed class ImageExtractorOptions : PdfExtractorOptions, IPluginOptions

Inheritance

objectPdfExtractorOptionsImageExtractorOptions

Implements

Inherited Members

Remarks

It inherits functions to add data (files, streams) representing input PDF documents.

Constructors

ImageExtractorOptions()

Initializes a new instance of the Documentize.ImageExtractorOptions object.

public ImageExtractorOptions()

Properties

OperationName

Returns name of the operation.

public override string OperationName { get; }

Property Value

string

Namespace: Documentize Assembly: Documentize.dll

Class Info

Info

The class provides information about current product build.

public static class Info

Inheritance

objectInfo

Inherited Members

Fields

  • AssemblyVersion Assembly Version.

Field Value

string

Product

Product Name.

public const string Product = "Documentize"

Field Value

string

Namespace: Documentize Assembly: Documentize.dll

Class JpegConverter

Info

Represents Documentize.JpegConverter plugin. Used to convert PDF documents into JPEG format.

public sealed class JpegConverter

Inheritance

objectJpegConverter

Inherited Members

Examples

The example demonstrates how to convert PDF document into JPEG format.

// create JpegConverter
var plugin = new JpegConverter();
// create PdfToJpegOptions object to set instructions
var opt = new PdfToJpegOptions();
// add input file path
opt.AddInput(new FileDataSource(inputPath));
// set output file path
opt.AddOutput(new DirectoryDataSource(outputPath));
// perform the process
plugin.Process(opt);

Constructors

JpegConverter()

public JpegConverter()

Methods

Process(PdfToJpegOptions)

Starts the Documentize.JpegConverter processing with the specified parameters.

public ResultContainer Process(PdfToJpegOptions options)

Parameters

  • options PdfToJpegOptions: An options object containg instructions for the Documentize.JpegConverter.

Returns

ResultContainer : An ResultContainer object containg the result of the operation.

Namespace: Documentize Assembly: Documentize.dll

Class License

Info

Provides method to set License.

public static class License

Inheritance

objectLicense

Inherited Members

Examples

Shows how to activate a license.

// Set License
License.Set("PathToLicense.lic");

Methods

Set(string)

Licenses the component.

public static void Set(string licenseName)

Parameters

  • licenseName string: Can be a full or short file name. Use an empty string to switch to evaluation mode.

Namespace: Documentize Assembly: Documentize.dll

Class MergeOptions

Info

Represents Merge options for Documentize.Merger plugin.

public sealed class MergeOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsMergeOptions

Implements

Inherited Members

Constructors

MergeOptions()

Initializes new instance of the Documentize.MergeOptions object with default options.

public MergeOptions()

Namespace: Documentize Assembly: Documentize.dll

Class Merger

Info

Represents Documentize.Merger plugin. Used to merge multiple PDF documents into a single PDF.

public sealed class Merger

Inheritance

objectMerger

Inherited Members

Examples

The example demonstrates how to merge two PDF documents.

// create Merger
var plugin = new Merger();
// create MergeOptions object to set instructions
var opt = new MergeOptions();
// add input file paths
opt.AddInput(new FileDataSource(inputPath1));
opt.AddInput(new FileDataSource(inputPath2));
// set output file path
opt.AddOutput(new FileDataSource(outputPath));
// perform the process
plugin.Process(opt);

Constructors

Merger()

public Merger()

Methods

Process(MergeOptions)

Starts the Documentize.Merger processing with the specified parameters.

public ResultContainer Process(MergeOptions options)

Parameters

  • options MergeOptions: An options object containg instructions for the operation.

Returns

ResultContainer : An Documentize.ResultContainer object containing the result of the operation.

Namespace: Documentize Assembly: Documentize.dll

Class Message

Info

A chat completion message generated by the model.

public class Message

Inheritance

objectMessage

Inherited Members

Constructors

Message()

public Message()

Properties

Content

The contents of the message.

[JsonProperty("content")]
public string Content { get; set; }

Property Value

string

Role

Sets or gets the role of the author of this message.

[JsonProperty("role")]
[JsonConverter(typeof(StringEnumConverter), new object[] { true })]
public Role Role { get; set; }

Property Value

Role

Namespace: Documentize Assembly: Documentize.dll

Class ObjectResult

Info

Represents operation result in the form of string.

public sealed class ObjectResult : IOperationResult

Inheritance

objectObjectResult

Implements

Inherited Members

Properties

Data

Gets raw data.

public object Data { get; }

Property Value

object

IsFile

Indicates whether the result is a path to an output file.

public bool IsFile { get; }

Property Value

bool

IsObject

Indicates whether the result is an object.

public bool IsObject { get; }

Property Value

bool

IsStream

Indicates whether the result is a path to an output file.

public bool IsStream { get; }

Property Value

bool

IsString

Indicates whether the result is a string.

public bool IsString { get; }

Property Value

bool

Text

Returns string representation of the result.

public string Text { get; }

Property Value

string

Methods

ToFile()

Tries to convert the result to a file.

public string ToFile()

Returns

string : A string representing the path to the output file if the result is file; otherwise null.

ToStream()

Tries to convert the result to a stream object.

public Stream ToStream()

Returns

Stream : A stream object representing the output data if the result is stream; otherwise null.

ToString()

Tries to convert the result to a string.

public override string ToString()

Returns

string : A string representing the text content if the result is string; otherwise returns base.ToString().

Namespace: Documentize Assembly: Documentize.dll

Class OptimizeOptions

Info

Represents Optimize options for Documentize.Optimizer plugin.

public sealed class OptimizeOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsOptimizeOptions

Implements

Inherited Members

Constructors

OptimizeOptions()

Initializes new instance of the Documentize.OptimizeOptions object with default options. Linearize the document in order to

  • open the first page as quickly as possible;
  • display next page or follow by link to the next page as quickly as possible;
  • display the page incrementally as it arrives when data for a page is delivered over a slow channel (display the most useful data first);
  • permit user interaction, such as following a link, to be performed even before the entire page has been received and displayed.
public OptimizeOptions()

Namespace: Documentize Assembly: Documentize.dll

Class Optimizer

Info

Represents Documentize.Optimizer plugin.

public sealed class Optimizer

Inheritance

objectOptimizer

Inherited Members

Examples

The example demonstrates how to optimize PDF document.

// create Optimizer
var plugin = new Optimizer();
// create OptimizeOptions object to set instructions
var opt = new OptimizeOptions();
// add input file path
opt.AddInput(new FileDataSource(inputPath));
// set output file path
opt.AddOutput(new FileDataSource(outputPath));
// perform the process
plugin.Process(opt);

Constructors

Optimizer()

public Optimizer()

Methods

Process(OptimizeOptions)

Starts the Documentize.Optimizer processing with the specified parameters.

public ResultContainer Process(OptimizeOptions options)

Parameters

  • options OptimizeOptions: An options object containg instructions for the Documentize.OptimizeOptions.

Returns

ResultContainer : An ResultContainer object containg the result of the operation.

Process(RotateOptions)

Starts the Documentize.Optimizer processing with the specified parameters.

public ResultContainer Process(RotateOptions options)

Parameters

  • options RotateOptions: An options object containg instructions for the Documentize.RotateOptions.

Returns

ResultContainer : An ResultContainer object containg the result of the operation.

Process(ResizeOptions)

Starts the Documentize.Optimizer processing with the specified parameters.

public ResultContainer Process(ResizeOptions options)

Parameters

  • options ResizeOptions: An options object containg instructions for the Documentize.ResizeOptions.

Returns

ResultContainer : An ResultContainer object containg the result of the operation.

Process(CompressOptions)

Starts the Documentize.Optimizer processing with the specified parameters.

public ResultContainer Process(CompressOptions options)

Parameters

  • options CompressOptions: An options object containg instructions for the Documentize.CompressOptions.

Returns

ResultContainer : An ResultContainer object containg the result of the operation.

Namespace: Documentize Assembly: Documentize.dll

Class PageInfo

Info

Represents the page information.

public class PageInfo : PageSize

Inheritance

objectPageSizePageInfo

Inherited Members

Constructors

PageInfo()

Constructor of Documentize.PageInfo.

public PageInfo()

PageInfo(double, double)

Constructor of Documentize.PageInfo.

public PageInfo(double width, double height)

Parameters

Properties

MarginBottom

Gets or sets a value that indicates the bottom margin.

public double MarginBottom { get; set; }

Property Value

double

MarginLeft

Gets or sets a value that indicates the left margin.

public double MarginLeft { get; set; }

Property Value

double

MarginRight

Gets or sets a value that indicates the right margin.

public double MarginRight { get; set; }

Property Value

double

MarginTop

Gets or sets a value that indicates the top margin.

public double MarginTop { get; set; }

Property Value

double

Namespace: Documentize Assembly: Documentize.dll

Class PageSize

Info

Class representing size of page in PDF document.

public class PageSize

Inheritance

objectPageSize

Derived

Inherited Members

Constructors

PageSize()

Constructor of Documentize.PageSize. A4 sizes by default.

public PageSize()

PageSize(double, double)

Constructor of Documentize.PageSize.

public PageSize(double width, double height)

Parameters

  • width double: Width of the page.
  • height double: Height of the page.

Properties

A0

A0 size (1189x840 mm).

public static PageSize A0 { get; }

Property Value

PageSize

A1

A1 size (840x594 mm).

public static PageSize A1 { get; }

Property Value

PageSize

A2

A2 size (594x420 mm).

public static PageSize A2 { get; }

Property Value

PageSize

A3

A3 size (420x297 mm).

public static PageSize A3 { get; }

Property Value

PageSize

A4

A4 size (297x210 mm).

public static PageSize A4 { get; }

Property Value

PageSize

A5

A5 size (210x148 mm).

public static PageSize A5 { get; }

Property Value

PageSize

A6

A6 size (148x105 mm).

public static PageSize A6 { get; }

Property Value

PageSize

B5

B5 size (250x176 mm).

public static PageSize B5 { get; }

Property Value

PageSize

Height

Gets or sets page height.

public double Height { get; set; }

Property Value

double

IsLandscape

Gets page orientation. Returns true of this is landscape orientation and false if this is portrait.

public bool IsLandscape { get; }

Property Value

bool

P11x17

11x17 inches format.

public static PageSize P11x17 { get; }

Property Value

PageSize

PageLedger

Ledger size (432x279 mm).

public static PageSize PageLedger { get; }

Property Value

PageSize

Legal size (356x216 mm).

public static PageSize PageLegal { get; }

Property Value

PageSize

PageLetter

Letter size (279x216 mm).

public static PageSize PageLetter { get; }

Property Value

PageSize

Width

Gets or sets page width.

public double Width { get; set; }

Property Value

double

Namespace: Documentize Assembly: Documentize.dll

Class PdfAConverter

Info

Represents a plugin for handling the conversion of PDF documents in a PDF/A format and for validation of the PDF/A conformance.

public sealed class PdfAConverter

Inheritance

objectPdfAConverter

Inherited Members

Examples

The example demonstrates how to validate the PDF document conformance to PDF/A format (PDF/A-1a in this case):

// Create the options class to set up the validation process
var options = new PdfAValidateOptions
{
    PdfAVersion = PdfAStandardVersion.PDF_A_1A
};

// Add one or more files to be validated
options.AddInput(new FileDataSource("path_to_your_first_pdf_file.pdf")); // replace with your actual file path
options.AddInput(new FileDataSource("path_to_your_second_pdf_file.pdf"));
// add more files as needed

// Create the plugin instance
var plugin = new PdfAConverter();

// Run the validation and get results
var resultContainer = plugin.Process(options);

// Check the resultContainer.ResultCollection property for validation results for each file:
for (var i = 0; i < resultContainer.ResultCollection.Count; i++)
{
    var result = resultContainer.ResultCollection[i];
    var validationResult = (PdfAValidationResult) result.Data;
    var isValid = validationResult.IsValid; // Validation result for the i-th document
}

The example demonstrates how to convert the PDF document in a PDF/A format (PDF/A-3b in this case):

// Create the options class to set up the conversion process
var options = new PdfAConvertOptions
{
    PdfAVersion = PdfAStandardVersion.PDF_A_3B
};

// Add the source file
options.AddInput(new FileDataSource("path_to_your_pdf_file.pdf")); // replace with your actual file path

// Add the path to save the converted file
options.AddOutput(new FileDataSource("path_to_the_converted_file.pdf"));

// Create the plugin instance
var plugin = new PdfAConverter();

// Run the conversion
plugin.Process(options);

Constructors

PdfAConverter()

public PdfAConverter()

Methods

Process(IPluginOptions)

Begins a PDF/A conversion or validation process with given options.

public ResultContainer Process(IPluginOptions options)

Parameters

  • options IPluginOptions: An options object containing instructions for the plugin. Must be an instance of the Documentize.PdfAConvertOptions: or the Documentize.PdfAValidateOptions class.

Returns

ResultContainer : A Documentize.ResultContainer object containing the result of the processing.

Namespace: Documentize Assembly: Documentize.dll

Class PdfAConvertOptions

Info

Represents options for converting PDF documents to PDF/A format with the Documentize.PdfAConverter plugin.

public sealed class PdfAConvertOptions : PdfAOptionsBase, IPluginOptions

Inheritance

objectPdfAOptionsBasePdfAConvertOptions

Implements

Inherited Members

Constructors

PdfAConvertOptions()

public PdfAConvertOptions()

Properties

Outputs

Gets the collection of added targets (file or stream data sources) for saving operation results.

public List<idatasource> Outputs { get; }

Property Value

List<IDataSource&gt;

Methods

AddOutput(IDataSource)

Adds new result save target.

public void AddOutput(IDataSource dataSource)

Parameters

  • dataSource IDataSource: Target (file or stream data source) for saving operation results. :

Namespace: Documentize Assembly: Documentize.dll

Class PdfAOptionsBase

Info

Represents the base class for the Documentize.PdfAConverter plugin options. This class provides properties and methods for configuring the PDF/A conversion and validation process.

Represents the base class for the Documentize.PdfAConverter plugin options. This class provides properties and methods for configuring the PDF/A conversion and validation process.

public abstract class PdfAOptionsBase : IPluginOptions

Inheritance

objectPdfAOptionsBase

Derived

Implements

Inherited Members

Constructors

PdfAOptionsBase()

protected PdfAOptionsBase()

Properties

AlignText

Gets or sets a value indicating whether additional means are necessary to preserve text alignment during the PDF/A conversion process.

public bool AlignText { get; set; }

Property Value

bool

Remarks

When set to true, the conversion process will attempt to restore the original text segment bounds. For the most of the documents there is no need to change this property from the default false value, as the text alignment doesn’t change during the default conversion process.

CheckDifferentNamesInFontDictionaries

Gets the flags that control the PDF/A conversion for cases when the source PDF document doesn’t correspond to the PDF specification.

public bool CheckDifferentNamesInFontDictionaries { get; set; }

Property Value

bool

ErrorAction

Gets or sets the action to be taken for objects that cannot be converted.

public ConvertErrorAction ErrorAction { get; set; }

Property Value

ConvertErrorAction

IccProfileFileName

Gets or sets the filename of the ICC (International Color Consortium) profile to be used for the PDF/A conversion in place of the default one.

public string IccProfileFileName { get; set; }

Property Value

string

Inputs

Gets collection of data sources

public List<idatasource> Inputs { get; }

Property Value

List<IDataSource&gt;

IsLowMemoryMode

Gets or sets a value indicating whether the low memory mode is enabled during the PDF/A conversion process.

public bool IsLowMemoryMode { get; set; }

Property Value

bool

LogOutputSource

Gets or sets the data source for the log output.

public IDataSource LogOutputSource { get; set; }

Property Value

IDataSource

OptimizeFileSize

Gets or sets a value indicating whether to try to reduce the file size during the PDF/A conversion process.

public bool OptimizeFileSize { get; set; }

Property Value

bool

Remarks

When set to true, the conversion process will attempt to minimize the resulting file size. This might affect the conversion process performance.

PdfAVersion

Gets or sets the version of the PDF/A standard to be used for validation or conversion.

public PdfAStandardVersion PdfAVersion { get; set; }

Property Value

PdfAStandardVersion

Remarks

The PDF/A standard version is used to determine the compliance level for PDF/A validation and conversion. If the version is set to Documentize.PdfAStandardVersion.Auto, the system will automatically determine the appropriate PDF/A standard version for validation based on the document metadata. For the PDF/A conversion process the Documentize.PdfAStandardVersion.Auto defaults to the PDF/A-1b standard version.

SoftMaskAction

Gets or sets the action to be taken during the conversion of images with soft masks.

public ConvertSoftMaskAction SoftMaskAction { get; set; }

Property Value

ConvertSoftMaskAction

Methods

AddInput(IDataSource)

Adds new data source to the collection

public void AddInput(IDataSource dataSource)

Parameters

Namespace: Documentize Assembly: Documentize.dll

Class PdfAValidateOptions

Info

Represents options for validating PDF/A compliance of PDF documents with the Documentize.PdfAConverter plugin.

public sealed class PdfAValidateOptions : PdfAOptionsBase, IPluginOptions

Inheritance

objectPdfAOptionsBasePdfAValidateOptions

Implements

Inherited Members

Constructors

PdfAValidateOptions()

public PdfAValidateOptions()

Namespace: Documentize Assembly: Documentize.dll

Class PdfAValidationResult

Info

Represents the result of a PDF/A validation process.

public sealed class PdfAValidationResult

Inheritance

objectPdfAValidationResult

Inherited Members

Fields

  • DataSource Gets the data source that was validated.

Field Value

IDataSource

IsValid

Gets a value indicating whether the validation was successful.

public readonly bool IsValid

Field Value

bool

StandardVersion

Gets the PDF/A standard version used for validation.

public readonly PdfAStandardVersion StandardVersion

Field Value

PdfAStandardVersion

Namespace: Documentize Assembly: Documentize.dll

Class PdfChatGpt

Info

Represents PdfChatGpt plugin.

public sealed class PdfChatGpt : IDisposable

Inheritance

objectPdfChatGpt

Implements

Inherited Members

Examples

The example demonstrates how to use PdfChatGpt plugin by adding messages to the request.

using (var plugin = new PdfChatGpt())
{
    var options = new PdfChatGptRequestOptions();
    options.AddOutput(new FileDataSource("PdfChatGPT_output.pdf")); // Add the output file path.
    options.ApiKey = "Your API key."; // You need to provide the key to access the API.
    options.MaxTokens = 1000; // The maximum number of tokens to generate in the chat completion.

    // Add the request messages.
    options.Messages.Add(new Message
    {
        Content = "You are a helpful assistant.",
        Role = Role.System
    });
    options.Messages.Add(new Message
    {
        Content = "What is the biggest pizza diameter ever made?",
        Role = Role.User
    });

    // Process the request.
    var result = await plugin.ProcessAsync(options);

    var fileResultPath = result.ResultCollection[0].Data;
    var chatCompletionObject = result.ResultCollection[1].Data as ChatCompletion; // The ChatGPT API chat completion object.
}

The example demonstrates how to use PdfChatGpt plugin by adding one message to the request.

using (var plugin = new PdfChatGpt())
{
    var options = new PdfChatGptRequestOptions();
    options.AddOutput(new FileDataSource("PdfChatGPT_output.pdf")); // Add the output file path.
    options.ApiKey = "Your API key."; // You need to provide the key to access the API.
    options.MaxTokens = 1000; // The maximum number of tokens to generate in the chat completion.

    // Add the request message.
    // In this case, the system message with Content = "You are a helpful assistant." is added by default.
    // The role of the query message is "user" by default.
    options.Query = "What is the lowest temperature recorded on the Earth?";

    // Process the request.
    var result = await plugin.ProcessAsync(options);

    var fileResultPath = result.ResultCollection[0].Data;
    var chatCompletionObject = result.ResultCollection[1].Data as ChatCompletion; // The ChatGPT API chat completion object.
}

The example demonstrates how to use PdfChatGpt plugin by adding file(s) as the message source(s).

using (var plugin = new PdfChatGpt())
{
    var options = new PdfChatGptRequestOptions();
    options.AddOutput(new FileDataSource("PdfChatGPT_output.pdf")); // Add the output file path.

    // Add the PDF text source.
    // In case of multiple sources, the text from each document will be added to the request message collection
    // as a separate message with the role "user".
    options.AddInput(new FileDataSource("TextSource.pdf"));

    options.ApiKey = "Your API key."; // You need to provide the key to access the API.
    options.MaxTokens = 1000; // The maximum number of tokens to generate in the chat completion.

    // Add the request message.
    // In this case, the system message with Content = "You are a helpful assistant." is added by default.
    // The role of the query message is "user" by default.
    options.Query = "How many letters in the provided text?";

    // Process the request.
    var result = await plugin.ProcessAsync(options);

    var fileResultPath = result.ResultCollection[0].Data;
    var chatCompletionObject = result.ResultCollection[1].Data as ChatCompletion; // The ChatGPT API chat completion object.
}

Remarks

The Documentize.PdfChatGpt object is used to send requests to ChatGPT directly or by adding PDF file sources and save the reply to the output source.

Constructors

PdfChatGpt()

Initializes a new instance of the Documentize.PdfChatGpt object.

public PdfChatGpt()

Methods

Dispose()

Implementation of IDisposable. In fact, it is not necessary for PdfChatGpt.

public void Dispose()

Process(IPluginOptions)

The method has no synchronous version. Use the ProcessAsync method instead.

public ResultContainer Process(IPluginOptions options)

Parameters

  • options IPluginOptions: An options object containing instructions for the PdfChatGpt.

Returns

ResultContainer : #### Exceptions

NotImplementedException

ProcessAsync(IPluginOptions)

Starts the PdfChatGpt processing with the specified parameters.

public Task<resultcontainer> ProcessAsync(IPluginOptions options)

Parameters

  • options IPluginOptions: An options object containing instructions for the PdfChatGpt.

Returns

Task<ResultContainer&gt;

The task object representing the asynchronous operation.

Exceptions

ArgumentException : InvalidOperationException

SetCancellationToken(CancellationToken)

Sets the cancellation token.

public void SetCancellationToken(CancellationToken cancellationToken)

Parameters

Namespace: Documentize Assembly: Documentize.dll

Class PdfChatGptOptions

Info

Represents options for Documentize.PdfChatGpt plugin.

public class PdfChatGptOptions : IPluginOptions

Inheritance

objectPdfChatGptOptions

Derived

Implements

Inherited Members

Constructors

PdfChatGptOptions()

Initializes a new instance of the Documentize.PdfChatGptOptions object.

public PdfChatGptOptions()

Properties

Inputs

public List<idatasource> Inputs { get; }

Property Value

List<IDataSource&gt;

Outputs

public List<idatasource> Outputs { get; }

Property Value

List<IDataSource&gt;

Methods

AddInput(IDataSource)

Adds new data source to the PdfChatGpt plugin data collection.

public void AddInput(IDataSource dataSource)

Parameters

  • dataSource IDataSource: Data source (file or stream) to add.

AddOutput(IDataSource)

Adds new save data source to the PdfChatGpt plugin data collection.

public void AddOutput(IDataSource saveDataSource)

Parameters

  • saveDataSource IDataSource: Data source (file or stream) for saving operation results. :

Namespace: Documentize Assembly: Documentize.dll

Class PdfChatGptRequestOptions

Info

Represents options for Documentize.PdfChatGpt plugin.

public class PdfChatGptRequestOptions : PdfChatGptOptions, IPluginOptions

Inheritance

objectPdfChatGptOptionsPdfChatGptRequestOptions

Implements

Inherited Members

Constructors

PdfChatGptRequestOptions()

Initializes new instance of the Documentize.PdfChatGptRequestOptions object with default options.

public PdfChatGptRequestOptions()

PdfChatGptRequestOptions(string, string, string, string)

Initializes a new instance of the Documentize.PdfChatGptRequestOptions object with options.

public PdfChatGptRequestOptions(string apiKey, string model, string apiUrl, string query)

Parameters

Properties

ApiKey

Gets or sets the key to access to the ChatGPT API.

public string ApiKey { get; set; }

Property Value

string

ApiUrl

Gets or sets the ChatGPT API URL.

public string ApiUrl { get; set; }

Property Value

string

MaxTokens

Maximum number of tokens in the response. Default value is null, means infinity.

public int? MaxTokens { get; set; }

Property Value

int?

Messages

Gets or sets a collection of the Documentize.Message objects.

public List<message> Messages { get; set; }

Property Value

List<Message&gt;

Model

Sets or gets ID of the model to use.

public string Model { get; set; }

Property Value

string

NumberOfChoices

How many chat completion choices to generate for each input message.

public int NumberOfChoices { get; set; }

Property Value

int

Query

Gets or sets the string request to ChatGPT. If not empty, this is the first message in the collection, that will be sent in the request.

public string Query { get; set; }

Property Value

string

Temperature

What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. Default value is 1.

public double Temperature { get; set; }

Property Value

double

Namespace: Documentize Assembly: Documentize.dll

Class PdfConverterOptions

Info

Represents options for Pdf converter plugins.

public abstract class PdfConverterOptions : IPluginOptions

Inheritance

objectPdfConverterOptions

Derived

Implements

Inherited Members

Properties

Inputs

Returns PdfConverterOptions plugin data collection.

public List<idatasource> Inputs { get; }

Property Value

List<IDataSource&gt;

Outputs

Gets collection of added targets for saving operation results.

public List<idatasource> Outputs { get; }

Property Value

List<IDataSource&gt;

Methods

AddInput(IDataSource)

Adds new data source to the PdfConverter plugin data collection.

public void AddInput(IDataSource dataSource)

Parameters

AddOutput(IDataSource)

Adds new data source to the PdfToXLSXConverterOptions plugin data collection.

public void AddOutput(IDataSource saveDataSource)

Parameters

  • saveDataSource IDataSource: Data source (file or stream) for saving operation results.

Exceptions

NotImplementedException

Namespace: Documentize Assembly: Documentize.dll

Class PdfExtractor

Info

Represents base functionality to extract text, images, and other types of content that may occur on the pages of PDF documents.

public abstract class PdfExtractor : IDisposable

Inheritance

objectPdfExtractor

Derived

Implements

Inherited Members

Examples

The example demonstrates how to extract text content of PDF document.

// create TextExtractor object to extract PDF contents
using (TextExtractor extractor = new TextExtractor())
{
    // create TextExtractorOptions object to set instructions
    textExtractorOptions = new TextExtractorOptions();

    // add input file path
    textExtractorOptions.AddInput(new FileDataSource(inputPath));

    // perform extraction process
    ResultContainer resultContainer = extractor.Process(textExtractorOptions);

    // get the extracted text from the ResultContainer object
    string textExtracted = resultContainer.ResultCollection[0].ToString();
}

Remarks

The Documentize.TextExtractor object is used to extract text, or Documentize.ImageExtractor to extract images.

Constructors

PdfExtractor()

protected PdfExtractor()

Methods

Dispose()

Implementation of IDisposable. Actually, it is not necessary for PdfExtractor.

public void Dispose()

Process(IPluginOptions)

Starts PdfExtractor processing with the specified parameters.

public ResultContainer Process(IPluginOptions pdfExtractorOptions)

Parameters

  • pdfExtractorOptions IPluginOptions: An options object containing instructions for the PdfExtractor.

Returns

ResultContainer : A ResultContainer object containing the result of the extraction.

Namespace: Documentize Assembly: Documentize.dll

Class PdfExtractorOptions

Info

Represents options for the TextExtractor and ImageExtractor plugins.

public abstract class PdfExtractorOptions : IPluginOptions

Inheritance

objectPdfExtractorOptions

Derived

Implements

Inherited Members

Remarks

The Documentize.PdfExtractorOptions contains base functions to add data (files, streams) representing input PDF documents. Please create Documentize.TextExtractorOptions or ImageExtractorOptions instead of this.

Properties

Inputs

Returns PdfExtractor plugin data collection.

public List<idatasource> Inputs { get; }

Property Value

List<IDataSource&gt;

OperationName

Returns operation name

public virtual string OperationName { get; }

Property Value

string

Methods

AddInput(IDataSource)

Adds new data source to the PdfExtractor plugin data collection.

public void AddInput(IDataSource dataSource)

Parameters

Namespace: Documentize Assembly: Documentize.dll

Class PdfToDocOptions

Info

Represents PDF to DOC converter options for Documentize.DocConverter plugin.

public sealed class PdfToDocOptions : PdfConverterOptions, IPluginOptions

Inheritance

objectPdfConverterOptionsPdfToDocOptions

Implements

Inherited Members

Constructors

PdfToDocOptions()

Initializes new instance of the Documentize.PdfToDocOptions object with default options.

public PdfToDocOptions()

Namespace: Documentize Assembly: Documentize.dll

Class PdfToHtmlOptions

Info

Represents PDF to HTML converter options for Documentize.HtmlConverter plugin.

public sealed class PdfToHtmlOptions : PdfConverterOptions, IPluginOptions

Inheritance

objectPdfConverterOptionsPdfToHtmlOptions

Implements

Inherited Members

Constructors

PdfToHtmlOptions()

Initializes new instance of the Documentize.PdfToHtmlOptions object with default options.

public PdfToHtmlOptions()

PdfToHtmlOptions(SaveDataType)

Initializes a new instance of the Documentize.PdfToHtmlOptions object for the specified output data type.

public PdfToHtmlOptions(PdfToHtmlOptions.SaveDataType outputDataType)

Parameters

Properties

OutputDataType

Gets output data type.

public PdfToHtmlOptions.SaveDataType OutputDataType { get; }

Property Value

PdfToHtmlOptions.SaveDataType

Namespace: Documentize Assembly: Documentize.dll

Class PdfToJpegOptions

Info

Represents PDF to JPEG converter options for the Documentize.JpegConverter plugin.

public sealed class PdfToJpegOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsPdfToJpegOptions

Implements

Inherited Members

Constructors

PdfToJpegOptions()

Initializes a new instance of the Documentize.PdfToJpegOptions object.

public PdfToJpegOptions()

Properties

OutputResolution

Gets or sets the resolution value of the resulting images.

public int OutputResolution { get; set; }

Property Value

int

PageList

Gets or sets a list of pages for the process.

public List<int> PageList { get; set; }

Property Value

List<int&gt;

Quality

Gets and sets output quality.

public int Quality { get; set; }

Property Value

int

Namespace: Documentize Assembly: Documentize.dll

Class PdfToPngOptions

Info

Represents PDF to PNG converter options for the Documentize.PngConverter plugin.

public sealed class PdfToPngOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsPdfToPngOptions

Implements

Inherited Members

Constructors

PdfToPngOptions()

Initializes a new instance of the Documentize.PdfToPngOptions object.

public PdfToPngOptions()

Properties

OutputResolution

Gets or sets the resolution value of the resulting images.

public int OutputResolution { get; set; }

Property Value

int

PageList

Gets or sets a list of pages for the process.

public List<int> PageList { get; set; }

Property Value

List<int&gt;

Namespace: Documentize Assembly: Documentize.dll

Class PdfToTiffOptions

Info

Represents PDF to TIFF converter options for the Documentize.TiffConverter plugin.

public sealed class PdfToTiffOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsPdfToTiffOptions

Implements

Inherited Members

Constructors

PdfToTiffOptions()

Initializes a new instance of the Documentize.PdfToTiffOptions object.

public PdfToTiffOptions()

Properties

MultiPage

Gets and sets flag that allows to save all pages in one multi-page tiff.

public bool MultiPage { get; set; }

Property Value

bool

OutputResolution

Gets or sets the resolution value of the resulting images.

public int OutputResolution { get; set; }

Property Value

int

PageList

Gets or sets a list of pages for the process.

public List<int> PageList { get; set; }

Property Value

List<int&gt;

Namespace: Documentize Assembly: Documentize.dll

Class PdfToXlsOptions

Info

Represents PDF to XLSX converter options for Documentize.XlsConverter plugin.

public sealed class PdfToXlsOptions : PdfConverterOptions, IPluginOptions

Inheritance

objectPdfConverterOptionsPdfToXlsOptions

Implements

Inherited Members

Constructors

PdfToXlsOptions()

Initializes new instance of the Documentize.PdfToXlsOptions object with default options.

public PdfToXlsOptions()

Properties

Format

Output format.

public PdfToXlsOptions.ExcelFormat Format { get; set; }

Property Value

PdfToXlsOptions.ExcelFormat

InsertBlankColumnAtFirst

Set true if you need inserting of blank column as the first column of worksheet. Default value is false; it means that blank column will not be inserted.

public bool InsertBlankColumnAtFirst { get; set; }

Property Value

bool

MinimizeTheNumberOfWorksheets

Set true if you need to minimize the number of worksheets in resultant workbook. Default value is false; it means save of each PDF page as separated worksheet.

public bool MinimizeTheNumberOfWorksheets { get; set; }

Property Value

bool

Namespace: Documentize Assembly: Documentize.dll

Class PluginBaseOptions

Info

Represents base options for plugins.

public class PluginBaseOptions : IPluginOptions

Inheritance

objectPluginBaseOptions

Derived

Implements

Inherited Members

Properties

CloseInputStreams

Close input streams after operation completed.

public bool CloseInputStreams { get; set; }

Property Value

bool

CloseOutputStreams

Close output streams after operation completed.

public bool CloseOutputStreams { get; set; }

Property Value

bool

Inputs

Returns Inputs data for operation.

public List<idatasource> Inputs { get; }

Property Value

List<IDataSource&gt;

Outputs

Returns Outputs data for operation.

public List<idatasource> Outputs { get; }

Property Value

List<IDataSource&gt;

Methods

AddInput(IDataSource)

Adds new Data to Inputs.

public void AddInput(IDataSource dataSource)

Parameters

AddOutput(IDataSource)

Adds new Data to Outputs.

public void AddOutput(IDataSource saveDataSource)

Parameters

Namespace: Documentize Assembly: Documentize.dll

Class PngConverter

Info

Represents Documentize.PngConverter plugin. Used to convert PDF documents into PNG format.

public sealed class PngConverter

Inheritance

objectPngConverter

Inherited Members

Examples

The example demonstrates how to convert PDF document into PNG format.

// create PngConverter
var plugin = new PngConverter();
// create PdfToPngOptions object to set instructions
var opt = new PdfToPngOptions();
// add input file path
opt.AddInput(new FileDataSource(inputPath));
// set output file path
opt.AddOutput(new DirectoryDataSource(outputPath));
// perform the process
plugin.Process(opt);

Constructors

PngConverter()

public PngConverter()

Methods

Process(PdfToPngOptions)

Starts the Documentize.PngConverter processing with the specified parameters.

public ResultContainer Process(PdfToPngOptions options)

Parameters

  • options PdfToPngOptions: An options object containg instructions for the Documentize.PngConverter.

Returns

ResultContainer : An ResultContainer object containg the result of the operation.

Namespace: Documentize Assembly: Documentize.dll

Class Rectangle

Info

Class represents rectangle.

public class Rectangle

Inheritance

objectRectangle

Inherited Members

Constructors

Rectangle(double, double, double, double)

Constructor of Rectangle.

public Rectangle(double llx, double lly, double urx, double ury)

Parameters

  • llx double: X of lower left corner.
  • lly double: Y of lower left corner.
  • urx double: X of upper right corner.
  • ury double: Y of upper right corner.

Namespace: Documentize Assembly: Documentize.dll

Class ResizeOptions

Info

Represents Resize options for Documentize.Optimizer plugin.

public sealed class ResizeOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsResizeOptions

Implements

Inherited Members

Constructors

ResizeOptions()

Initializes new instance of the Documentize.ResizeOptions object with default options.

public ResizeOptions()

Properties

PageSize

Gets or sets new page size.

public PageSize PageSize { get; set; }

Property Value

PageSize

Namespace: Documentize Assembly: Documentize.dll

Class ResultContainer

Info

Represents container that contains the result collection of processing the plugin.

public class ResultContainer

Inheritance

objectResultContainer

Inherited Members

Properties

ResultCollection

Gets collection of the operation results

public List<ioperationresult> ResultCollection { get; }

Property Value

List<IOperationResult&gt;

Namespace: Documentize Assembly: Documentize.dll

Class RotateOptions

Info

Represents Rotate options for Documentize.Optimizer plugin.

public sealed class RotateOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsRotateOptions

Implements

Inherited Members

Constructors

RotateOptions()

Initializes new instance of the Documentize.RotateOptions object with default options.

public RotateOptions()

Properties

Rotation

Gets or sets new pages rotation.

public Rotation Rotation { get; set; }

Property Value

Rotation

Namespace: Documentize Assembly: Documentize.dll

Class Security

Info

Represents Documentize.Security plugin.

public sealed class Security

Inheritance

objectSecurity

Inherited Members

Examples

The example demonstrates how to encrypt PDF document.

// create Security 
var plugin = new Security();
// create EncryptionOptions object to set instructions
var opt = new EncryptionOptions("123456", "qwerty");
// add input file path
opt.AddInput(new FileDataSource(inputPath));
// set output file path
opt.AddOutput(new FileDataSource(outputPath));
// perform the process
plugin.Process(opt);

The example demonstrates how to decrypt PDF document.

// create Security 
var plugin = new Security();
// create DecryptionOptions object to set instructions
var opt = new DecryptionOptions("123456"));
// add input file path
opt.AddInput(new FileDataSource(inputPath));
// set output file path
opt.AddOutput(new FileDataSource(outputPath));
// perform the process
plugin.Process(opt);

Constructors

Security()

public Security()

Methods

Process(IPluginOptions)

Starts the Documentize.Security processing with the specified parameters.

public ResultContainer Process(IPluginOptions options)

Parameters

  • options IPluginOptions: An options object containg instructions for the Documentize.Security.

Returns

ResultContainer : A ResultContainer object containg the result of the operation.

Exceptions

InvalidOperationException

Namespace: Documentize Assembly: Documentize.dll

Class Signature

Info

Represents Documentize.Signature plugin.

public sealed class Signature

Inheritance

objectSignature

Inherited Members

Examples

The example demonstrates how to sign PDF document.

// create Signature
var plugin = new Signature();
// create SignOptions object to set instructions
var opt = new SignOptions(inputPfx, inputPfxPassword);
// add input file path
opt.AddInput(new FileDataSource(inputPath));
// set output file path
opt.AddOutput(new FileDataSource(outputPath));
// perform the process
plugin.Process(opt);

Constructors

Signature()

public Signature()

Methods

Process(IPluginOptions)

Starts the Documentize.Signature processing with the specified parameters.

public ResultContainer Process(IPluginOptions options)

Parameters

  • options IPluginOptions: An options object containg instructions for the Documentize.Signature.

Returns

ResultContainer : An ResultContainer object containg the result of the operation.

Exceptions

InvalidOperationException

Namespace: Documentize Assembly: Documentize.dll

Class SignOptions

Info

Represents Sign Options for Documentize.Signature plugin.

public sealed class SignOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsSignOptions

Implements

Inherited Members

Constructors

SignOptions(string, string)

Initializes new instance of the Documentize.SignOptions object with default options.

public SignOptions(string pfx, string password)

Parameters

  • pfx string: The path to the pfx file.
  • password string: The password to the pfx file.

SignOptions(Stream, string)

Initializes new instance of the Documentize.SignOptions object with default options.

public SignOptions(Stream pfx, string password)

Parameters

  • pfx Stream: The stream with the pfx file.
  • password string: The password to the pfx file.

Properties

Contact

The contact of signature.

public string Contact { get; set; }

Property Value

string

Location

The location of signature.

public string Location { get; set; }

Property Value

string

Name

The name of existing signature field. Null to create a new field.

public string Name { get; set; }

Property Value

string

PageNumber

The page number on which signature is made.

public int PageNumber { get; set; }

Property Value

int

Reason

The reason of signature.

public string Reason { get; set; }

Property Value

string

Rectangle

The rect of signature.

public Rectangle Rectangle { get; set; }

Property Value

Rectangle

Visible

The visiblity of signature.

public bool Visible { get; set; }

Property Value

bool

Namespace: Documentize Assembly: Documentize.dll

Class SplitOptions

Info

Represents Split options for Documentize.Splitter plugin.

public sealed class SplitOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsSplitOptions

Implements

Inherited Members

Constructors

SplitOptions()

Initializes new instance of the Documentize.SplitOptions object with default options.

public SplitOptions()

Namespace: Documentize Assembly: Documentize.dll

Class Splitter

Info

Represents Documentize.Splitter plugin. Used to split documents into separate pages.

public class Splitter

Inheritance

objectSplitter

Inherited Members

Examples

The example demonstrates how to split PDF document.

// create Splitter
var plugin = new Splitter();
// create SplitOptions object to set instructions
var opt = new SplitOptions();
// add input file path
opt.AddInput(new FileDataSource(inputPath));
// set output file paths
opt.AddOutput(new FileDataSource(outputPath1));
opt.AddOutput(new FileDataSource(outputPath2));
// perform the process
plugin.Process(opt);

Constructors

Splitter()

public Splitter()

Methods

Process(IPluginOptions)

Starts the Documentize.Splitter processing with the specified parameters.

public ResultContainer Process(IPluginOptions options)

Parameters

  • options IPluginOptions: An options object containg instructions for the Documentize.Splitter.

Returns

ResultContainer : An ResultContainer object containg the result of the operation.

Exceptions

InvalidOperationException

Namespace: Documentize Assembly: Documentize.dll

Class StreamDataSource

Info

Represents stream data source for load and save operations of a plugin.

public sealed class StreamDataSource : IDataSource

Inheritance

objectStreamDataSource

Implements

Inherited Members

Constructors

StreamDataSource(Stream)

Initializes new stream data source with the specified stream object.

public StreamDataSource(Stream data)

Parameters

Properties

Data

Gets the stream object of the current data source.

public Stream Data { get; }

Property Value

Stream

DataType

Type of data source (stream).

public DataType DataType { get; }

Property Value

DataType

Namespace: Documentize Assembly: Documentize.dll

Class StreamResult

Info

Represents operation result in the form of Stream.

public sealed class StreamResult : IOperationResult

Inheritance

objectStreamResult

Implements

Inherited Members

Properties

Data

Gets raw data.

public object Data { get; }

Property Value

object

IsFile

Indicates whether the result is a path to an output file.

public bool IsFile { get; }

Property Value

bool

IsStream

Indicates whether the result is a path to an output file.

public bool IsStream { get; }

Property Value

bool

IsString

Indicates whether the result is a string.

public bool IsString { get; }

Property Value

bool

Methods

ToFile()

Tries to convert the result to a file.

public string ToFile()

Returns

string : A string representing the path to the output file if the result is file; otherwise null.

ToStream()

Tries to convert the result to a stream object.

public Stream ToStream()

Returns

Stream : A stream object representing the output data if the result is stream; otherwise null.

Namespace: Documentize Assembly: Documentize.dll

Class StringResult

Info

Represents operation result in the form of string.

public sealed class StringResult : IOperationResult

Inheritance

objectStringResult

Implements

Inherited Members

Properties

Data

Gets raw data.

public object Data { get; }

Property Value

object

IsFile

Indicates whether the result is a path to an output file.

public bool IsFile { get; }

Property Value

bool

IsStream

Indicates whether the result is a path to an output file.

public bool IsStream { get; }

Property Value

bool

IsString

Indicates whether the result is a string.

public bool IsString { get; }

Property Value

bool

Text

Returns string representation of the result.

public string Text { get; }

Property Value

string

Methods

ToFile()

Tries to convert the result to a file.

public string ToFile()

Returns

string : A string representing the path to the output file if the result is file; otherwise null.

ToStream()

Tries to convert the result to a stream object.

public Stream ToStream()

Returns

Stream : A stream object representing the output data if the result is stream; otherwise null.

ToString()

Tries to convert the result to a string.

public override string ToString()

Returns

string : A string representing the text content if the result is string; otherwise returns base.ToString().

Namespace: Documentize Assembly: Documentize.dll

Class TableBuilder

Info

Class represents builder for table in pdf page.

public class TableBuilder

Inheritance

objectTableBuilder

Derived

Inherited Members

Methods

AddRow()

Add new row to table.

public virtual TableRowBuilder AddRow()

Returns

TableRowBuilder : Instance of current Documentize.TableRowBuilder.

AddTable()

Add new table to document.

public TableBuilder AddTable()

Returns

TableBuilder : Instance of current Documentize.TableBuilder.

InsertPageAfter(int)

Insert page after specified page.

public TableOptions InsertPageAfter(int page)

Parameters

  • page int: Page number to insert table after.

Returns

TableOptions : Instance of current Documentize.TableOptions.

InsertPageBefore(int)

Insert page before specified page.

public TableOptions InsertPageBefore(int page)

Parameters

  • page int: Page number to insert table after.

Returns

TableOptions : Instance of current Documentize.TableOptions.

Operators

implicit operator TableOptions(TableBuilder)

Converts builder Documentize.TableBuilder to options Documentize.TableOptions

public static implicit operator TableOptions(TableBuilder builder)

Parameters

  • builder TableBuilder: Instance of current Documentize.TableBuilder.

Returns

TableOptions : Result of conversion to PdfGeneratorTableOptions.

Namespace: Documentize Assembly: Documentize.dll

Class TableCellBuilder

Info

Class represents builder for table cell.

public class TableCellBuilder : TableRowBuilder

Inheritance

objectTableBuilderTableRowBuilderTableCellBuilder

Inherited Members

Methods

AddCell()

Add cell to table.

public override TableCellBuilder AddCell()

Returns

TableCellBuilder : Instance of current Documentize.TableCellBuilder.

AddParagraph(params string[])

Add paragraphs to table cell.

public TableCellBuilder AddParagraph(params string[] paragraphs)

Parameters

  • paragraphs string[]: Text for Paragraphs.

Returns

TableCellBuilder : Instance of current Documentize.TableCellBuilder.

Namespace: Documentize Assembly: Documentize.dll

Class TableGenerator

Info

Represents Documentize.TableGenerator plugin. Used to add a table to a PDF document.

public sealed class TableGenerator

Inheritance

objectTableGenerator

Inherited Members

Examples

The example demonstrates how to add table to PDF file.

// create TableGenerator
var plugin = new TableGenerator();
// create TableOptions object to set instructions
TableOptions opt = new TableOptions().InsertPageBefore(1)
   .AddTable()
        .AddRow()
            .AddCell().AddParagraph("Name")
            .AddCell().AddParagraph("Age")
        .AddRow()
            .AddCell().AddParagraph("Bob")
            .AddCell().AddParagraph("12")
        .AddRow()
            .AddCell().AddParagraph("Sam")
            .AddCell().AddParagraph("20")
        .AddRow()
            .AddCell().AddParagraph("Sandy")
            .AddCell().AddParagraph("26")
        .AddRow()
            .AddCell().AddParagraph("Tom")
            .AddCell().AddParagraph("12")
        .AddRow()
            .AddCell().AddParagraph("Jim")
            .AddCell().AddParagraph("27");
// add input file path
opt.AddInput(new FileDataSource(inputPath1));
// set output file path
opt.AddOutput(new FileDataSource(outputPath));
// perform the process
plugin.Process(opt);

Constructors

TableGenerator()

public TableGenerator()

Methods

Process(TableOptions)

Starts the Documentize.TableGenerator processing with the specified parameters.

public ResultContainer Process(TableOptions options)

Parameters

  • options TableOptions: An options object containg instructions for the Documentize.TableGenerator.

Returns

ResultContainer : An ResultContainer object containg the result of the operation.

Namespace: Documentize Assembly: Documentize.dll

Class TableOptions

Info

Represents options for add table to document by Documentize.TableGenerator plugin.

public sealed class TableOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsTableOptions

Implements

Inherited Members

Constructors

TableOptions()

Initializes new instance of the Documentize.TableOptions object with default options.

public TableOptions()

Methods

AddTable()

Adding table to document.

public TableBuilder AddTable()

Returns

TableBuilder : New instance of Documentize.TableBuilder.

Create()

Create instance of Documentize.TableOptions.

public static TableOptions Create()

Returns

TableOptions : New instance of Documentize.TableOptions.

InsertPageAfter(int)

Insert page after specified page.

public TableOptions InsertPageAfter(int page)

Parameters

  • page int: Page number to insert table after.

Returns

TableOptions : Instance of current Documentize.TableOptions.

InsertPageBefore(int)

Insert page before specified page.

public TableOptions InsertPageBefore(int page)

Parameters

  • page int: Page number to insert table after.

Returns

TableOptions : Instance of current Documentize.TableOptions.

Namespace: Documentize Assembly: Documentize.dll

Class TableRowBuilder

Info

Class represents builder for table row.

public class TableRowBuilder : TableBuilder

Inheritance

objectTableBuilderTableRowBuilder

Derived

Inherited Members

Methods

AddCell()

Add cell to table row.

public virtual TableCellBuilder AddCell()

Returns

TableCellBuilder : Instance of created Documentize.TableCellBuilder.

AddRow()

Overriding AddRow.

public override TableRowBuilder AddRow()

Returns

TableRowBuilder : Instance of current Documentize.TableRowBuilder.

Namespace: Documentize Assembly: Documentize.dll

Class TextExtractor

Info

Represents Documentize.TextExtractor plugin. Used to extract text from PDF documents.

public class TextExtractor : PdfExtractor, IDisposable

Inheritance

objectPdfExtractorTextExtractor

Implements

Inherited Members

Examples

The example demonstrates how to extract text content of PDF document.

// create TextExtractor object to extract text in PDF contents
using (var plugin = new TextExtractor())
{
    // create TextExtractorOptions
    var opt = new TextExtractorOptions();

    // add input file path
    opt.AddInput(new FileDataSource(inputPath));

    // perform extraction process
    var resultContainer = plugin.Process(opt);

    // get the extracted text from the ResultContainer object
    var textExtracted = resultContainer.ResultCollection[0].ToString();
}

Constructors

TextExtractor()

public TextExtractor()

Namespace: Documentize Assembly: Documentize.dll

Class TextExtractorOptions

Info

Represents text extraction options for the Documentize.TextExtractor plugin.

public sealed class TextExtractorOptions : PdfExtractorOptions, IPluginOptions

Inheritance

objectPdfExtractorOptionsTextExtractorOptions

Implements

Inherited Members

Examples

The example demonstrates how to extract text content of PDF document.

// create TextExtractor object to extract PDF contents
using (TextExtractor extractor = new TextExtractor())
{
    // create TextExtractorOptions object to set TextFormattingMode (Pure,  or Raw - default)
    extractorOptions = new TextExtractorOptions(TextExtractorOptions.TextFormattingMode.Pure);

    // add input file path to data sources
    extractorOptions.AddInput(new FileDataSource(inputPath));

    // perform extraction process
    ResultContainer resultContainer = extractor.Process(extractorOptions);

    // get the extracted text from the ResultContainer object
    string textExtracted = resultContainer.ResultCollection[0].ToString();
}

Remarks

The Documentize.TextExtractorOptions object is used to set Documentize.TextExtractorOptions.TextFormattingMode and another options for the text extraction operation. Also, it inherits functions to add data (files, streams) representing input PDF documents.

Constructors

TextExtractorOptions(TextFormattingMode)

Initializes a new instance of the Documentize.TextExtractorOptions object for the specified text formatting mode.

public TextExtractorOptions(TextExtractorOptions.TextFormattingMode formattingMode)

Parameters

TextExtractorOptions()

Initializes a new instance of the Documentize.TextExtractorOptions object with ‘Raw’ (default) text formatting mode.

public TextExtractorOptions()

Properties

FormattingMode

Gets formatting mode.

public TextExtractorOptions.TextFormattingMode FormattingMode { get; }

Property Value

TextExtractorOptions.TextFormattingMode

OperationName

Returns name of the operation.

public override string OperationName { get; }

Property Value

string

Namespace: Documentize Assembly: Documentize.dll

Class TiffConverter

Info

Represents Documentize.TiffConverter plugin. Used to convert PDF documents into TIFF format.

public sealed class TiffConverter

Inheritance

objectTiffConverter

Inherited Members

Examples

The example demonstrates how to convert PDF document into TIFF format.

// create TiffConverter
var plugin = new TiffConverter();
// create PdfToTiffOptions object to set instructions
var opt = new PdfToTiffOptions();
// add input file path
opt.AddInput(new FileDataSource(inputPath));
// set output file path
opt.AddOutput(new DirectoryDataSource(outputPath));
// perform the process
plugin.Process(opt);

Constructors

TiffConverter()

public TiffConverter()

Methods

Process(PdfToTiffOptions)

Starts the Documentize.TiffConverter processing with the specified parameters.

public ResultContainer Process(PdfToTiffOptions options)

Parameters

  • options PdfToTiffOptions: An options object containg instructions for the Documentize.TiffConverter.

Returns

ResultContainer : An ResultContainer object containg the result of the operation.

Namespace: Documentize Assembly: Documentize.dll

Class Timestamp

Info

Represents Documentize.Timestamp plugin.

public class Timestamp

Inheritance

objectTimestamp

Inherited Members

Examples

The example demonstrates how to add Timestamp to document.

// create Timestamp
var plugin = new Timestamp();
// create AddTimestampOptions object to set instructions
var opt = new AddTimestampOptions("path_to_pfx", "password_for_pfx", "timestamp_server_url");
// add input file path
opt.AddInput(new FileDataSource("path_to_pdf"));
// set output file path
opt.AddOutput(new FileDataSource("path_to_result_pdf"));
// perform the process
plugin.Process(opt);

Constructors

Timestamp()

public Timestamp()

Methods

Process(AddTimestampOptions)

Starts the Documentize.Timestamp processing with the specified parameters.

public ResultContainer Process(AddTimestampOptions options)

Parameters

  • options AddTimestampOptions: An options object containg instructions for the Documentize.AddTimestampOptions.

Returns

ResultContainer : An ResultContainer object containg the result of the operation.

Namespace: Documentize Assembly: Documentize.dll

Class XlsConverter

Info

Represents Documentize.XlsConverter plugin. Used to convert PDF documents into XLSX/XLS format.

public sealed class XlsConverter

Inheritance

objectXlsConverter

Inherited Members

Examples

The example demonstrates how to convert PDF to XLSX document.

// create XlsConverter
var plugin = new XlsConverter();
// create PdfToXlsOptions 
var opt = new PdfToXlsOptions();
// add input file path
opt.AddInput(new FileDataSource(inputPath));
// set output file path
opt.AddOutput(new FileDataSource(outputPath));
// perform the process
plugin.Process(opt);

Constructors

XlsConverter()

public XlsConverter()

Methods

Process(PdfToXlsOptions)

Starts the Documentize.XlsConverter processing with the specified parameters.

public ResultContainer Process(PdfToXlsOptions options)

Parameters

  • options PdfToXlsOptions: An options object containg instructions for the operation.

Returns

ResultContainer : An Documentize.ResultContainer object containing the result of the operation.

Namespace: Documentize Assembly: Documentize.dll

Enum ConvertErrorAction

Info

This class represents action for conversion errors.

public enum ConvertErrorAction

Fields

  • Delete = 0
  • None = 1

Namespace: Documentize Assembly: Documentize.dll

Enum ConvertSoftMaskAction

Info

This action represents actions for conversion of images with soft mask.

public enum ConvertSoftMaskAction

Fields

  • ConvertToStencilMask = 1: Soft mask will be converted into stencil mask.
  • Default = 0: Use default strategy.

Namespace: Documentize Assembly: Documentize.dll

Enum DataType

Info

Represents possible types of data for plugin processing.

public enum DataType

Fields

  • Directory = 2: Data type is a directory represented by the path to it.
  • File = 0: Data type is a file represented by the path to it.
  • Stream = 1: Data type is a stream.

Namespace: Documentize Assembly: Documentize.dll

Enum HtmlMediaType

Info

Specifies possible media types used during rendering.

public enum HtmlMediaType

Fields

  • Print = 0: Print.
  • Screen = 1: Screen.

Namespace: Documentize Assembly: Documentize.dll

Enum HtmlPageLayoutOption

Info

Specifies flags that together other options determine sizes and layouts of pages.

public enum HtmlPageLayoutOption

Fields

  • FitToWidestContentWidth = 3: Indicates that the width of the page is determinated from the content size itself, not from the specified page width.
  • None = 0: Default value which indicates that the HtmlPageLayoutOption will not affect the sizes and layouts of pages.
  • ScaleToPageWidth = 256: Indicates the content of the document will be scaled to fit the page.

Namespace: Documentize Assembly: Documentize.dll

Enum PdfAStandardVersion

Info

Specifies the PDF/A standard version for a PDF document.

public enum PdfAStandardVersion

Fields

  • Auto = 0: The PDF/A standard version is determined automatically.
  • PDF_A_1A = 1: Specifies the PDF/A-1a standard version.
  • PDF_A_1B = 2: Specifies the PDF/A-1b standard version.
  • PDF_A_2A = 3: Specifies the PDF/A-2a standard version.
  • PDF_A_2B = 4: Specifies the PDF/A-2b standard version.
  • PDF_A_2U = 5: Specifies the PDF/A-2u standard version.
  • PDF_A_3A = 6: Specifies the PDF/A-3a standard version.
  • PDF_A_3B = 7: Specifies the PDF/A-3b standard version.
  • PDF_A_3U = 8: Specifies the PDF/A-3u standard version.

Namespace: Documentize Assembly: Documentize.dll

Enum PdfToHtmlOptions.SaveDataType

Info

Defines output type of HTML file.

public enum PdfToHtmlOptions.SaveDataType

Fields

  • FileWithEmbeddedResources = 1: Save HTMl to file with embedded resources
  • FileWithExternalResources = 0: Save HTMl to file with external resources
  • StreamWithEmbeddedResources = 2: Save HTMl to file stream with embedded resources

Namespace: Documentize Assembly: Documentize.dll

Enum PdfToXlsOptions.ExcelFormat

Info

Allows to specify .xlsx, .xls/xml or csv file format. Default value is XLSX.

Allows to specify .xlsx, .xls/xml or csv file format. Default value is XLSX.

public enum PdfToXlsOptions.ExcelFormat

Fields

  • CSV = 2: A comma-separated values (CSV) File Format.
  • ODS = 4: Open Document Spreadsheet.
  • XLSM = 3: A macro-enabled Office Open XML (.xlsm) File Format.
  • XLSX = 1: Office Open XML (.xlsx) File Format.
  • XMLSpreadSheet2003 = 0: Excel 2003 XML (.xls) File Format.

Namespace: Documentize Assembly: Documentize.dll

Enum Role

Info

The role of the messages author.

public enum Role

Fields

  • Assistant = 2
  • System = 1
  • User = 0

Namespace: Documentize Assembly: Documentize.dll

Enum Rotation

Info

Enumeration of possible rotation values.

public enum Rotation

Fields

  • None = 0: Non-rotated.
  • On180 = 2: Rotated on 180 degrees.
  • On270 = 3: Rotated on 270 degrees clockwise.
  • On360 = 4: Rotated on 360 degrees clockwise.
  • On90 = 1: Rotated on 90 degrees clockwise.

Namespace: Documentize Assembly: Documentize.dll

Enum TextExtractorOptions.TextFormattingMode

Info

Defines different modes which can be used while converting a PDF document into text. See Documentize.TextExtractorOptions class.

public enum TextExtractorOptions.TextFormattingMode

Fields

  • Plain = 2: Represents PDF text content taking into account the relative positioning of text fragments but without adding extra spaces.
  • Pure = 0: Represents PDF text content with a few formatting routines. This includes taking into account relative positions and adding extra spaces to align text to the width of the page.
  • Raw = 1: Represents PDF content as is, i.e. without formatting.

Namespace: Documentize Assembly: Documentize.dll

Interface IDataSource

Info

General data interface that defines common members that concrete data should implement.

public interface IDataSource

Properties

DataType

Type of data source.

DataType DataType { get; }

Property Value

DataType

Namespace: Documentize Assembly: Documentize.dll

Interface IOperationResult

Info

General operation result interface that defines common methods that concrete plugin operation result should implement.

public interface IOperationResult

Properties

Data

Gets raw data.

object Data { get; }

Property Value

object

IsFile

Indicates whether the result is a path to an output file.

bool IsFile { get; }

Property Value

bool

IsStream

Indicates whether the result is an output stream.

bool IsStream { get; }

Property Value

bool

IsString

Indicates whether the result is a text string.

bool IsString { get; }

Property Value

bool

Methods

ToFile()

Tries to convert the result to the file.

string ToFile()

Returns

string : A string representing the path to the output file if the result is file; otherwise null.

ToStream()

Tries to convert the result to the stream object.

Stream ToStream()

Returns

Stream : A stream object representing the output data if the result is stream; otherwise null.

Namespace: Documentize Assembly: Documentize.dll

Interface IPluginOptions

Info

General plugin option interface that defines common methods that concrete plugin option should implement.

public interface IPluginOptions

Namespace: Documentize Assembly: Documentize.dll

 English