Documentize Namespace

Classes

Class NameDescription
AddTimestampOptionsRepresents Add Timestamp Options for Documentize.Timestamp plugin.
ChatCompletionRepresents a chat completion response returned by model, based on the provided input.
ChatGptConstsThis class represents a storage for constants.
ChatGptRequestOptionsRepresents options for Documentize.PdfManager plugin.
ChoiceA chat completion choice.
CompressOptionsRepresents Compress options for Documentize.PdfManager component.
DecryptOptionsRepresents Decrypt Options for Documentize.PdfSecurity plugin.
DirectoryDataRepresents directory data for load and save operations.
DocConverterRepresents Documentize.DocConverter plugin. Used to convert PDF documents into DOC/DOCX format.
EncryptOptionsRepresents Encrypt Options for Documentize.PdfSecurity plugin.
ExtractFormDataToDsvOptionsRepresents options for export values of fields for Documentize.PdfForm and Documentize.PdfExtractor components.
ExtractImagesOptionsRepresents images extraction options for the Documentize.PdfExtractor component.
ExtractPropertiesOptionsRepresents PDF Properties Extraction Options for the Documentize.PdfExtractor component.
ExtractTextOptionsRepresents Text Extraction options for the Documentize.PdfExtractor component.
FileDataRepresents file data for load and save operations.
FileResultRepresents operation result in the form of string path to file.
FlattenFieldsOptionsRepresents options for Flatten Fields in document by Documentize.PdfForm plugin.
FormExporterRepresents Documentize.FormExporter plugin. Used to Export Form values of PDF documents to DSV or CSV file.
FormFlattenerRepresents Documentize.FormFlattener plugin. Used to Flatten fields in PDF documents.
GetFieldNamesOptionsRepresents options for Get Field Names in document by Documentize.PdfForm plugin.
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.PdfConverter plugin.
ImageExtractorRepresents Documentize.ImageExtractor component. Used to extract images from PDF documents.
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.PdfManager 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.PdfManager plugin.
OptimizerRepresents Documentize.Optimizer plugin. Used to Optimize, Rotate, Resize, Compress PDF documents.
OptionsWithInputRepresents base Options for operations with 1 Input Data.
OptionsWithInputAndOutputPageInfo Represents the page information.
PageSizeClass representing size of page in PDF document.
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.PdfConverter plugin.
PdfAValidationResultRepresents the result of a PDF/A validation process.
PdfChatGptRepresents PdfChatGpt plugin.
PdfConverterRepresents Documentize.PdfConverter component. Used to Convert PDF documents to another formats like DOCX/DOC, XLSX/XLS/CSV/XLSM/ODS, HTML, JPEG, PNG, TIFF, PDF/A. Also allows you to perform PDF/A Validation and Convert HTML to PDF.
PdfExtractorRepresents Documentize.PdfExtractor component. Used to Extract Text, Images, Form Data, Properties (Meta Data) from PDF documents.
PdfFormRepresents Documentize.PdfForm component. Used to Flatten, Extract Forms Data. Also allows you to Get Fields Names.
PdfManagerRepresents Documentize.PdfManager component. Used to Merge, Split, Optimize, Rotate, Resize, Compress PDF documents and Add Table, Add TOC to PDF documents. Can Merge multiple PDF documents into a single PDF. Can Split PDF documents into separate pages. Can Optimize, Rotate, Resize, Compress PDF documents. Can Rotate, Resize Pages of PDF document. Can Add a Table to a PDF document. Can Add a Table of Contents to PDF document.
PdfPropertiesRepresents Properties and meta information of PDF document.
PdfSecurityRepresents Documentize.PdfSecurity component. Used to Encrypt, Decrypt, Sign, Sanitize PDF documents.
PdfToDocOptionsRepresents PDF to DOC converter options for Documentize.PdfConverter plugin.
PdfToHtmlOptionsRepresents PDF to HTML converter options for Documentize.PdfConverter plugin.
PdfToJpegOptionsRepresents PDF to JPEG converter options for the Documentize.PdfConverter plugin.
PdfToPdfAOptionsRepresents options for converting PDF documents to PDF/A format with the Documentize.PdfConverter plugin.
PdfToPngOptionsRepresents PDF to PNG converter options for the Documentize.PdfConverter plugin.
PdfToTiffOptionsRepresents PDF to TIFF converter options for the Documentize.PdfConverter plugin.
PdfToXlsOptionsRepresents PDF to XLS/XLSX converter options for Documentize.PdfConverter plugin.
PluginBaseOptionsRepresents base options for components.
PngConverterRepresents Documentize.PngConverter plugin. Used to convert PDF documents into PNG format.
RectangleClass represents rectangle.
RemoveFieldsOptionsRepresents options for Remove Fields in document by Documentize.PdfForm plugin.
ResizeOptionsRepresents Resize options for Documentize.PdfManager plugin.
ResultContainerRepresents container that contains the result collection of processing the plugin.
RotateOptionsRepresents Rotate options for Documentize.PdfManager plugin.
SanitizeOptionsSecurity Represents Documentize.Security plugin. Used to encrypt and decrypt PDF documents.
SignOptionsRepresents Sign Options for Documentize.PdfSecurity plugin.
SignatureRepresents Documentize.Signature plugin. Used to Sign PDF documents.
SplitOptionsRepresents Split options for Documentize.PdfManager plugin.
SplitterRepresents Documentize.Splitter plugin. Used to Split PDF documents into separate pages.
StreamDataRepresents stream data for load and save operations.
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.PdfManager plugin.
TableRowBuilderClass represents builder for table row.
TextExtractorRepresents Documentize.TextExtractor component. Used to extract text from PDF documents.
TiffConverterRepresents Documentize.TiffConverter plugin. Used to convert PDF documents into TIFF format.
TimestampRepresents Documentize.Timestamp plugin. Used to add Timestamp to a document.
TimestampOptionsTocGenerator Represents Documentize.TocGenerator plugin. Used to add a Table of Contents to PDF documents.
TocHeadingRepresents options for Headings or Titles of Table of Contents to document by Documentize.PdfManager plugin.
TocOptionsRepresents options for add Table of Contents to document by Documentize.PdfManager plugin.
UsageUsage statistics for the completion request.
XlsConverterRepresents Documentize.XlsConverter plugin. Used to convert PDF documents into XLSX/XLS/CSV/XLSM/ODS formats.

Interfaces

Interface NameDescription
IDataGeneral data interface that defines common members that concrete data should implement.
IHaveInputGeneral data interface that defines Input Data that Options should implement.
IOperationResultGeneral operation result interface that defines common methods that concrete component operation result should implement.
IPluginOptionsGeneral component option interface that defines common methods that concrete component 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 component processing.
DocConversionModeDefines conversion mode of the output document.
PdfToXlsOptions.ExcelFormatAllows to specify xls/xlsx/xml/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.
TextFormattingModeDefines different modes which can be used while converting a PDF document into text. See Documentize.ExtractTextOptions class.
TiffColorDepthUsed to specify the Color Depth for the Documentize.PdfToTiffOptions.
TiffCompressionUsed to specify the Compression type for the Documentize.PdfToTiffOptions.

Tiểu mục của Documentize Namespace

Class AddTimestampOptions

Thông tin

Biểu diễn các tùy chọn Thêm Dấu thời gian cho plugin Documentize.Timestamp.

[Obsolete("The class will be deleted soon. Please use SignOptions class.")]
public class AddTimestampOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsAddTimestampOptions

Implements

Inherited Members

Constructors

AddTimestampOptions(Stream, string, string, string)

Khởi tạo một thể hiện mới của đối tượng Documentize.AddTimestampOptions với các tùy chọn mặc định.

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

Parameters

  • pfx Stream: Đường dẫn tới tệp pfx.
  • password string: Mật khẩu của tệp pfx.
  • serverUrl string: URL của máy chủ dấu thời gian.
  • serverBasicAuthCredentials string: Thông tin xác thực cơ bản, tên người dùng và mật khẩu được kết hợp thành một chuỗi “username:password”. (Tùy chọn).

AddTimestampOptions(string, string, string, string)

Khởi tạo một thể hiện mới của đối tượng Documentize.AddTimestampOptions với các tùy chọn mặc định.

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

Parameters

  • pfx string: Đường dẫn tới tệp pfx.
  • password string: Mật khẩu của tệp pfx.
  • serverUrl string: URL của máy chủ dấu thời gian.
  • serverBasicAuthCredentials string: Thông tin xác thực cơ bản, tên người dùng và mật khẩu được kết hợp thành một chuỗi “username:password”. (Tùy chọn).

Không gian tên: Documentize Assembly: Documentize.dll

Class ChatCompletion

Thông tin

Đại diện cho một phản hồi hoàn thành trò chuyện được trả về bởi mô hình, dựa trên đầu vào đã cung cấp.

public class ChatCompletion

Kế thừa

objectChatCompletion

Các thành viên kế thừa

Các hàm tạo

ChatCompletion()

public ChatCompletion()

Các thuộc tính

Choices

Một danh sách các lựa chọn hoàn thành trò chuyện. Có thể có nhiều hơn một nếu n lớn hơn 1.

[JsonProperty("choices")]
public List<choice> Choices { get; set; }

Giá trị thuộc tính

List<Choice>

Created

Thời gian Unix (tính bằng giây) khi hoàn thành trò chuyện được tạo ra.

[JsonProperty("created")]
public long Created { get; set; }

Giá trị thuộc tính

long

Id

Một định danh duy nhất cho hoàn thành trò chuyện.

[JsonProperty("id")]
public string Id { get; set; }

Giá trị thuộc tính

string

Model

Mô hình được sử dụng cho hoàn thành trò chuyện.

[JsonProperty("model")]
public string Model { get; set; }

Giá trị thuộc tính

string

Object

Loại đối tượng, luôn là chat.completion.

[JsonProperty("object")]
public string Object { get; set; }

Giá trị thuộc tính

string

SystemFingerprint

Dấu vân tay này đại diện cho cấu hình backend mà mô hình chạy cùng.

[JsonProperty("system_fingerprint")]
public string SystemFingerprint { get; set; }

Giá trị thuộc tính

string

Usage

Thống kê sử dụng cho yêu cầu hoàn thành.

[JsonProperty("usage")]
public Usage Usage { get; set; }

Giá trị thuộc tính

Usage

Namespace: Documentize Assembly: Documentize.dll

Class ChatGptConsts

Thông tin

Lớp này đại diện cho một kho chứa cho các hằng số.

public static class ChatGptConsts

Kế thừa

objectChatGptConsts

Các thành viên kế thừa

Các trường

  • ApiUrl

Giá trị trường

string

ModelName

public static string ModelName

Giá trị trường

string

SystemRole

public static string SystemRole

Giá trị trường

string

SystemRoleDescription

public static string SystemRoleDescription

Giá trị trường

string

UserRole

public static string UserRole

Giá trị trường

string

Namespace: Documentize Assembly: Documentize.dll

Class ChatGptRequestOptions

Thông tin

Đại diện cho các tùy chọn cho plugin Documentize.PdfManager.

public class ChatGptRequestOptions : PluginBaseOptions, IPluginOptions

Kế thừa

object
PluginBaseOptions
ChatGptRequestOptions

Thực hiện

Thành viên kế thừa

Hàm khởi tạo

ChatGptRequestOptions()

Khởi tạo một thể hiện mới của đối tượng Documentize.ChatGptRequestOptions với các tùy chọn mặc định.

public ChatGptRequestOptions()

ChatGptRequestOptions(string, string, string, string)

Khởi tạo một thể hiện mới của đối tượng Documentize.ChatGptRequestOptions với các tùy chọn được cung cấp.

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

Tham số

Thuộc tính

ApiKey

Lấy hoặc đặt khóa để truy cập API ChatGPT.

public string ApiKey { get; set; }

Giá trị thuộc tính

string

ApiUrl

Lấy hoặc đặt URL của API ChatGPT.

public string ApiUrl { get; set; }

Giá trị thuộc tính

string

CancellationToken

Token hủy.

public CancellationToken CancellationToken { get; set; }

Giá trị thuộc tính

CancellationToken

MaxTokens

Số token tối đa trong phản hồi. Giá trị mặc định là null, nghĩa là vô hạn.

public int? MaxTokens { get; set; }

Giá trị thuộc tính

int?

Messages

Lấy hoặc đặt một tập hợp các đối tượng Documentize.Message.

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

Giá trị thuộc tính

List<Message>

Ghi chú

Khi thêm nhiều tin nhắn vào các tùy chọn, thứ tự trong tập hợp tin nhắn như sau:

  • Tin nhắn đầu tiên (nếu có) là từ options.Query, đứng trước tin nhắn có nội dung: “You are a helpful assistant.”, và vai trò là “system”.
  • Sau đó (nếu có) các tin nhắn từ tập hợp options.Messages được thêm vào.
  • Các tin nhắn từ nguồn tệp (nếu có) được thêm cuối cùng, mỗi đối tượng tin nhắn đại diện cho một tài liệu với vai trò “user”.
    Nếu không có bất kỳ tin nhắn nào được cung cấp, sẽ ném ra ArgumentException.

Model

Đặt hoặc lấy ID của mô hình sẽ sử dụng.

public string Model { get; set; }

Giá trị thuộc tính

string

NumberOfChoices

Số lượng lựa chọn hoàn thành trò chuyện sẽ được tạo cho mỗi tin nhắn đầu vào.

public int NumberOfChoices { get; set; }

Giá trị thuộc tính

int

Query

Lấy hoặc đặt yêu cầu dạng chuỗi gửi tới ChatGPT. Nếu không trống, đây là tin nhắn đầu tiên trong tập hợp, sẽ được gửi trong yêu cầu.

public string Query { get; set; }

Giá trị thuộc tính

string

Temperature

Nhiệt độ lấy mẫu sẽ sử dụng, nằm trong khoảng từ 0 đến 2. Giá trị cao hơn như 0.8 sẽ làm đầu ra ngẫu nhiên hơn, trong khi giá trị thấp hơn như 0.2 sẽ làm đầu ra tập trung và quyết định hơn. Giá trị mặc định là 1.

public double Temperature { get; set; }

Giá trị thuộc tính

double

Namespace: Documentize
Assembly: Documentize.dll

Class Choice

Thông tin

Một lựa chọn hoàn thành chat.

public class Choice

Kế thừa

objectChoice

Các thành viên kế thừa

Các Constructor

Choice()

public Choice()

Các thuộc tính

FinishReason

Lý do mà mô hình ngừng tạo ra các token. Điều này sẽ dừng lại nếu mô hình chạm đến một điểm dừng tự nhiên hoặc một chuỗi dừng được cung cấp, độ dài nếu số lượng tối đa token được chỉ định trong yêu cầu đã được đạt đến.

[JsonProperty("finish_reason")]
public string FinishReason { get; set; }

Giá trị thuộc tính

string

Index

Chỉ số của lựa chọn trong danh sách các lựa chọn.

[JsonProperty("index")]
public int Index { get; set; }

Giá trị thuộc tính

int

Message

Một thông điệp hoàn thành chat được tạo ra bởi mô hình.

[JsonProperty("message")]
public Message Message { get; set; }

Giá trị thuộc tính

Message

Namespace: Documentize Assembly: Documentize.dll

Class CompressOptions

Thông tin

Đại diện cho các tùy chọn nén cho thành phần Documentize.PdfManager.

public sealed class CompressOptions : PluginBaseOptions, IPluginOptions

Kế thừa

objectPluginBaseOptionsCompressOptions

Thực hiện

Thành viên kế thừa

Các hàm khởi tạo

CompressOptions()

Khởi tạo một thể hiện mới của đối tượng Documentize.CompressOptions với các tùy chọn mặc định.

public CompressOptions()

Namespace: Documentize Assembly: Documentize.dll

Class DecryptionOptions

Thông tin

Đại diện cho các tùy chọn giải mã cho plugin Documentize.Security.

public class DecryptionOptions : PluginBaseOptions, IPluginOptions

Kế thừa

objectPluginBaseOptionsDecryptionOptions

Triển khai

Các thành viên kế thừa

Các hàm khởi tạo

DecryptionOptions(string)

Khởi tạo một thể hiện mới của đối tượng Documentize.DecryptionOptions với các tùy chọn mặc định.

public DecryptionOptions(string ownerPassword)

Tham số

  • ownerPassword string: Mật khẩu của chủ sở hữu.

Thuộc tính

OwnerPassword

Mật khẩu của chủ sở hữu.

public string OwnerPassword { get; set; }

Giá trị thuộc tính

string

Namespace: Documentize Assembly: Documentize.dll

Class DecryptOptions

Thông tin

Biểu thị các tùy chọn giải mã cho plugin Documentize.PdfSecurity.

public class DecryptOptions : PluginBaseOptions, IPluginOptions

Kế thừa

objectPluginBaseOptionsDecryptOptions

Thực thi

Các thành viên được kế thừa

Các hàm khởi tạo

DecryptOptions(string)

Khởi tạo một thể hiện mới của đối tượng Documentize.DecryptOptions với các tùy chọn mặc định.

public DecryptOptions(string ownerPassword)

Tham số

  • ownerPassword string: Mật khẩu chủ sở hữu.

Thuộc tính

OwnerPassword

Mật khẩu chủ sở hữu.

public string OwnerPassword { get; set; }

Giá trị thuộc tính

string

Không gian tên: Documentize Assembly: Documentize.dll

Class DirectoryData

Thông tin

Mô tả dữ liệu thư mục cho các thao tác tải và lưu.

public sealed class DirectoryData : IData

Kế thừa

objectDirectoryData

Triển khai

Thành viên kế thừa

Hàm khởi tạo

DirectoryData(string)

Khởi tạo dữ liệu thư mục mới với đường dẫn được chỉ định.

public DirectoryData(string path)

Tham số

  • path string: Một chuỗi đại diện cho đường dẫn tới thư mục.

Thuộc tính

DataType

Loại nguồn dữ liệu.

public DataType DataType { get; }

Giá trị thuộc tính

DataType

Path

Lấy đường dẫn tới thư mục của dữ liệu hiện tại.

public string Path { get; }

Giá trị thuộc tính

string

Không gian tên: Documentize Tập hợp: Documentize.dll

Class DirectoryDataSource

Thông tin

Đại diện cho dữ liệu thư mục cho các thao tác tải và lưu của một plugin.

public sealed class DirectoryDataSource : IDataSource

Kế thừa

objectDirectoryDataSource

Thực hiện

Các Thành Viên Kế Thừa

Các Hàm Khởi Tạo

DirectoryDataSource(string)

Khởi tạo dữ liệu thư mục mới với đường dẫn được chỉ định.

public DirectoryDataSource(string path)

Tham Số

  • path string: Một chuỗi đại diện cho đường dẫn tới thư mục.

Thuộc Tính

DataType

Loại nguồn dữ liệu.

public DataType DataType { get; }

Giá Trị Thuộc Tính

DataType

Path

Lấy đường dẫn tới thư mục của dữ liệu hiện tại.

public string Path { get; }

Giá Trị Thuộc Tính

string

Namespace: Documentize Assembly: Documentize.dll

Class DocConverter

Thông tin

Đại diện cho plugin Documentize.DocConverter. Được sử dụng để chuyển đổi tài liệu PDF sang định dạng DOC/DOCX.

[Obsolete("The class will be deleted soon. Please use PdfConverter class.")]
public static class DocConverter

Kế thừa

objectDocConverter

Các thành viên kế thừa

Phương thức

Process(PdfToDocOptions)

Chuyển đổi tài liệu PDF sang định dạng DOC/DOCX.

public static ResultContainer Process(PdfToDocOptions options)

Tham số

  • options PdfToDocOptions: Một đối tượng tùy chọn chứa hướng dẫn cho thao tác.

Trả về

ResultContainer : Một đối tượng chứa kết quả của thao tác.

Ngoại lệ

ArgumentException

Nếu không đặt tùy chọn.

Namespace: Documentize Assembly: Documentize.dll

Class EncryptionOptions

Thông tin

Đại diện cho các tùy chọn mã hóa cho plugin Documentize.Security.

csharp
public class EncryptionOptions : PluginBaseOptions, IPluginOptions

Kế thừa

objectPluginBaseOptionsEncryptionOptions

Triển khai

Thành viên được kế thừa

Các hàm khởi tạo

EncryptionOptions(string, string)

Khởi tạo một thể hiện mới của đối tượng Documentize.EncryptionOptions với các tùy chọn mặc định.

csharp
public EncryptionOptions(string ownerPassword, string userPassword)

Tham số

  • ownerPassword string: Mật khẩu của chủ sở hữu.
  • userPassword string: Mật khẩu của người dùng.

Thuộc tính

OwnerPassword

Mật khẩu của chủ sở hữu.

csharp
public string OwnerPassword { get; set; }

Giá trị thuộc tính

string

UserPassword

Mật khẩu của người dùng.

csharp
public string UserPassword { get; set; }

Giá trị thuộc tính

string

Namespace: Documentize Assembly: Documentize.dll

Class EncryptOptions

Thông tin

Biểu diễn các tùy chọn Encrypt cho plugin Documentize.PdfSecurity.

public class EncryptOptions : PluginBaseOptions, IPluginOptions

Kế thừa

objectPluginBaseOptionsEncryptOptions

Thực hiện

Thành viên được kế thừa

Hàm tạo

EncryptOptions(string, string)

Khởi tạo một thể hiện mới của đối tượng Documentize.EncryptOptions với các tùy chọn mặc định.

public EncryptOptions(string ownerPassword, string userPassword)

Tham số

  • ownerPassword string: Mật khẩu chủ sở hữu.
  • userPassword string: Mật khẩu người dùng.

Thuộc tính

OwnerPassword

Mật khẩu chủ sở hữu.

public string OwnerPassword { get; set; }

Giá trị thuộc tính

string

UserPassword

Mật khẩu người dùng.

public string UserPassword { get; set; }

Giá trị thuộc tính

string

Namespace: Documentize Assembly: Documentize.dll

Class ExtractFormDataToDsvOptions

Thông tin

Đại diện cho các tùy chọn xuất giá trị của các trường cho các thành phần Documentize.PdfForm và Documentize.PdfExtractor.

public sealed class ExtractFormDataToDsvOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsExtractFormDataToDsvOptions

Implements

Inherited Members

Constructors

ExtractFormDataToDsvOptions(char, bool)

Khởi tạo một thể hiện mới của đối tượng Documentize.ExtractFormDataToDsvOptions.

public ExtractFormDataToDsvOptions(char delimiter = ',', bool addFieldNames = false)

Parameters

  • delimiter char: Xác định ký tự phân tách sẽ được sử dụng trong dữ liệu xuất giữa các giá trị. Giá trị mặc định là ‘,’.
  • addFieldNames bool: Thêm tên trường trước giá trị. Định dạng: Tên + ký tự phân tách + Giá trị + ký tự phân tách.

Properties

AddFieldName

Thêm tên trường trước giá trị. Định dạng: Tên + ký tự phân tách + Giá trị + ký tự phân tách.

public bool AddFieldName { get; set; }

Property Value

bool

Delimiter

Ký tự phân tách được sử dụng cho các giá trị đã xuất.

public char Delimiter { get; set; }

Property Value

char

Không gian tên: Documentize Tập hợp: Documentize.dll

Class ExtractImagesOptions

Thông tin

Đại diện cho các tùy chọn trích xuất hình ảnh cho thành phần Documentize.PdfExtractor.

public sealed class ExtractImagesOptions : PluginBaseOptions, IPluginOptions

Kế thừa

objectPluginBaseOptionsExtractImagesOptions

Thực thi

Thành viên kế thừa

Bộ khởi tạo

ExtractImagesOptions()

Khởi tạo một thể hiện mới của đối tượng Documentize.ExtractImagesOptions với các tùy chọn mặc định.

public ExtractImagesOptions()

Không gian tên: Documentize Bộ lắp ráp: Documentize.dll

Class ExtractPropertiesOptions

Thông tin

Đại diện cho các tùy chọn trích xuất thuộc tính PDF cho thành phần Documentize.PdfExtractor.

public sealed class ExtractPropertiesOptions : OptionsWithInput, IHaveInput

Kế thừa

objectOptionsWithInputExtractPropertiesOptions

Triển khai

Thành viên kế thừa

Hàm tạo

ExtractPropertiesOptions()

Khởi tạo một thể hiện mới của đối tượng Documentize.ExtractPropertiesOptions với các tùy chọn mặc định.

public ExtractPropertiesOptions()

ExtractPropertiesOptions(IData)

Khởi tạo một thể hiện mới của đối tượng Documentize.ExtractPropertiesOptions với dữ liệu đầu vào được chỉ định.

public ExtractPropertiesOptions(IData inputData)

Tham số

  • inputData IData: Dữ liệu đầu vào.

ExtractPropertiesOptions(string)

Khởi tạo một thể hiện mới của đối tượng Documentize.ExtractPropertiesOptions với tệp đầu vào được chỉ định.

public ExtractPropertiesOptions(string inputFile)

Tham số

  • inputFile string: Đường dẫn tệp đầu vào.

ExtractPropertiesOptions(Stream)

Khởi tạo một thể hiện mới của đối tượng Documentize.ExtractPropertiesOptions với luồng đầu vào được chỉ định.

public ExtractPropertiesOptions(Stream inputStream)

Tham số

  • inputStream Stream: Luồng đầu vào.

Thuộc tính

Input

Lấy hoặc đặt Dữ liệu Đầu vào.

public override IData Input { get; set; }

Giá trị Thuộc tính

IData

Namespace: Documentize Assembly: Documentize.dll

Class ExtractTextOptions

Thông tin

Đại diện cho các tùy chọn Trích xuất Văn bản cho thành phần Documentize.PdfExtractor.

public sealed class ExtractTextOptions : OptionsWithInput, IHaveInput

Kế thừa

objectOptionsWithInputExtractTextOptions

Triển khai

Thành viên kế thừa

Các hàm khởi tạo

ExtractTextOptions(TextFormattingMode)

Khởi tạo một thể hiện mới của đối tượng Documentize.ExtractTextOptions cho chế độ định dạng văn bản được chỉ định.

public ExtractTextOptions(TextFormattingMode formattingMode = TextFormattingMode.Raw)

Tham số

ExtractTextOptions(IData, TextFormattingMode)

Khởi tạo một thể hiện mới của đối tượng Documentize.ExtractTextOptions với dữ liệu được chỉ định.

public ExtractTextOptions(IData data, TextFormattingMode formattingMode = TextFormattingMode.Raw)

Tham số

  • data IData: Dữ liệu đầu vào.
  • formattingMode TextFormattingMode: Giá trị chế độ định dạng văn bản.

ExtractTextOptions(string, TextFormattingMode)

Khởi tạo một thể hiện mới của đối tượng Documentize.ExtractTextOptions với tệp được chỉ định.

public ExtractTextOptions(string file, TextFormattingMode formattingMode = TextFormattingMode.Raw)

Tham số

  • file string: Đường dẫn tệp đầu vào.
  • formattingMode TextFormattingMode: Giá trị chế độ định dạng văn bản.

ExtractTextOptions(Stream, TextFormattingMode)

Khởi tạo một thể hiện mới của đối tượng Documentize.ExtractTextOptions với luồng được chỉ định.

public ExtractTextOptions(Stream stream, TextFormattingMode formattingMode = TextFormattingMode.Raw)

Tham số

Thuộc tính

FormattingMode

Lấy hoặc đặt chế độ định dạng.

public TextFormattingMode FormattingMode { get; set; }

Giá trị thuộc tính

TextFormattingMode

Input

Lấy hoặc đặt Dữ liệu Đầu vào.

public override IData Input { get; set; }

Giá trị thuộc tính

IData

Namespace: Documentize
Assembly: Documentize.dll

Class FileData

Thông tin

Biểu diễn dữ liệu tệp cho các thao tác tải và lưu.

public sealed class FileData : IData

Kế thừa

objectFileData

Thực hiện

Thành viên kế thừa

Các hàm tạo

FileData(string)

Khởi tạo nguồn dữ liệu tệp mới với đường dẫn được chỉ định.

public FileData(string path)

Tham số

  • path string: Một chuỗi đại diện cho đường dẫn tới tệp nguồn.

Thuộc tính

DataType

Loại nguồn dữ liệu.

public DataType DataType { get; }

Giá trị thuộc tính

DataType

Path

Lấy đường dẫn tới tệp của dữ liệu hiện tại.

public string Path { get; }

Giá trị thuộc tính

string

Namespace: Documentize Assembly: Documentize.dll

Class FileDataSource

Thông tin

Đại diện cho dữ liệu tệp cho các thao tác tải và lưu của một plugin.

public sealed class FileDataSource : IDataSource

Kế thừa

objectFileDataSource

Thực thi

Thành viên kế thừa

Các hàm khởi tạo

FileDataSource(string)

Khởi tạo nguồn dữ liệu tệp mới với đường dẫn được chỉ định.

public FileDataSource(string path)

Tham số

  • path string: Một chuỗi đại diện cho đường dẫn đến tệp nguồn.

Thuộc tính

DataType

Loại nguồn dữ liệu.

public DataType DataType { get; }

Giá trị Thuộc tính

DataType

Path

Lấy đường dẫn đến tệp của dữ liệu hiện tại.

public string Path { get; }

Giá trị Thuộc tính

string

Namespace: Documentize Assembly: Documentize.dll

Class FileResult

Thông tin

Đại diện cho kết quả hoạt động dưới dạng đường dẫn chuỗi đến tệp.

public sealed class FileResult : IOperationResult

Kế thừa

objectFileResult

Thực hiện

Các thành viên kế thừa

Các thuộc tính

Data

Lấy dữ liệu thô.

public object Data { get; }

Giá trị thuộc tính

object

IsFile

Cho biết liệu kết quả có phải là một đường dẫn đến tệp đầu ra hay không.

public bool IsFile { get; }

Giá trị thuộc tính

bool

IsStream

Cho biết liệu kết quả có phải là một luồng đầu ra hay không.

public bool IsStream { get; }

Giá trị thuộc tính

bool

IsString

Cho biết liệu kết quả có phải là một chuỗi văn bản hay không.

public bool IsString { get; }

Giá trị thuộc tính

bool

Các phương thức

ToFile()

Cố gắng chuyển đổi kết quả thành một tệp.

public string ToFile()

Trả về

string : Một chuỗi đại diện cho đường dẫn đến tệp đầu ra nếu kết quả là tệp; ngược lại null.

ToStream()

Cố gắng chuyển đổi kết quả thành một đối tượng luồng.

public Stream ToStream()

Trả về

Stream : Một đối tượng luồng đại diện cho dữ liệu đầu ra nếu kết quả là luồng; ngược lại null.

Namespace: Documentize Assembly: Documentize.dll

Class FlattenFieldsOptions

Thông tin

Biểu diễn các tùy chọn cho Flatten Fields trong tài liệu bằng plugin Documentize.PdfForm.

public class FlattenFieldsOptions : PluginBaseOptions, IPluginOptions

Kế thừa

objectPluginBaseOptionsFlattenFieldsOptions

Triển khai

Thành viên kế thừa

Hàm khởi tạo

FlattenFieldsOptions()

Khởi tạo một thể hiện mới của đối tượng Documentize.FlattenFieldsOptions với các tùy chọn mặc định.

public FlattenFieldsOptions()

Thuộc tính

SkipFields

Danh sách các trường sẽ không được Flatten.

public List<string> SkipFields { get; set; }

Giá trị Thuộc tính

List<string>

Namespace: Documentize Assembly: Documentize.dll

Class FormExporter

Thông tin

Đại diện cho Documentize.FormExporter plugin. Được sử dụng để xuất giá trị Form của tài liệu PDF sang file DSV hoặc CSV.

[Obsolete("The class will be deleted soon. Please use PdfExtractor or PdfForm class.")]
public static class FormExporter

Kế thừa

objectFormExporter

Thành viên kế thừa

Phương thức

Process(ExtractFormDataToDsvOptions)

Bắt đầu xử lý Documentize.FormExporter với các tham số được chỉ định.

public static ResultContainer Process(ExtractFormDataToDsvOptions options)

Tham số

Trả về

ResultContainer : Đối tượng chứa kết quả của thao tác.

Ngoại lệ

ArgumentException

Nếu chưa thiết lập options.

Không gian tên: Documentize Tập tin thực thi: Documentize.dll

Class FormExportToDsvOptions

Thông tin

Đại diện cho các tùy chọn để xuất giá trị của các trường cho plugin Documentize.FormExporter.

public sealed class FormExportToDsvOptions : PluginBaseOptions, IPluginOptions

Kế thừa

objectPluginBaseOptionsFormExportToDsvOptions

Triển khai

Các thành viên kế thừa

Các hàm khởi tạo

FormExportToDsvOptions(char, bool)

Khởi tạo một thể hiện mới của đối tượng Documentize.FormExportToDsvOptions.

public FormExportToDsvOptions(char delimeter = ',', bool addFieldNames = false)

Tham số

  • delimeter char: Chỉ định dấu phân cách được sử dụng trong dữ liệu xuất giữa các giá trị. Giá trị mặc định là ‘,’.
  • addFieldNames bool: Thêm tên trường trước giá trị. Định dạng: Tên + dấu phân cách + Giá trị + dấu phân cách.

Các thuộc tính

AddFieldName

Thêm tên trường trước giá trị. Định dạng: Tên + dấu phân cách + Giá trị + dấu phân cách.

public bool AddFieldName { get; set; }

Giá trị thuộc tính

bool

Delimeter

Dấu phân cách được sử dụng cho các giá trị xuất.

public char Delimeter { get; set; }

Giá trị thuộc tính

char

Namespace: Documentize Assembly: Documentize.dll

Class FormFlattener

Thông tin

Đại diện cho plugin Documentize.FormFlattener. Được sử dụng để làm phẳng các trường trong tài liệu PDF.

[Obsolete("The class will be deleted soon. Please use PdfForm class.")]
public static class FormFlattener

Inheritance

objectFormFlattener

Inherited Members

Methods

GetFieldNames(string)

Lấy danh sách tên trường trong tài liệu PDF.

public static List<string> GetFieldNames(string path)

Parameters

  • path string: Đường dẫn tới tài liệu PDF.

Returns

List<string>

Danh sách các tên trong tài liệu PDF.

GetFieldNames(Stream) : Lấy danh sách tên trường trong tài liệu PDF.

public static List<string> GetFieldNames(Stream stream)

Parameters

  • stream Stream: Luồng chứa tài liệu PDF.

Returns

List<string>

Danh sách các tên trong tài liệu PDF.

Process(FlattenFieldsOptions) : Làm phẳng các trường biểu mẫu trong tài liệu PDF.

public static ResultContainer Process(FlattenFieldsOptions options)

Parameters

Returns

ResultContainer : Đối tượng chứa kết quả của thao tác.

Exceptions

ArgumentException

Nếu tùy chọn không được đặt.

Không gian tên: Documentize Tập hợp: Documentize.dll

Class FormFlattenerOptions

Thông tin

Đại diện cho các tùy chọn để làm phẳng các trường trong tài liệu bằng plugin Documentize.FormFlattener.

public class FormFlattenerOptions : PluginBaseOptions, IPluginOptions

Kế thừa

objectPluginBaseOptionsFormFlattenerOptions

Triển khai

Các thành viên kế thừa

Các bộ tạo

FormFlattenerOptions()

Khởi tạo một phiên bản mới của đối tượng Documentize.FormFlattenerOptions với các tùy chọn mặc định.

public FormFlattenerOptions()

Thuộc tính

SkipFields

Danh sách các trường sẽ không được làm phẳng.

public List<string> SkipFields { get; set; }

Giá trị thuộc tính

List<string>

Không gian tên: Documentize Tập hợp: Documentize.dll

Class GetFieldNamesOptions

Thông tin

Đại diện cho các tùy chọn của Get Field Names trong tài liệu bởi plugin Documentize.PdfForm.

public class GetFieldNamesOptions

Kế thừa

objectGetFieldNamesOptions

Thành viên kế thừa

Các hàm tạo

GetFieldNamesOptions(string)

Hàm tạo cho các tùy chọn với Đường dẫn tới tệp đầu vào.

public GetFieldNamesOptions(string path)

Tham số

  • path string: Đường dẫn tới tệp đầu vào.

GetFieldNamesOptions(Stream)

Hàm tạo cho các tùy chọn với Luồng đầu vào.

public GetFieldNamesOptions(Stream stream)

Tham số

  • stream Stream: Luồng đầu vào.

Không gian tên: Documentize Tập tin Assembly: Documentize.dll

Class HtmlConverter

Thông tin

Đại diện cho plugin Documentize.HtmlConverter. Được sử dụng để chuyển đổi tài liệu PDF thành định dạng HTML và tài liệu HTML thành định dạng PDF.

[Obsolete("The class will be deleted soon. Please use PdfConverter class.")]
public static class HtmlConverter

Kế thừa

objectHtmlConverter

Thành viên kế thừa

Phương thức

Process(PdfToHtmlOptions)

Chuyển đổi tài liệu PDF thành định dạng HTML.

public static ResultContainer Process(PdfToHtmlOptions options)

Tham số

  • options PdfToHtmlOptions: Một đối tượng tùy chọn chứa hướng dẫn cho hoạt động.

Trả về

ResultContainer : Một đối tượng chứa kết quả của hoạt động.

Ngoại lệ

ArgumentException

Nếu tùy chọn không được thiết lập.

Process(HtmlToPdfOptions)

Chuyển đổi tài liệu HTML thành định dạng PDF.

public static ResultContainer Process(HtmlToPdfOptions options)

Tham số

  • options HtmlToPdfOptions: Một đối tượng tùy chọn chứa hướng dẫn cho hoạt động.

Trả về

ResultContainer : Một đối tượng chứa kết quả của hoạt động.

Ngoại lệ

ArgumentException

Nếu tùy chọn không được thiết lập.

Namespace: Documentize Assembly: Documentize.dll

Class HtmlToPdfOptions

Thông tin

Đại diện cho các tùy chọn chuyển đổi HTML sang PDF cho plugin Documentize.PdfConverter.

public sealed class HtmlToPdfOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsHtmlToPdfOptions

Implements

Inherited Members

Constructors

HtmlToPdfOptions()

Khởi tạo một thể hiện mới của đối tượng Documentize.HtmlToPdfOptions.

public HtmlToPdfOptions()

Properties

BasePath

Đường dẫn/URL cơ sở cho tệp html.

public string BasePath { get; set; }

Property Value

string

HtmlMediaType

Lấy hoặc đặt các loại media có thể sử dụng trong quá trình render.

public HtmlMediaType HtmlMediaType { get; set; }

Property Value

HtmlMediaType

IsRenderToSinglePage

Lấy hoặc đặt việc render toàn bộ tài liệu thành một trang duy nhất.

public bool IsRenderToSinglePage { get; set; }

Property Value

bool

PageInfo

Lấy hoặc đặt thông tin trang của tài liệu.

public PageInfo PageInfo { get; set; }

Property Value

PageInfo

PageLayoutOption

Lấy hoặc đặt tùy chọn bố cục.

public HtmlPageLayoutOption PageLayoutOption { get; set; }

Property Value

HtmlPageLayoutOption

Namespace: Documentize Assembly: Documentize.dll

Class ImageExtractor

Thông tin

Đại diện cho thành phần Documentize.ImageExtractor. Được sử dụng để trích xuất hình ảnh từ tài liệu PDF.

[Obsolete("The class will be deleted soon. Please use PdfExtractor class.")]
public static class ImageExtractor

Kế thừa

objectImageExtractor

Các thành viên được kế thừa

Phương thức

Process(ExtractImagesOptions)

Trích xuất hình ảnh từ tài liệu PDF.

public static ResultContainer Process(ExtractImagesOptions options)

Tham số

  • options ExtractImagesOptions: Một đối tượng tùy chọn chứa các hướng dẫn cho thao tác.

Trả về

ResultContainer : Một đối tượng chứa kết quả của thao tác.

Ngoại lệ

ArgumentException

Nếu options chưa được thiết lập.

Không gian tên: Documentize Lắp ráp: Documentize.dll

Class ImageExtractorOptions

Thông tin

Đại diện cho các tùy chọn trích xuất hình ảnh cho plugin Documentize.ImageExtractor.

public sealed class ImageExtractorOptions : PluginBaseOptions, IPluginOptions

Kế thừa

objectPluginBaseOptionsImageExtractorOptions

Triển khai

Các thành viên kế thừa

Các hàm khởi tạo

ImageExtractorOptions()

Khởi tạo một phiên bản mới của đối tượng Documentize.ImageExtractorOptions với các tùy chọn mặc định.

public ImageExtractorOptions()

Namespace: Documentize Assembly: Documentize.dll

Class Info

Thông tin

Lớp cung cấp thông tin về bản dựng hiện tại của sản phẩm.

public static class Info

Kế thừa

objectInfo

Thành viên kế thừa

Trường

  • AssemblyVersion Phiên bản Assembly.

  • public const string AssemblyVersion = "26.5.0"

Giá trị trường

string

Product

Tên sản phẩm.

public const string Product = "Documentize"

Giá trị trường

string

Namespace: Documentize Assembly: Documentize.dll

Class JpegConverter

Thông tin

Đại diện cho plugin Documentize.JpegConverter. Được sử dụng để chuyển đổi các tài liệu PDF thành định dạng JPEG.

[Obsolete("The class will be deleted soon. Please use PdfConverter class.")]
public static class JpegConverter

Kế thừa

objectJpegConverter

Các thành viên kế thừa

Phương thức

Process(PdfToJpegOptions)

Chuyển đổi tài liệu PDF thành định dạng JPEG.

public static ResultContainer Process(PdfToJpegOptions options)

Tham số

  • options PdfToJpegOptions: Một đối tượng tùy chọn chứa các hướng dẫn cho Documentize.JpegConverter.

Trả về

ResultContainer : Một đối tượng chứa kết quả của thao tác.

Ngoại lệ

ArgumentException

Nếu không thiết lập tùy chọn.

Namespace: Documentize Assembly: Documentize.dll

Class License

Thông tin

Cung cấp phương thức để thiết lập Giấy phép.

public static class License

Kế thừa

objectLicense

Các thành viên kế thừa

Ví dụ

Cho thấy cách kích hoạt giấy phép.

// Thiết lập Giấy phép
License.Set("PathToLicense.lic");

Phương thức

Set(string)

Cấp phép cho thành phần.

public static void Set(string licenseName)

Tham số

  • licenseName string: Có thể là tên tệp đầy đủ hoặc ngắn. Sử dụng chuỗi trống để chuyển sang chế độ đánh giá.

Namespace: Documentize Assembly: Documentize.dll

Class MergeOptions

Thông tin

Đại diện cho các tùy chọn Merge cho plugin Documentize.PdfManager.

public sealed class MergeOptions : PluginBaseOptions, IPluginOptions

Kế thừa

objectPluginBaseOptionsMergeOptions

Thực hiện

Thành viên kế thừa

Hàm khởi tạo

MergeOptions()

Khởi tạo một thể hiện mới của đối tượng Documentize.MergeOptions với các tùy chọn mặc định.

public MergeOptions()

Không gian tên: Documentize
Tập tin thực thi: Documentize.dll

Class Merger

Thông tin

Đại diện cho plugin Documentize.Merger. Sử dụng để kết hợp nhiều tài liệu PDF thành một PDF duy nhất.

[Obsolete("The class will be deleted soon. Please use PdfManager class.")]
public static class Merger

Kế thừa

objectMerger

Các thành viên kế thừa

Phương thức

Process(MergeOptions)

Kết hợp các tài liệu PDF.

public static ResultContainer Process(MergeOptions options)

Tham số

  • options MergeOptions: Một đối tượng tùy chọn chứa các hướng dẫn cho thao tác.

Trả về

ResultContainer : Một đối tượng chứa kết quả của thao tác.

Ngoại lệ

ArgumentException

Nếu tùy chọn không được thiết lập.

Namespace: Documentize Assembly: Documentize.dll

Class Message

Thông tin

Một tin nhắn hoàn thành cuộc trò chuyện được tạo ra bởi mô hình.

public class Message

Kế thừa

objectMessage

Thành viên Được Kế thừa

Các hàm khởi tạo

Message()

public Message()

Thuộc tính

Nội dung

Nội dung của tin nhắn.

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

Giá trị thuộc tính

string

Vai trò

Thiết lập hoặc lấy vai trò của tác giả của tin nhắn này.

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

Giá trị thuộc tính

Role

Namespace: Documentize Assembly: Documentize.dll

Class ObjectResult

Thông tin

Đại diện cho kết quả hoạt động dưới dạng chuỗi.

public sealed class ObjectResult : IOperationResult

Kế thừa

objectObjectResult

Triển khai

Thành viên được kế thừa

Thuộc tính

Data

Lấy dữ liệu thô.

public object Data { get; }

Giá trị thuộc tính

object

IsFile

Cho biết liệu kết quả có phải là một đường dẫn đến tệp đầu ra hay không.

public bool IsFile { get; }

Giá trị thuộc tính

bool

IsObject

Cho biết liệu kết quả có phải là một đối tượng hay không.

public bool IsObject { get; }

Giá trị thuộc tính

bool

IsStream

Cho biết liệu kết quả có phải là một đường dẫn đến tệp đầu ra hay không.

public bool IsStream { get; }

Giá trị thuộc tính

bool

IsString

Cho biết liệu kết quả có phải là một chuỗi hay không.

public bool IsString { get; }

Giá trị thuộc tính

bool

Text

Trả về đại diện chuỗi của kết quả.

public string Text { get; }

Giá trị thuộc tính

string

Phương thức

ToFile()

Cố gắng chuyển đổi kết quả thành một tệp.

public string ToFile()

Trả về

string : Một chuỗi đại diện cho đường dẫn đến tệp đầu ra nếu kết quả là tệp; nếu không, trả về null.

ToStream()

Cố gắng chuyển đổi kết quả thành một đối tượng luồng.

public Stream ToStream()

Trả về

Stream : Một đối tượng luồng đại diện cho dữ liệu đầu ra nếu kết quả là luồng; nếu không, trả về null.

ToString()

Cố gắng chuyển đổi kết quả thành một chuỗi.

public override string ToString()

Trả về

string : Một chuỗi đại diện cho nội dung văn bản nếu kết quả là chuỗi; nếu không, trả về base.ToString().

Namespace: Documentize Assembly: Documentize.dll

Class OptimizeOptions

Thông tin

Đại diện cho các tùy chọn Optimize cho plugin Documentize.PdfManager.

public sealed class OptimizeOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsOptimizeOptions

Implements

Inherited Members

Constructors

OptimizeOptions()

Khởi tạo một thể hiện mới của đối tượng Documentize.OptimizeOptions với các tùy chọn mặc định. Linearize tài liệu để

  • mở trang đầu tiên càng nhanh càng tốt;
  • hiển thị trang tiếp theo hoặc theo liên kết tới trang tiếp theo càng nhanh càng tốt;
  • hiển thị trang một cách dần dần khi dữ liệu của một trang được truyền qua kênh chậm (hiển thị dữ liệu hữu ích nhất trước);
  • cho phép tương tác của người dùng, chẳng hạn như theo một liên kết, được thực hiện ngay cả khi trang chưa được nhận và hiển thị hoàn toàn.
public OptimizeOptions()

Không gian tên: Documentize Tập hợp: Documentize.dll

Class Optimizer

Thông tin

Đại diện cho plugin Documentize.Optimizer. Dùng để Tối ưu, Xoay, Thay đổi kích thước, Nén tài liệu PDF.

[Obsolete("The class will be deleted soon. Please use PdfManager class.")]
public static class Optimizer

Kế thừa

objectOptimizer

Các thành viên kế thừa

Phương thức

Process(OptimizeOptions)

Bắt đầu quy trình Documentize.Optimizer với các tham số đã chỉ định.

public static ResultContainer Process(OptimizeOptions options)

Tham số

  • options OptimizeOptions: Một đối tượng tùy chọn chứa các hướng dẫn cho hoạt động.

Trả về

ResultContainer : Một đối tượng chứa kết quả của hoạt động.

Process(RotateOptions)

Bắt đầu quy trình Documentize.Optimizer với các tham số đã chỉ định.

public static ResultContainer Process(RotateOptions options)

Tham số

  • options RotateOptions: Một đối tượng tùy chọn chứa các hướng dẫn cho hoạt động.

Trả về

ResultContainer : Một đối tượng chứa kết quả của hoạt động.

Process(ResizeOptions)

Bắt đầu quy trình Documentize.Optimizer với các tham số đã chỉ định.

public static ResultContainer Process(ResizeOptions options)

Tham số

  • options ResizeOptions: Một đối tượng tùy chọn chứa các hướng dẫn cho hoạt động.

Trả về

ResultContainer : Một đối tượng chứa kết quả của hoạt động.

Process(CompressOptions)

Bắt đầu quy trình Documentize.Optimizer với các tham số đã chỉ định.

public static ResultContainer Process(CompressOptions options)

Tham số

  • options CompressOptions: Một đối tượng tùy chọn chứa các hướng dẫn cho hoạt động.

Trả về

ResultContainer : Một đối tượng chứa kết quả của hoạt động.

Namespace: Documentize Assembly: Documentize.dll

Class OptionsWithInput

Thông tin

Biểu diễn các tùy chọn cơ bản cho các thao tác với 1 Dữ liệu Đầu vào.

public abstract class OptionsWithInput : IHaveInput

Kế thừa

objectOptionsWithInput

Lớp kế thừa

Triển khai

Thành viên kế thừa

Trường

  • input

Giá trị Trường

IData

Thuộc tính

Input

Lấy hoặc đặt Dữ liệu Đầu vào.

public virtual IData Input { get; set; }

Giá trị Thuộc tính

IData

Không gian tên: Documentize Tập tin thực thi: Documentize.dll

Class OptionsWithInputAndOutput

public abstract class OptionsWithInputAndOutput : OptionsWithInput, IHaveInput

Kế thừa

object
OptionsWithInput
OptionsWithInputAndOutput

Lớp dẫn xuất

Thực hiện

Các thành viên kế thừa

Trường

  • output

Giá trị Trường

IData

Thuộc tính

Output

Lấy hoặc thiết lập Dữ liệu Đầu ra.

public virtual IData Output { get; set; }

Giá trị Thuộc tính

IData

Namespace: Documentize
Assembly: Documentize.dll

Class PageInfo

Thông tin

Đại diện cho thông tin trang.

public class PageInfo : PageSize

Kế thừa

objectPageSizePageInfo

Các thành viên kế thừa

Các hàm khởi tạo

PageInfo()

Hàm khởi tạo của Documentize.PageInfo.

public PageInfo()

PageInfo(double, double)

Hàm khởi tạo của Documentize.PageInfo.

public PageInfo(double width, double height)

Tham số

  • width double: Chiều rộng của trang.
  • height double: Chiều cao của trang.

Các thuộc tính

MarginBottom

Lấy hoặc thiết lập một giá trị cho biết lề dưới.

public double MarginBottom { get; set; }

Giá trị thuộc tính

double

MarginLeft

Lấy hoặc thiết lập một giá trị cho biết lề trái.

public double MarginLeft { get; set; }

Giá trị thuộc tính

double

MarginRight

Lấy hoặc thiết lập một giá trị cho biết lề phải.

public double MarginRight { get; set; }

Giá trị thuộc tính

double

MarginTop

Lấy hoặc thiết lập một giá trị cho biết lề trên.

public double MarginTop { get; set; }

Giá trị thuộc tính

double

Namespace: Documentize Assembly: Documentize.dll

Class PageSize

Thông tin

Lớp đại diện cho kích thước trang trong tài liệu PDF.

public class PageSize

Kế thừa

objectPageSize

Được dẫn xuất

Thành viên kế thừa

Các hàm khởi tạo

PageSize()

Hàm khởi tạo của Documentize.PageSize. Kích thước A4 theo mặc định.

public PageSize()

PageSize(double, double)

Hàm khởi tạo của Documentize.PageSize.

public PageSize(double width, double height)

Tham số

  • width double: Chiều rộng của trang.
  • height double: Chiều cao của trang.

Thuộc tính

A0

Kích thước A0 (1189x840 mm).

public static PageSize A0 { get; }

Giá trị thuộc tính

PageSize

A1

Kích thước A1 (840x594 mm).

public static PageSize A1 { get; }

Giá trị thuộc tính

PageSize

A2

Kích thước A2 (594x420 mm).

public static PageSize A2 { get; }

Giá trị thuộc tính

PageSize

A3

Kích thước A3 (420x297 mm).

public static PageSize A3 { get; }

Giá trị thuộc tính

PageSize

A4

Kích thước A4 (297x210 mm).

public static PageSize A4 { get; }

Giá trị thuộc tính

PageSize

A5

Kích thước A5 (210x148 mm).

public static PageSize A5 { get; }

Giá trị thuộc tính

PageSize

A6

Kích thước A6 (148x105 mm).

public static PageSize A6 { get; }

Giá trị thuộc tính

PageSize

B5

Kích thước B5 (250x176 mm).

public static PageSize B5 { get; }

Giá trị thuộc tính

PageSize

Chiều cao

Lấy hoặc thiết lập chiều cao trang.

public double Height { get; set; }

Giá trị thuộc tính

double

IsLandscape

Lấy hướng trang. Trả về true nếu đây là hướng ngang và false nếu đây là hướng dọc.

public bool IsLandscape { get; }

Giá trị thuộc tính

bool

P11x17

Định dạng 11x17 inch.

public static PageSize P11x17 { get; }

Giá trị thuộc tính

PageSize

PageLedger

Kích thước Ledger (432x279 mm).

public static PageSize PageLedger { get; }

Giá trị thuộc tính

PageSize

Kích thước Legal (356x216 mm).

public static PageSize PageLegal { get; }

Giá trị thuộc tính

PageSize

PageLetter

Kích thước Letter (279x216 mm).

public static PageSize PageLetter { get; }

Giá trị thuộc tính

PageSize

Chiều rộng

Lấy hoặc thiết lập chiều rộng trang.

public double Width { get; set; }

Giá trị thuộc tính

double

Namespace: Documentize Assembly: Documentize.dll

Class PdfAConverter

Thông tin

Đại diện cho một plugin để xử lý chuyển đổi tài liệu PDF ở định dạng PDF/A và để xác thực sự tuân thủ PDF/A.

[Obsolete("Lớp này sẽ bị xóa sớm. Vui lòng sử dụng lớp PdfConverter.")]
public static class PdfAConverter

Kế thừa

objectPdfAConverter

Thành viên được kế thừa

Phương thức

Process(PdfToPdfAOptions)

Chuyển đổi tài liệu PDF sang định dạng PDF/A.

public static ResultContainer Process(PdfToPdfAOptions options)

Tham số

  • options PdfToPdfAOptions: Một đối tượng tùy chọn chứa hướng dẫn cho hoạt động.

Trả về

ResultContainer : Một đối tượng chứa kết quả của hoạt động.

Ngoại lệ

ArgumentException

Nếu tùy chọn không được đặt.

Process(PdfAValidateOptions)

Kiểm tra tài liệu PDF xem có tuân thủ định dạng PDF/A đã chỉ định hay không.

public static ResultContainer Process(PdfAValidateOptions options)

Tham số

  • options PdfAValidateOptions: Một đối tượng tùy chọn chứa hướng dẫn cho hoạt động.

Trả về

ResultContainer : Một đối tượng chứa kết quả của hoạt động.

Ngoại lệ

ArgumentException

Nếu tùy chọn không được đặt.

Namespace: Documentize Assembly: Documentize.dll

Class PdfAConvertOptions

Thông tin

Đại diện cho các tùy chọn để chuyển đổi tài liệu PDF sang định dạng PDF/A với plugin Documentize.PdfAConverter.

public sealed class PdfAConvertOptions : PdfAOptionsBase, IPluginOptions

Kế thừa

objectPdfAOptionsBasePdfAConvertOptions

Thực hiện

Các thành viên kế thừa

Các hàm khởi tạo

PdfAConvertOptions()

public PdfAConvertOptions()

Các thuộc tính

Outputs

Lấy bộ sưu tập của các mục tiêu đã thêm (nguồn dữ liệu tệp hoặc luồng) để lưu kết quả thao tác.

public List<idatasource> Outputs { get; }

Giá trị thuộc tính

List<IDataSource>

Các phương thức

AddOutput(IDataSource)

Thêm mục tiêu lưu kết quả mới.

public void AddOutput(IDataSource dataSource)

Các tham số

  • dataSource IDataSource: Mục tiêu (nguồn dữ liệu tệp hoặc luồng) để lưu kết quả thao tác. :

Namespace: Documentize Assembly: Documentize.dll

Class PdfAOptionsBase

Thông tin

Đại diện cho lớp cơ sở của các tùy chọn plugin Documentize.PdfAConverter. Lớp này cung cấp các thuộc tính và phương thức để cấu hình quá trình chuyển đổi và xác thực PDF/A.

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.

public List<idata> Inputs { get; }

Property Value

List<IData>

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 IData LogOutputSource { get; set; }

Property Value

IData

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(IData)

Adds new data to the collection

public void AddInput(IData data)

Parameters

  • data IData: Dữ liệu đầu vào.

Namespace: Documentize Assembly: Documentize.dll

Class PdfAValidateOptions

Thông tin

Biểu diễn các tùy chọn để xác thực sự tuân thủ PDF/A của các tài liệu PDF với plugin Documentize.PdfConverter.

public sealed class PdfAValidateOptions : PdfAOptionsBase, IPluginOptions

Kế thừa

objectPdfAOptionsBasePdfAValidateOptions

Thực thi

Thành viên kế thừa

Hàm khởi tạo

PdfAValidateOptions()

public PdfAValidateOptions()

Namespace: Documentize Assembly: Documentize.dll

Class PdfAValidationResult

Thông tin

Biểu diễn kết quả của quá trình xác thực PDF/A.

public sealed class PdfAValidationResult

Kế thừa

objectPdfAValidationResult

Thành viên kế thừa

Trường

  • Data Lấy nguồn dữ liệu đã được xác thực.

  • public readonly IData Data

Giá trị trường

IData

IsValid

Lấy giá trị cho biết việc xác thực có thành công hay không.

public readonly bool IsValid

Giá trị trường

bool

StandardVersion

Lấy phiên bản tiêu chuẩn PDF/A được sử dụng để xác thực.

public readonly PdfAStandardVersion StandardVersion

Giá trị trường

PdfAStandardVersion

Namespace: Documentize Assembly: Documentize.dll

Class PdfChatGpt

Thông tin

Đại diện cho plugin PdfChatGpt.

[Obsolete("Lớp sẽ bị xóa sớm. Vui lòng sử dụng lớp PdfManager.")]
public static class PdfChatGpt

Kế thừa

objectPdfChatGpt

Các thành viên được kế thừa

Nhận xét

Documentize.PdfChatGpt được sử dụng để gửi yêu cầu đến ChatGPT trực tiếp hoặc bằng cách thêm nguồn tệp PDF và lưu phản hồi vào nguồn đầu ra.

Phương thức

Process(IPluginOptions)

Phương thức này không có phiên bản đồng bộ. Sử dụng phương thức ProcessAsync thay vào đó.

public static ResultContainer Process(IPluginOptions options)

Tham số

  • options IPluginOptions: Một đối tượng tùy chọn chứa hướng dẫn cho PdfChatGpt.

Trả về

ResultContainer : #### Ngoại lệ

NotImplementedException

ProcessAsync(IPluginOptions)

Bắt đầu quá trình PdfChatGpt với các tham số được chỉ định.

public static Task<resultcontainer> ProcessAsync(IPluginOptions options)

Tham số

  • options IPluginOptions: Một đối tượng tùy chọn chứa hướng dẫn cho PdfChatGpt.

Trả về

Task<ResultContainer>

Đối tượng tác vụ đại diện cho hoạt động bất đồng bộ.

Ngoại lệ

ArgumentException : InvalidOperationException

Namespace: Documentize Assembly: Documentize.dll

Class PdfChatGptOptions

Thông tin

Đại diện cho các tùy chọn cho plugin Documentize.PdfChatGpt.

public class PdfChatGptOptions : IPluginOptions

Kế thừa

objectPdfChatGptOptions

Kế thừa từ

Thực hiện

Thành viên kế thừa

Constructors

PdfChatGptOptions()

Khởi tạo một thể hiện mới của đối tượng Documentize.PdfChatGptOptions.

public PdfChatGptOptions()

Thuộc tính

Inputs

public List<idatasource> Inputs { get; }

Giá trị thuộc tính

List<IDataSource>

Outputs

public List<idatasource> Outputs { get; }

Giá trị thuộc tính

List<IDataSource>

Phương thức

AddInput(IDataSource)

Thêm nguồn dữ liệu mới vào tập hợp dữ liệu của plugin PdfChatGpt.

public void AddInput(IDataSource dataSource)

Tham số

  • dataSource IDataSource: Nguồn dữ liệu (tệp hoặc luồng) để thêm.

AddOutput(IDataSource)

Thêm nguồn dữ liệu lưu mới vào tập hợp dữ liệu của plugin PdfChatGpt.

public void AddOutput(IDataSource saveDataSource)

Tham số

  • saveDataSource IDataSource: Nguồn dữ liệu (tệp hoặc luồng) cho các kết quả của thao tác lưu. :

Namespace: Documentize Assembly: Documentize.dll

Class PdfChatGptRequestOptions

Thông tin

Đại diện cho các tùy chọn cho plugin Documentize.PdfChatGpt.

public class PdfChatGptRequestOptions : PdfChatGptOptions, IPluginOptions

Kế thừa

objectPdfChatGptOptionsPdfChatGptRequestOptions

Triển khai

Thành viên kế thừa

Các hàm xây dựng

PdfChatGptRequestOptions()

Khởi tạo một phiên bản mới của đối tượng Documentize.PdfChatGptRequestOptions với các tùy chọn mặc định.

public PdfChatGptRequestOptions()

PdfChatGptRequestOptions(string, string, string, string)

Khởi tạo một phiên bản mới của đối tượng Documentize.PdfChatGptRequestOptions với các tùy chọn.

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

Tham số

Thuộc tính

ApiKey

Lấy hoặc thiết lập khóa để truy cập vào ChatGPT API.

public string ApiKey { get; set; }

Giá trị thuộc tính

string

ApiUrl

Lấy hoặc thiết lập URL của ChatGPT API.

public string ApiUrl { get; set; }

Giá trị thuộc tính

string

CancellationToken

Token hủy.

public CancellationToken CancellationToken { get; set; }

Giá trị thuộc tính

CancellationToken

MaxTokens

Số lượng tối đa token trong phản hồi. Giá trị mặc định là null, nghĩa là vô tận.

public int? MaxTokens { get; set; }

Giá trị thuộc tính

int?

Messages

Lấy hoặc thiết lập một bộ sưu tập các đối tượng Documentize.Message.

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

Giá trị thuộc tính

List<Message>

Nhận xét

Khi thêm nhiều tin nhắn vào các tùy chọn, thứ tự trong bộ sưu tập tin nhắn như sau:

  • Tin nhắn đầu tiên (nếu có) là từ options.Query, được trước bởi tin nhắn có nội dung: “Bạn là một trợ lý hữu ích.”, và vai trò là “hệ thống”.
  • Sau đó (nếu có) các tin nhắn từ bộ sưu tập options.Messages được thêm vào.
  • Các tin nhắn từ các nguồn tệp (nếu có) được thêm vào cuối cùng, một đối tượng tin nhắn cho mỗi tài liệu với vai trò “người dùng”. Nếu không có tin nhắn nào được cung cấp, sẽ ném ra ArgumentException.

Model

Thiết lập hoặc lấy ID của mô hình để sử dụng.

public string Model { get; set; }

Giá trị thuộc tính

string

NumberOfChoices

Số lượng lựa chọn hoàn thành trò chuyện để tạo cho mỗi tin nhắn đầu vào.

public int NumberOfChoices { get; set; }

Giá trị thuộc tính

int

Query

Lấy hoặc thiết lập chuỗi yêu cầu gửi đến ChatGPT. Nếu không trống, đây là tin nhắn đầu tiên trong bộ sưu tập, sẽ được gửi trong yêu cầu.

public string Query { get; set; }

Giá trị thuộc tính

string

Temperature

Nhiệt độ lấy mẫu để sử dụng, giữa 0 và 2. Giá trị cao như 0.8 sẽ làm cho kết quả đầu ra ngẫu nhiên hơn, trong khi giá trị thấp như 0.2 sẽ làm cho nó tập trung và xác định hơn. Giá trị mặc định là 1.

public double Temperature { get; set; }

Giá trị thuộc tính

double

Namespace: Documentize Assembly: Documentize.dll

Class PdfConverter

Thông tin

Represents Documentize.PdfConverter component. Used to Convert PDF documents to another formats like DOCX/DOC, XLSX/XLS/CSV/XLSM/ODS, HTML, JPEG, PNG, TIFF, PDF/A. Also allows you to perform PDF/A Validation and Convert HTML to PDF.

Represents Documentize.PdfConverter component. Used to Convert PDF documents to another formats like DOCX/DOC, XLSX/XLS/CSV/XLSM/ODS, HTML, JPEG, PNG, TIFF, PDF/A. Also allows you to perform PDF/A Validation and Convert HTML to PDF.

public static class PdfConverter

Inheritance

objectPdfConverter

Inherited Members

Methods

Convert(PdfToDocOptions)

Chuyển đổi tài liệu PDF sang các định dạng DOC/DOCX.

public static ResultContainer Convert(PdfToDocOptions options)

Parameters

  • options PdfToDocOptions: Đối tượng tùy chọn chứa các chỉ dẫn cho quá trình thực thi.

Returns

ResultContainer : Đối tượng chứa kết quả của quá trình.

Examples

Ví dụ minh họa cách chuyển đổi tài liệu PDF sang định dạng Doc.

// Create PdfToDocOptions object to set instructions
var options = new PdfToDocOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_file.doc"));
// Perform the process
PdfConverter.Convert(options);

Ví dụ minh họa cách chuyển đổi tài liệu PDF sang định dạng Doc với việc thiết lập Mode.

// Create PdfToDocOptions object to set instructions
var options = new PdfToDocOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_file.doc"));
// Set Mode
options.Mode = DocConversionMode.Flow;
// Perform the process
PdfConverter.Convert(options);

Exceptions

ArgumentException

Nếu options chưa được thiết lập.

Convert(PdfToXlsOptions)

Chuyển đổi tài liệu PDF sang các định dạng XLSX/XLS/CSV/XLSM/ODS.

public static ResultContainer Convert(PdfToXlsOptions options)

Parameters

  • options PdfToXlsOptions: Đối tượng tùy chọn chứa các chỉ dẫn cho quá trình thực thi.

Returns

ResultContainer : Đối tượng chứa kết quả của quá trình.

Examples

Ví dụ minh họa cách chuyển đổi PDF sang tài liệu XLSX.

// Create PdfToXlsOptions object to set instructions
var options = new PdfToXlsOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_xlsx_file.xlsx"));
// Perform the process
PdfConverter.Convert(options);

Ví dụ minh họa cách chuyển đổi PDF sang tài liệu XLS.

// Create PdfToXlsOptions object to set instructions
var options = new PdfToXlsOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Specify XLS format
options.Format = PdfToXlsOptions.ExcelFormat.XMLSpreadSheet2003;
options.InsertBlankColumnAtFirst = true;
options.MinimizeTheNumberOfWorksheets = true;
// Set output file path
options.AddOutput(new FileData("path_to_result_xlsx_file.xls"));
// Perform the process
PdfConverter.Convert(options);

Exceptions

ArgumentException

Nếu options chưa được thiết lập.

Convert(PdfToHtmlOptions)

Chuyển đổi tài liệu PDF sang định dạng HTML.

public static ResultContainer Convert(PdfToHtmlOptions options)

Parameters

  • options PdfToHtmlOptions: Đối tượng tùy chọn chứa các chỉ dẫn cho quá trình thực thi.

Returns

ResultContainer : Đối tượng chứa kết quả của quá trình.

Examples

Ví dụ minh họa cách chuyển đổi PDF sang tài liệu HTML.

// Create PdfToHtmlOptions object to set output data type as file with embedded resources
var options = new PdfToHtmlOptions(PdfToHtmlOptions.SaveDataType.FileWithEmbeddedResources);
// Add input file path
options.AddInput(new FileData("path_to_input.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_output.html"));
//Perform the process
PdfConverter.Convert(options);

Exceptions

ArgumentException

Nếu options chưa được thiết lập.

Convert(HtmlToPdfOptions)

Chuyển đổi tài liệu HTML sang định dạng PDF.

public static ResultContainer Convert(HtmlToPdfOptions options)

Parameters

  • options HtmlToPdfOptions: Đối tượng tùy chọn chứa các chỉ dẫn cho quá trình thực thi.

Returns

ResultContainer : Đối tượng chứa kết quả của quá trình.

Examples

Ví dụ minh họa cách chuyển đổi HTML sang tài liệu PDF.

// Create HtmlToPdfOptions
var options = new HtmlToPdfOptions();
// Add input file path
options.AddInput(new FileData("path_to_input.html"));
// Set output file path
options.AddOutput(new FileData("path_to_output.pdf"));
//Perform the process
PdfConverter.Convert(options);

Exceptions

ArgumentException

Nếu options chưa được thiết lập.

Convert(PdfToJpegOptions)

Chuyển đổi tài liệu PDF sang định dạng JPEG.

public static ResultContainer Convert(PdfToJpegOptions options)

Parameters

  • options PdfToJpegOptions: Đối tượng tùy chọn chứa các chỉ dẫn cho quá trình thực thi.

Returns

ResultContainer : Đối tượng chứa kết quả của quá trình.

Examples

Ví dụ minh họa cách chuyển đổi tài liệu PDF sang định dạng JPEG.

// Create PdfToJpegOptions object to set instructions
var options = new PdfToJpegOptions();
// Add input File path
options.AddInput(new FileData("path_to_input.pdf"));
// Set output Directory path
options.AddOutput(new DirectoryData("path_to_output_directory"));
// Perform the process
PdfConverter.Convert(options);

Ví dụ minh họa cách chuyển đổi PDF sang JPEG với các thiết lập cho trang, độ phân giải, chất lượng.

// Create PdfToJpegOptions object to set instructions
var options = new PdfToJpegOptions();
// Process only the first page
options.PageList = [1];
// Set output resolution to 200 DPI
options.OutputResolution = 200;
// Set output quality to 50
options.Quality = 50;
// Add input File path
options.AddInput(new FileData("path_to_input.pdf"));
// Set output Directory path
options.AddOutput(new DirectoryData("path_to_output_directory"));
// Perform the process
PdfConverter.Convert(options);

Ví dụ minh họa cách chuyển đổi PDF sang JPEG và nhận kết quả dưới dạng stream.

// Create PdfToJpegOptions object to set instructions
var options = new PdfToJpegOptions();
// Add input File path
options.AddInput(new FileData("path_to_input.pdf"));
// Perform the process
var results = PdfConverter.Convert(options);
// Get stream results
foreach (var result in results.ResultCollection)
{
    var streamResultPage1 = result.ToStream();
}

Exceptions

ArgumentException

Nếu options chưa được thiết lập.

Convert(PdfToPngOptions)

Chuyển đổi tài liệu PDF sang định dạng PNG.

public static ResultContainer Convert(PdfToPngOptions options)

Parameters

  • options PdfToPngOptions: Đối tượng tùy chọn chứa các chỉ dẫn cho quá trình thực thi.

Returns

ResultContainer : Đối tượng chứa kết quả của quá trình.

Examples

Ví dụ minh họa cách chuyển đổi PDF sang PNG.

// Create PdfToPngOptions object to set instructions
var options = new PdfToPngOptions();
// Add input File path
options.AddInput(new FileData("path_to_input.pdf"));
// Set output Directory path
options.AddOutput(new DirectoryData("path_to_output_directory"));
// Perform the process
PdfConverter.Convert(options);

Ví dụ minh họa cách chuyển đổi 1 trang PDF sang PNG.

// Create PdfToPngOptions object to set instructions
var options = new PdfToPngOptions()
// Process only the first page
options.PageList = [1];
// Set output resolution to 200 DPI
options.OutputResolution = 200;
// Add input File path
options.AddInput(new FileData("path_to_input.pdf"));
// Set output Directory path
options.AddOutput(new DirectoryData("path_to_output_directory"));
// Perform the process
PdfConverter.Convert(options);

Ví dụ minh họa cách chuyển đổi PDF sang PNG và nhận kết quả dưới dạng stream.

// Create PdfToJpegOptions object to set instructions
var options = new PdfToPngOptions();
// Add input File path
options.AddInput(new FileData("path_to_input.pdf"));
// Perform the process
var results = PdfConverter.Convert(options);
// Get stream results
foreach (var result in results.ResultCollection)
{
    var streamResultPage1 = result.ToStream();
}

Exceptions

ArgumentException

Nếu options chưa được thiết lập.

Convert(PdfToTiffOptions)

Chuyển đổi tài liệu PDF sang định dạng TIFF.

public static ResultContainer Convert(PdfToTiffOptions options)

Parameters

  • options PdfToTiffOptions: Đối tượng tùy chọn chứa các chỉ dẫn cho quá trình thực thi.

Returns

ResultContainer : Đối tượng chứa kết quả của quá trình.

Examples

Ví dụ minh họa cách chuyển đổi PDF sang TIFF.

// Create PdfToTiffOptions object to set instructions
var options = new PdfToTiffOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output Directory path
options.AddOutput(new DirectoryData("path_to_output_directory"));
// Perform the process
PdfConverter.Convert(options);

Ví dụ minh họa cách chuyển đổi PDF sang TIFF với việc tùy chỉnh trang và DPI.

// Create PdfToTiffOptions object to set instructions
var options = new PdfToTiffOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output Directory path
options.AddOutput(new DirectoryData("path_to_output_directory"));
// Set Pages
options.PageList = [1, 3];
// Set result image Resolution
options.OutputResolution = 400;
// Perform the process
PdfConverter.Convert(options);

Ví dụ minh họa cách chuyển đổi PDF sang TIFF đa trang.

// Create PdfToTiffOptions object to set instructions
var options = new PdfToTiffOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output Directory path
options.AddOutput(new DirectoryData("path_to_output_directory"));
// Enable Multi-Page TIFF output
options.MultiPage = true;
// Perform the process
PdfConverter.Convert(options);

Ví dụ minh họa cách chuyển đổi PDF sang TIFF với tùy chỉnh nén và độ sâu màu.

// Create PdfToTiffOptions object to set instructions
var options = new PdfToTiffOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output Directory path
options.AddOutput(new DirectoryData("path_to_output_directory"));
// Set Compression and ColorDepth
options.Compression = TiffCompression.RLE;
options.ColorDepth = TiffColorDepth.Format24bpp;
// Perform the process
PdfConverter.Convert(options);

Ví dụ minh họa cách chuyển đổi PDF sang TIFF và nhận kết quả dưới dạng stream.

// Create PdfToTiffOptions object to set instructions
var options = new PdfToTiffOptions();
// Add input File path
options.AddInput(new FileData("path_to_input.pdf"));
// Perform the process
var results = PdfConverter.Convert(options);
// Get stream results
foreach (var result in results.ResultCollection)
{
    var streamResultPage1 = result.ToStream();
}

Exceptions

ArgumentException

Nếu options chưa được thiết lập.

Convert(PdfToPdfAOptions)

Chuyển đổi tài liệu PDF sang định dạng PDF/A.

public static ResultContainer Convert(PdfToPdfAOptions options)

Parameters

  • options PdfToPdfAOptions: Đối tượng tùy chọn chứa các chỉ dẫn cho quá trình thực thi.

Returns

ResultContainer : Đối tượng chứa kết quả của quá trình.

Examples

Ví dụ minh họa cách chuyển đổi tài liệu PDF sang định dạng PDF/A (trong ví dụ này là PDF/A-3b):

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

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

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

// Run the conversion
PdfConverter.Convert(options);

Exceptions

ArgumentException

Nếu options chưa được thiết lập.

Validate(PdfAValidateOptions)

Kiểm tra tài liệu PDF có tuân thủ tiêu chuẩn PDF/A được chỉ định hay không.

public static ResultContainer Validate(PdfAValidateOptions options)

Parameters

  • options PdfAValidateOptions: Đối tượng tùy chọn chứa các chỉ dẫn cho quá trình thực thi.

Returns

ResultContainer : Đối tượng chứa kết quả của quá trình.

Examples

Ví dụ minh họa cách xác thực tài liệu PDF đối với định dạng PDF/A (trong ví dụ này là PDF/A-1a):

// 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 FileData("path_to_your_first_pdf_file.pdf")); // replace with your actual file path
options.AddInput(new FileData("path_to_your_second_pdf_file.pdf"));
// add more files as needed

// Run the validation and get results
var resultContainer = PdfConverter.Validate(options);

// Check the resultContainer.ResultCollection property for validation results for each file:
foreach (var result in resultContainer.ResultCollection)
{
    var validationResult = (PdfAValidationResult) result.Data;
    var isValid = validationResult.IsValid; // Validation result for document
}

Exceptions

ArgumentException

Nếu options chưa được thiết lập.

Namespace: Documentize Assembly: Documentize.dll

Class PdfConverterOptions

Thông tin

Đại diện cho các tùy chọn cho các plugin chuyển đổi Pdf.

public abstract class PdfConverterOptions : IPluginOptions

Kế thừa

objectPdfConverterOptions

Kế thừa từ

Triển khai

Thành viên kế thừa

Thuộc tính

Inputs

Trả về bộ sưu tập dữ liệu plugin PdfConverterOptions.

public List<idatasource> Inputs { get; }

Giá trị thuộc tính

List<IDataSource>

Outputs

Lấy bộ sưu tập các mục tiêu đã thêm để lưu kết quả hoạt động.

public List<idatasource> Outputs { get; }

Giá trị thuộc tính

List<IDataSource>

Phương thức

AddInput(IDataSource)

Thêm nguồn dữ liệu mới vào bộ sưu tập dữ liệu plugin PdfConverter.

public void AddInput(IDataSource dataSource)

Tham số

  • dataSource IDataSource: Nguồn dữ liệu để thêm.

AddOutput(IDataSource)

Thêm nguồn dữ liệu mới vào bộ sưu tập dữ liệu plugin PdfToXLSXConverterOptions.

public void AddOutput(IDataSource saveDataSource)

Tham số

  • saveDataSource IDataSource: Nguồn dữ liệu (tệp hoặc luồng) để lưu kết quả hoạt động.

Ngoại lệ

NotImplementedException

Namespace: Documentize Assembly: Documentize.dll

Class PdfExtractor

Thông tin

Đại diện cho thành phần Documentize.PdfExtractor. Được sử dụng để Trích xuất Văn bản, Hình ảnh, Dữ liệu Biểu mẫu, Thuộc tính (Siêu dữ liệu) từ tài liệu PDF.

public static class PdfExtractor

Inheritance

objectPdfExtractor

Inherited Members

Methods

Extract(ExtractTextOptions)

Trích xuất Văn bản từ tài liệu PDF.

public static string Extract(ExtractTextOptions options)

Parameters

  • options ExtractTextOptions: Đối tượng tùy chọn chứa các hướng dẫn cho thao tác.

Returns

string : Văn bản đã được trích xuất.

Examples

The example demonstrates how to Extract Text content from PDF file.

// Create ExtractTextOptions object to set input file path
var options = new ExtractTextOptions("path_to_your_pdf_file.pdf");
// Perform the process and get the extracted text
var textExtracted = PdfExtractor.Extract(options);

The example demonstrates how to Extract Text content from PDF stream.

// Create ExtractTextOptions object to set input stream
var stream = File.OpenRead("path_to_your_pdf_file.pdf");
var options = new ExtractTextOptions(stream);
// Perform the process and get the extracted text
var textExtracted = PdfExtractor.Extract(options);

The example demonstrates how to Extract Text content of PDF document with TextFormattingMode.

// Create ExtractTextOptions object to set input file path and TextFormattingMode
var options = new ExtractTextOptions("path_to_your_pdf_file.pdf", TextFormattingMode.Pure);
// Perform the process and get the extracted text
var textExtracted = PdfExtractor.Extract(options);

The example demonstrates how to Extract Text from PDF file in the shortest possible style.

// Perform the process and get the extracted text
var textExtracted = PdfExtractor.Extract(new ExtractTextOptions("path_to_your_pdf_file.pdf", TextFormattingMode.Pure));

Exceptions

ArgumentException

Nếu không thiết lập options.

Extract(ExtractImagesOptions)

Trích xuất hình ảnh từ tài liệu PDF.

public static ResultContainer Extract(ExtractImagesOptions options)

Parameters

Returns

ResultContainer : Đối tượng chứa kết quả của thao tác.

Examples

The example demonstrates how to Extract Images from PDF document.

// Create ExtractImagesOptions to set instructions
var options = new ExtractImagesOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output Directory path
options.AddOutput(new DirectoryData("path_to_results_directory"));
// Perform the process
var results = PdfExtractor.Extract(options);
// Get path to image result
var imageExtracted = results.ResultCollection[0].ToFile();

The example demonstrates how to Extract Images from PDF document to Streams without folder.

// Create ExtractImagesOptions to set instructions
var options = new ExtractImagesOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Not set output - it will write results to streams
// Perform the process
var results = PdfExtractor.Extract(options);
// Get Stream
var ms = results.ResultCollection[0].ToStream();
// Copy data to file for demo
ms.Seek(0, SeekOrigin.Begin);
using (var fs = File.Create("test_file.png"))
{
    ms.CopyTo(fs);
}

Exceptions

ArgumentException

Nếu không thiết lập options.

Extract(ExtractFormDataToDsvOptions)

Trích xuất Dữ liệu Biểu mẫu từ tài liệu PDF.

public static ResultContainer Extract(ExtractFormDataToDsvOptions options)

Parameters

Returns

ResultContainer : Đối tượng chứa kết quả của thao tác.

Examples

The example demonstrates how to Export Form values to CSV file.

// Create ExtractFormDataToDsvOptions object to set instructions
var options = new ExtractFormDataToDsvOptions(',', true);
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_csv_file.csv"));
// Perform the process
PdfExtractor.Extract(options);

The example demonstrates how to Export Form values to TSV file and set Properties.

// Create ExtractFormDataToDsvOptions object to set instructions
var options = new ExtractFormDataToDsvOptions();
//Set Delimiter
options.Delimiter = '\t';
//Add Field Names to result
options.AddFieldName = true;
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_csv_file.tsv"));
// Perform the process
PdfExtractor.Extract(options);

Exceptions

ArgumentException

Nếu không thiết lập options.

Extract(ExtractPropertiesOptions)

Trích xuất Thuộc tính từ tài liệu PDF.

public static PdfProperties Extract(ExtractPropertiesOptions options)

Parameters

Returns

PdfProperties : Đối tượng chứa kết quả của thao tác.

Examples

The example demonstrates how to Extract Properties (FileName, Title, Author, Subject, Keywords, Created, Modified, Application, PDF Producer, Number of Pages) from PDF file.

// Create ExtractPropertiesOptions object to set input file
var options = new ExtractPropertiesOptions("path_to_your_pdf_file.pdf");
// Perform the process and get Properties
var pdfProperties = PdfExtractor.Extract(options);
var filename = pdfProperties.FileName;
var title = pdfProperties.Title;
var author = pdfProperties.Author;
var subject = pdfProperties.Subject;
var keywords = pdfProperties.Keywords;
var created = pdfProperties.Created;
var modified = pdfProperties.Modified;
var application = pdfProperties.Application;
var pdfProducer = pdfProperties.PdfProducer;
var numberOfPages = pdfProperties.NumberOfPages;

The example demonstrates how to Extract Properties (Title, Author, Subject, Keywords, Created, Modified, Application, PDF Producer, Number of Pages) from PDF stream.

// Create ExtractPropertiesOptions object to set input stream
var stream = File.OpenRead("path_to_your_pdf_file.pdf");
var options = new ExtractPropertiesOptions(stream);
// Perform the process and get Properties
var pdfProperties = PdfExtractor.Extract(options);
var title = pdfProperties.Title;
var author = pdfProperties.Author;
var subject = pdfProperties.Subject;
var keywords = pdfProperties.Keywords;
var created = pdfProperties.Created;
var modified = pdfProperties.Modified;
var application = pdfProperties.Application;
var pdfProducer = pdfProperties.PdfProducer;
var numberOfPages = pdfProperties.NumberOfPages;

The example demonstrates how to Extract Properties from PDF file in the shortest possible style.

// Perform the process and get Properties
var pdfProperties = PdfExtractor.Extract(new ExtractPropertiesOptions("path_to_your_pdf_file.pdf"));

Exceptions

ArgumentException

Nếu không thiết lập options.

Namespace: Documentize Assembly: Documentize.dll

Class PdfForm

Thông tin

Biểu diễn thành phần Documentize.PdfForm. Được sử dụng để làm phẳng, trích xuất dữ liệu biểu mẫu. Cũng cho phép bạn lấy tên các trường.

Biểu diễn thành phần Documentize.PdfForm. Được sử dụng để làm phẳng, trích xuất dữ liệu biểu mẫu.
Cũng cho phép bạn lấy tên các trường.

public static class PdfForm

Inheritance

objectPdfForm

Inherited Members

Phương thức

Extract(ExtractFormDataToDsvOptions)

Trích xuất dữ liệu biểu mẫu từ tài liệu PDF.

public static ResultContainer Extract(ExtractFormDataToDsvOptions options)

Tham số

Kết quả trả về

ResultContainer : Đối tượng chứa kết quả của thao tác.

Ví dụ

Ví dụ minh họa cách xuất giá trị biểu mẫu ra tệp CSV.

// Create ExtractFormDataToDsvOptions object to set instructions
var options = new ExtractFormDataToDsvOptions(',', true);
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_csv_file.csv"));
// Perform the process
PdfForm.Extract(options);

Ví dụ minh họa cách xuất giá trị biểu mẫu ra tệp TSV và thiết lập các thuộc tính.

// Create ExtractFormDataToDsvOptions object to set instructions
var options = new ExtractFormDataToDsvOptions();
//Set Delimiter
options.Delimiter = '\t';
//Add Field Names to result
options.AddFieldName = true;
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_csv_file.tsv"));
// Perform the process
PdfForm.Extract(options);

Ngoại lệ

ArgumentException

Nếu không thiết lập options.

Flatten(FlattenFieldsOptions)

Làm phẳng các trường trong tài liệu PDF.

public static ResultContainer Flatten(FlattenFieldsOptions options)

Tham số

Kết quả trả về

ResultContainer : Đối tượng chứa kết quả của thao tác.

Ví dụ

Ví dụ minh họa cách làm phẳng các trường trong tệp PDF.

// Create FlattenFieldsOptions object to set instructions
var options = new FlattenFieldsOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfForm.Flatten(options);

Ví dụ minh họa cách làm phẳng các trường trong tệp PDF và bỏ qua trường đầu tiên.

// Get Fields Names
var fieldNames = PdfForm.GetNames(new GetFieldNamesOptions("path_to_your_pdf_file.pdf"));
// Create FlattenFieldsOptions object to set instructions
var options = new FlattenFieldsOptions();
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Skip 1 field.
options.SkipFields.Add(fieldNames[0]);
// Perform the process
PdfForm.Flatten(options);

Ngoại lệ

ArgumentException

Nếu không thiết lập options.

GetNames(GetFieldNamesOptions)

Lấy tên các trường trong tài liệu PDF.

public static List<string> GetNames(GetFieldNamesOptions options)

Tham số

Kết quả trả về

List<string>

Danh sách các tên trong tài liệu PDF.

Ví dụ

Ví dụ minh họa cách lấy tên các trường từ tệp PDF.

// Get Field Names
var fieldNames = PdfForm.GetNames(new GetFieldNamesOptions("path_to_your_pdf_file.pdf"));

Remove(RemoveFieldsOptions) : Xóa các trường khỏi tài liệu PDF.

public static ResultContainer Remove(RemoveFieldsOptions options)

Tham số

  • options RemoveFieldsOptions: Đối tượng tùy chọn chứa các hướng dẫn cho thao tác.

Kết quả trả về

ResultContainer : Đối tượng chứa kết quả của thao tác.

Ví dụ

Ví dụ minh họa cách xóa các trường khỏi tệp PDF.

// Create RemoveFieldsOptions object to set instructions
var options = new RemoveFieldsOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfForm.Remove(options);

Ngoại lệ

ArgumentException

Nếu không thiết lập options.

Không gian tên: Documentize Assembly: Documentize.dll

Class PdfManager

Thông tin

Represents Documentize.PdfManager component. Used to Merge, Split, Optimize, Rotate, Resize, Compress PDF documents and Add Table, Add TOC to PDF documents. Can Merge multiple PDF documents into a single PDF. Can Split PDF documents into separate pages. Can Optimize, Rotate, Resize, Compress PDF documents. Can Rotate, Resize Pages of PDF document. Can Add a Table to a PDF document. Can Add a Table of Contents to PDF document.

Represents Documentize.PdfManager component. Used to Merge, Split, Optimize, Rotate, Resize, Compress PDF documents and Add Table, Add TOC to PDF documents. Can Merge multiple PDF documents into a single PDF. Can Split PDF documents into separate pages. Can Optimize, Rotate, Resize, Compress PDF documents. Can Rotate, Resize Pages of PDF document. Can Add a Table to a PDF document. Can Add a Table of Contents to PDF document.

public static class PdfManager

Inheritance

objectPdfManager

Inherited Members

Methods

AddTable(TableOptions)

Add Table to PDF document.

public static ResultContainer AddTable(TableOptions options)

Parameters

  • options TableOptions: An options object containing instructions for the operation.

Returns

ResultContainer : An object containing the result of the operation.

Examples

The example demonstrates how to Add Table to PDF file.

// Configure table options
var options = new TableOptions();
options.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
options.AddInput(new FileData("path_to_input.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_output.pdf"));
// Perform the process
PdfManager.AddTable(options);

The example demonstrates how to Add Table to PDF file before 2 page.

// Configure table options
var options = new TableOptions();
options.InsertPageBefore(2) // Add table before page 2
   .AddTable()
        .AddRow()
            .AddCell().AddParagraph("Name")
            .AddCell().AddParagraph("Age");
// Add input file path
options.AddInput(new FileData("path_to_input.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_output.pdf"));
// Perform the process
PdfManager.AddTable(options);

Exceptions

ArgumentException

If options not set.

AddTableOfContents(TocOptions)

Add Table of Contents (TOC) to PDF document.

public static ResultContainer AddTableOfContents(TocOptions options)

Parameters

  • options TocOptions: An options object containing instructions for the operation.

Returns

ResultContainer : An object containing the result of the operation.

Examples

The example demonstrates how to add Table of Contents to PDF file.

// Create TocOptions object to set instructions
var options = new TocOptions();
// Set the Title
options.Title = "My Table of Contents";
// Design Headings
options.Headings.Add(new TocHeading("Introduction", 2));
options.Headings.Add(new TocHeading("Chapter I", 3));
options.Headings.Add(new TocHeading("Chapter II", 4));
options.Headings.Add(new TocHeading("Chapter III", 5));
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfManager.AddTableOfContents(options);

The example demonstrates how to add Table of Contents to PDF file with generating bookmarks.

// Create TocOptions object to set instructions
var options = new TocOptions();
// Set the Title
options.Title = "My Table of Contents";
// Generate links in bookmarks
options.GenerateBookmarks = true;
// Design Headings
options.Headings.Add(new TocHeading("Introduction", 2, false, 1));
options.Headings.Add(new TocHeading("Chapter I", 3, true, 1));
options.Headings.Add(new TocHeading("Chapter II", 4, true, 1));
options.Headings.Add(new TocHeading("Example A", 4, true, 2));
options.Headings.Add(new TocHeading("Example B", 4, true, 2));
options.Headings.Add(new TocHeading("Example C", 4, true, 2));
options.Headings.Add(new TocHeading("Example D", 4, true, 2));
options.Headings.Add(new TocHeading("Chapter III", 5, true, 1));
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfManager.AddTableOfContents(options);

The example demonstrates how to add Table of Contents to PDF file and save as stream.

// Create TocOptions object to set instructions
var options = new TocOptions();
// Set the Title
options.Title = "My Table of Contents";
// Design Headings
options.Headings.Add(new TocHeading("Introduction", 2, false, 1));
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output stream 
var outputStream = new MemoryStream();
options.AddOutput(new StreamData(outputStream));
options.CloseOutputStreams = false;
// Perform the process
PdfManager.AddTableOfContents(options);

The example demonstrates how to add Table of Contents to PDF file with Customizing the TOC Heading.

// Create TocOptions object to set instructions
var heading = new TocHeading();
heading.Text = "Intro";
heading.PageNumber = 5;
heading.GenerateNumbering = true;
heading.Level = 2;
var tocOptions = new TocOptions();
tocOptions.Headings.Add(heading);
// Add input and output files
tocOptions.AddInput(new FileData("path_to_your_pdf_file.pdf"));
tocOptions.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Generate the TOC with customized options
PdfManager.AddTableOfContents(tocOptions);

Exceptions

ArgumentException

If options not set.

Compress(CompressOptions)

Compress PDF document. Try to reduce size of the document.

public static ResultContainer Compress(CompressOptions options)

Parameters

  • options CompressOptions: An options object containing instructions for the operation.

Returns

ResultContainer : An object containing the result of the operation.

Examples

The example demonstrates how to Compress PDF document.

// Create CompressOptions object to set instructions
var options = new CompressOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfManager.Compress(options);

Exceptions

ArgumentException

If options not set.

CreatePdfByChatGptRequestAsync(ChatGptRequestOptions)

Create PDF document by Reply of ChatGpt. Used to send requests to ChatGPT directly or by adding PDF file sources and save the reply to the output source.

public static Task<resultcontainer> CreatePdfByChatGptRequestAsync(ChatGptRequestOptions options)

Parameters

Returns

Task<ResultContainer>

An object containing the result of the operation.

Examples

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

var options = new ChatGptRequestOptions();
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.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 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 PdfManager.CreatePdfByChatGptRequestAsync(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 ChatGpt by adding one message to the request.

var options = new ChatGptRequestOptions();
options.AddOutput(new FileData("path_to_result_pdf_file.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 PdfManager.CreatePdfByChatGptRequestAsync(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 Chat by adding file(s) as the message source(s).

var options = new ChatGptRequestOptions();
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));

// 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 FileData("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 PdfManager.CreatePdfByChatGptRequestAsync(options);

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

Exceptions

ArgumentException : If options not set.

Merge(MergeOptions)

Merge PDF documents.

public static ResultContainer Merge(MergeOptions options)

Parameters

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

Returns

ResultContainer : An object containing the result of the operation.

Examples

The example demonstrates how to Merge two PDF documents.

// Create MergeOptions object to set instructions
var options = new MergeOptions();
// Add input file paths
options.AddInput(new FileData("path_to_your_pdf_file_1.pdf"));
options.AddInput(new FileData("path_to_your_pdf_file_2.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfManager.Merge(options);

Exceptions

ArgumentException

If options not set.

Optimize(OptimizeOptions)

Optimize PDF document. 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 static ResultContainer Optimize(OptimizeOptions options)

Parameters

  • options OptimizeOptions: An options object containing instructions for the operation.

Returns

ResultContainer : An object containing the result of the operation.

Examples

The example demonstrates how to Optimize PDF document.

// Create OptimizeOptions object to set instructions
var options = new OptimizeOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfManager.Optimize(options);

Exceptions

ArgumentException

If options not set.

Resize(ResizeOptions)

Resize Pages of PDF document.

public static ResultContainer Resize(ResizeOptions options)

Parameters

  • options ResizeOptions: An options object containing instructions for the operation.

Returns

ResultContainer : An object containing the result of the operation.

Examples

The example demonstrates how to Resize PDF document.

// Create ResizeOptions object to set instructions
var options = new ResizeOptions();
// Set new PageSize
options.PageSize = PageSize.A3;
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfManager.Resize(options);

Exceptions

ArgumentException

If options not set.

Rotate(RotateOptions)

Rotate Pages of PDF document.

public static ResultContainer Rotate(RotateOptions options)

Parameters

  • options RotateOptions: An options object containing instructions for the operation.

Returns

ResultContainer : An object containing the result of the operation.

Examples

The example demonstrates how to Rotate PDF document.

// Create RotateOptions object to set instructions
var options = new RotateOptions();
// Set new Rotation
options.Rotation = Rotation.On90;
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfManager.Rotate(options);

Exceptions

ArgumentException

If options not set.

Split(SplitOptions)

Split PDF document by pages.

public static ResultContainer Split(SplitOptions options)

Parameters

  • options SplitOptions: An options object containing instructions for the operation.

Returns

ResultContainer : An object containing the result of the operation.

Examples

The example demonstrates how to Split PDF document.

// Create SplitOptions object to set instructions
var options = new SplitOptions();
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file paths
options.AddOutput(new FileData("path_to_result_pdf_file_1.pdf"));
options.AddOutput(new FileData("path_to_result_pdf_file_2.pdf"));
// Perform the process
PdfManager.Split(options);

Exceptions

ArgumentException

If options not set.

Namespace: Documentize Assembly: Documentize.dll

Class PdfProperties

Thông tin

Biểu diễn các Thuộc tính và thông tin meta của tài liệu PDF.

public class PdfProperties

Kế thừa

objectPdfProperties

Thành viên kế thừa

Các hàm khởi tạo

PdfProperties()

public PdfProperties()

Các thuộc tính

Application

Lấy hoặc đặt Ứng dụng PDF.

public string Application { get; set; }

Giá trị Thuộc tính

string

Author

Lấy hoặc đặt Tác giả PDF.

public string Author { get; set; }

Giá trị Thuộc tính

string

Created

Lấy hoặc đặt Ngày tạo PDF.

public DateTime? Created { get; set; }

Giá trị Thuộc tính

DateTime?

FileName

Lấy hoặc đặt Tên tệp PDF, nếu có.

public string FileName { get; set; }

Giá trị Thuộc tính

string

Keywords

Lấy hoặc đặt Từ khóa PDF.

public string Keywords { get; set; }

Giá trị Thuộc tính

string

Modified

Lấy hoặc đặt Ngày sửa đổi PDF.

public DateTime? Modified { get; set; }

Giá trị Thuộc tính

DateTime?

NumberOfPages

Lấy hoặc đặt Số trang PDF.

public int NumberOfPages { get; set; }

Giá trị Thuộc tính

int

PdfProducer

Lấy hoặc đặt Nhà sản xuất PDF.

public string PdfProducer { get; set; }

Giá trị Thuộc tính

string

Subject

Lấy hoặc đặt Chủ đề PDF.

public string Subject { get; set; }

Giá trị Thuộc tính

string

Title

Lấy hoặc đặt Tiêu đề PDF.

public string Title { get; set; }

Giá trị Thuộc tính

string

Namespace: Documentize Assembly: Documentize.dll

Class PdfSecurity

Thông tin

Biểu diễn thành phần Documentize.PdfSecurity. Được sử dụng để Mã hóa, Giải mã, Ký và Làm sạch tài liệu PDF.

public static class PdfSecurity

Inheritance

objectPdfSecurity

Inherited Members

Methods

Decrypt(DecryptOptions)

Giải mã tài liệu PDF.

public static ResultContainer Decrypt(DecryptOptions options)

Parameters

  • options DecryptOptions: Đối tượng tùy chọn chứa các chỉ dẫn cho thao tác.

Returns

ResultContainer : Đối tượng chứa kết quả của thao tác.

Examples

Ví dụ minh họa cách Decrypt tài liệu PDF.

// Create DecryptOptions object to set instructions
var options = new DecryptOptions("123456");
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfSecurity.Decrypt(options);

Exceptions

ArgumentException

Nếu không thiết lập options.

Encrypt(EncryptOptions)

Mã hóa tài liệu PDF.

public static ResultContainer Encrypt(EncryptOptions options)

Parameters

  • options EncryptOptions: Đối tượng tùy chọn chứa các chỉ dẫn cho thao tác.

Returns

ResultContainer : Đối tượng chứa kết quả của thao tác.

Examples

Ví dụ minh họa cách Encrypt tài liệu PDF.

// Create EncryptOptions object to set instructions
var options = new EncryptOptions("123456", "qwerty");
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfSecurity.Encrypt(options);

Exceptions

ArgumentException

Nếu không thiết lập options.

Sanitize(SanitizeOptions)

Làm sạch dữ liệu ẩn trong tài liệu PDF, đảm bảo các thông tin nhạy cảm hoặc không cần thiết như siêu dữ liệu, chú thích, JavaScript, hoặc nội dung riêng tư được loại bỏ hoặc chuyển đổi.

public static ResultContainer Sanitize(SanitizeOptions options)

Parameters

  • options SanitizeOptions: Đối tượng tùy chọn chứa các chỉ dẫn cho thao tác.

Returns

ResultContainer : Đối tượng chứa kết quả của thao tác.

Examples

Ví dụ minh họa cách Sanitize tài liệu PDF.

// Create SanitizeOptions object to set input and output files
var options = new SanitizeOptions("path_to_your_pdf_file.pdf", "path_to_result_pdf_file.pdf");
// Perform the process
PdfSecurity.Sanitize(options);

Ví dụ minh họa cách Sanitize PDF từ luồng tới luồng.

// Prepare input and output streams
using var inputStream = File.OpenRead("path_to_your_pdf_file.pdf");
using var outputStream = new MemoryStream();
// Create SanitizeOptions object to set input and output streams
var options = new SanitizeOptions(inputStream, outputStream);
// Perform the process
PdfSecurity.Sanitize(options);

Ví dụ minh họa cách Sanitize PDF từ tệp tới luồng.

// Prepare output stream
using var outputStream = new MemoryStream();
// Create SanitizeOptions object to set input and output streams
var options = new SanitizeOptions("path_to_your_pdf_file.pdf", outputStream);
// Perform the process
PdfSecurity.Sanitize(options);

Ví dụ minh họa cách Sanitize PDF từ tệp tới luồng với việc thiết lập thủ công các thuộc tính input và output.

// Create SanitizeOptions object
var options = new SanitizeOptions();
//Set Input file
options.Input = new FileData("path_to_your_pdf_file.pdf");
//Set Output file
options.Output = new FileData("path_to_result_pdf_file.pdf");
// Perform the process
PdfSecurity.Sanitize(options);

Ví dụ minh họa cách Sanitize PDF mà không loại bỏ Metadata.

// Create SanitizeOptions object to set input and output files
var options = new SanitizeOptions("path_to_your_pdf_file.pdf", "path_to_result_pdf_file.pdf");
options.RemoveMetadata = false;
// Perform the process
PdfSecurity.Sanitize(options);

Ví dụ minh họa cách Sanitize PDF mà không loại bỏ Attachments.

// Create SanitizeOptions object to set input and output files
var options = new SanitizeOptions("path_to_your_pdf_file.pdf", "path_to_result_pdf_file.pdf");
options.RemoveAttachments = false;
// Perform the process
PdfSecurity.Sanitize(options);

Ví dụ minh họa cách Sanitize PDF đồng thời chuyển đổi tất cả các trang thành ảnh và thiết lập DPI kết quả.

// Create SanitizeOptions object to set input and output files
var options = new SanitizeOptions("path_to_your_pdf_file.pdf", "path_to_result_pdf_file.pdf");
// Turn on conversion and set dpi
options.ConvertPagesToImages = true;
options.ImageDpi = 200;
// Perform the process
PdfSecurity.Sanitize(options);

Ví dụ minh họa cách Sanitize PDF mà không loại bỏ JavaScripts và Actions.

// Create SanitizeOptions object to set input and output files
var options = new SanitizeOptions("path_to_your_pdf_file.pdf", "path_to_result_pdf_file.pdf");
options.RemoveJavaScriptsAndActions = false;
// Perform the process
PdfSecurity.Sanitize(options);

Ví dụ minh họa cách Sanitize PDF theo phong cách ngắn gọn nhất.

// Perform the process
PdfSecurity.Sanitize(new SanitizeOptions("path_to_your_pdf_file.pdf", "path_to_result_pdf_file.pdf"));

Exceptions

ArgumentException

Nếu không thiết lập options.

Sign(SignOptions)

Ký tài liệu PDF bằng chữ ký số.

public static ResultContainer Sign(SignOptions options)

Parameters

  • options SignOptions: Đối tượng tùy chọn chứa các chỉ dẫn cho thao tác.

Returns

ResultContainer : Đối tượng chứa kết quả của thao tác.

Examples

Ví dụ minh họa cách Sign tài liệu PDF.

// Create SignOptions object to set instructions
var options = new SignOptions("path_to_your_pfx_file.pfx", "password_of_your_pfx_file");
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfSecurity.Sign(options);

Ví dụ minh họa cách Sign tài liệu PDF với Stream của tệp PFX.

using var pfxStream = File.OpenRead(@"path_to_your_pfx_file.pfx");
var options = new SignOptions(pfxStream, "password_of_your_pfx_file");
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfSecurity.Sign(options);

Ví dụ minh họa cách Sign PDF với chữ ký không hiển thị.

var options = new SignOptions("path_to_your_pfx_file.pfx", "password_of_your_pfx_file");
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Configure invisible signature
signOptions.Visible = false;
// Perform the process
PdfSecurity.Sign(options);

Ví dụ minh họa cách Sign PDF với các tùy chọn bổ sung.

// Create SignOptions object to set instructions
var options = new SignOptions("path_to_your_pfx_file.pfx", "password_of_your_pfx_file");
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Optional parameters
options.Reason = "my Reason";
options.Contact = "my Contact";
options.Location = "my Location";
options.PageNumber = 3;
// Perform the process
PdfSecurity.Sign(options);

Ví dụ minh họa cách Sign PDF với Timestamp.

// Create SignOptions object to set instructions
var options = new SignOptions("path_to_your_pfx_file.pfx", "password_for_your_pfx_file");
options.TimestampOptions = new TimestampOptions("server_url");
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
PdfSecurity.Sign(options);

Exceptions

ArgumentException

Nếu không thiết lập options.

Namespace: Documentize Assembly: Documentize.dll

Class PdfToDocOptions

Thông tin

Biểu diễn các tùy chọn chuyển đổi PDF sang DOC cho plugin Documentize.PdfConverter.

public sealed class PdfToDocOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsPdfToDocOptions

Implements

Inherited Members

Constructors

PdfToDocOptions()

Khởi tạo một thể hiện mới của đối tượng Documentize.PdfToDocOptions với các tùy chọn mặc định.

public PdfToDocOptions()

Properties

Mode

Cho phép kiểm soát cách tài liệu PDF được chuyển đổi thành tài liệu xử lý văn bản.

public DocConversionMode Mode { get; set; }

Property Value

DocConversionMode

Remarks

Sử dụng chế độ Documentize.DocConversionMode.TextBox khi tài liệu kết quả sẽ không được chỉnh sửa nhiều. Các hộp văn bản dễ sửa đổi khi không có nhiều công việc cần thực hiện.

Sử dụng chế độ Documentize.DocConversionMode.Flow khi tài liệu đầu ra cần được chỉnh sửa thêm. Các đoạn văn và dòng văn bản trong chế độ Flow cho phép sửa đổi dễ dàng, nhưng các đối tượng định dạng không được hỗ trợ sẽ trông kém hơn so với chế độ Documentize.DocConversionMode.TextBox.

Namespace: Documentize Assembly: Documentize.dll

Class PdfToHtmlOptions

Thông tin

Đại diện cho các tùy chọn chuyển đổi PDF sang HTML cho Documentize.PdfConverter plugin.

public sealed class PdfToHtmlOptions : PluginBaseOptions, IPluginOptions

Kế thừa

objectPluginBaseOptionsPdfToHtmlOptions

Thực thi

Các thành viên được kế thừa

Các hàm khởi tạo

PdfToHtmlOptions(SaveDataType)

Khởi tạo một thể hiện mới của đối tượng Documentize.PdfToHtmlOptions cho loại dữ liệu đầu ra được chỉ định.

public PdfToHtmlOptions(PdfToHtmlOptions.SaveDataType outputDataType = SaveDataType.FileWithExternalResources)

Tham số

Thuộc tính

OutputDataType

Lấy loại dữ liệu đầu ra.

public PdfToHtmlOptions.SaveDataType OutputDataType { get; }

Giá trị thuộc tính

PdfToHtmlOptions.SaveDataType

Namespace: Documentize Assembly: Documentize.dll

Class PdfToJpegOptions

Thông tin

Đại diện cho các tùy chọn chuyển PDF sang JPEG cho plugin Documentize.PdfConverter.

public sealed class PdfToJpegOptions : PluginBaseOptions, IPluginOptions

Kế thừa

objectPluginBaseOptionsPdfToJpegOptions

Thực hiện

Thành viên kế thừa

Hàm khởi tạo

PdfToJpegOptions()

Khởi tạo một thể hiện mới của đối tượng Documentize.PdfToJpegOptions.

public PdfToJpegOptions()

Thuộc tính

OutputResolution

Lấy hoặc đặt giá trị độ phân giải của các hình ảnh kết quả.

public int OutputResolution { get; set; }

Giá trị thuộc tính

int

PageList

Lấy hoặc đặt danh sách các trang cho quá trình.

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

Giá trị thuộc tính

List<int>

Quality

Lấy và đặt chất lượng đầu ra.
Xác định mức độ nén cho một hình ảnh.
Phạm vi các giá trị hữu ích cho chất lượng là từ 0 đến 100.
Số càng thấp, mức nén càng cao và do đó chất lượng hình ảnh càng thấp.
Số 0 sẽ cho bạn hình ảnh có chất lượng thấp nhất và 100 là cao nhất.

public int Quality { get; set; }

Giá trị thuộc tính

int

Không gian tên: Documentize
Lắp ráp: Documentize.dll

Class PdfToPdfAOptions

Thông tin

Đại diện cho các tùy chọn chuyển đổi tài liệu PDF sang định dạng PDF/A với plugin Documentize.PdfConverter.

public sealed class PdfToPdfAOptions : PdfAOptionsBase, IPluginOptions

Kế thừa

objectPdfAOptionsBasePdfToPdfAOptions

Thực hiện

Thành viên kế thừa

Hàm khởi tạo

PdfToPdfAOptions()

public PdfToPdfAOptions()

Thuộc tính

Outputs

Lấy tập hợp các mục tiêu đã thêm (nguồn dữ liệu tệp hoặc luồng) để lưu kết quả hoạt động.

public List<idata> Outputs { get; }

Giá trị Thuộc tính

List<IData>

Phương thức

AddOutput(IData)

Thêm mục tiêu lưu kết quả mới.

public void AddOutput(IData data)

Tham số

  • data IData: Mục tiêu (nguồn dữ liệu tệp hoặc luồng) để lưu kết quả hoạt động. :

Không gian tên: Documentize
Tập tin lắp ráp: Documentize.dll

Class PdfToPngOptions

Thông tin

Đại diện cho các tùy chọn chuyển đổi PDF sang PNG cho plugin Documentize.PdfConverter.

public sealed class PdfToPngOptions : PluginBaseOptions, IPluginOptions

Kế thừa

objectPluginBaseOptionsPdfToPngOptions

Thực hiện

Thành viên kế thừa

Hàm khởi tạo

PdfToPngOptions()

Khởi tạo một thể hiện mới của đối tượng Documentize.PdfToPngOptions.

public PdfToPngOptions()

Thuộc tính

OutputResolution

Lấy hoặc đặt giá trị độ phân giải của các hình ảnh kết quả.

public int OutputResolution { get; set; }

Giá trị thuộc tính

int

PageList

Lấy hoặc đặt danh sách các trang cho quá trình.

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

Giá trị thuộc tính

List<int>

Không gian tên: Documentize Tập tin lắp ráp: Documentize.dll

Class PdfToTiffOptions

Thông tin

Đại diện cho các tùy chọn bộ chuyển đổi PDF sang TIFF cho plugin Documentize.PdfConverter.

public sealed class PdfToTiffOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsPdfToTiffOptions

Implements

Inherited Members

Constructors

PdfToTiffOptions()

Khởi tạo một thể hiện mới của đối tượng Documentize.PdfToTiffOptions.

public PdfToTiffOptions()

Properties

ColorDepth

Lấy hoặc đặt Độ sâu màu.

public TiffColorDepth ColorDepth { get; set; }

Property Value

TiffColorDepth

Remarks

Giá trị mặc định là Documentize.TiffColorDepth.Format32bpp.

Compression

Lấy hoặc đặt kiểu nén.

public TiffCompression Compression { get; set; }

Property Value

TiffCompression

Remarks

Giá trị mặc định là Documentize.TiffCompression.LZW.

MultiPage

Lấy và đặt cờ cho phép lưu tất cả các trang trong một tiff đa trang. Giá trị mặc định là false.

public bool MultiPage { get; set; }

Property Value

bool

OutputResolution

Lấy hoặc đặt giá trị độ phân giải của các hình ảnh kết quả.

public int OutputResolution { get; set; }

Property Value

int

PageList

Lấy hoặc đặt danh sách các trang cho quá trình xử lý.

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

Property Value

List<int>

Namespace: Documentize Assembly: Documentize.dll

Class PdfToXlsOptions

Thông tin

Đại diện cho các tùy chọn chuyển đổi PDF sang XLS/XLSX cho plugin Documentize.PdfConverter.

public sealed class PdfToXlsOptions : PluginBaseOptions, IPluginOptions

Kế thừa

objectPluginBaseOptionsPdfToXlsOptions

Thực hiện

Thành viên kế thừa

Hàm tạo

PdfToXlsOptions()

Khởi tạo một thể hiện mới của đối tượng Documentize.PdfToXlsOptions với các tùy chọn mặc định.

public PdfToXlsOptions()

Thuộc tính

Format

Định dạng đầu ra.

public PdfToXlsOptions.ExcelFormat Format { get; set; }

Giá trị thuộc tính

PdfToXlsOptions.ExcelFormat

InsertBlankColumnAtFirst

Đặt là true nếu bạn cần chèn cột trống làm cột đầu tiên của bảng tính. Giá trị mặc định là false; có nghĩa là cột trống sẽ không được chèn.

public bool InsertBlankColumnAtFirst { get; set; }

Giá trị thuộc tính

bool

MinimizeTheNumberOfWorksheets

Đặt là true nếu bạn cần giảm thiểu số lượng bảng tính trong workbook kết quả. Giá trị mặc định là false; có nghĩa là mỗi trang PDF sẽ được lưu dưới dạng bảng tính riêng biệt.

public bool MinimizeTheNumberOfWorksheets { get; set; }

Giá trị thuộc tính

bool

Không gian tên: Documentize Tập hợp: Documentize.dll

Class PluginBaseOptions

Thông tin

Đại diện cho các tùy chọn cơ bản cho các thành phần.

public class PluginBaseOptions : IPluginOptions

Kế thừa

objectPluginBaseOptions

Các lớp kế thừa

Thực hiện

Các thành viên kế thừa

Thuộc tính

CloseInputStreams

Đóng các luồng đầu vào sau khi thao tác hoàn tất.

public bool CloseInputStreams { get; set; }

Giá trị thuộc tính

bool

CloseOutputStreams

Đóng các luồng đầu ra sau khi thao tác hoàn tất.

public bool CloseOutputStreams { get; set; }

Giá trị thuộc tính

bool

Inputs

Trả về dữ liệu Inputs cho thao tác.

public List<idata> Inputs { get; }

Giá trị thuộc tính

List<IData>

Outputs

Trả về dữ liệu Outputs cho thao tác.

public List<idata> Outputs { get; }

Giá trị thuộc tính

List<IData>

Phương thức

AddInput(IData)

Thêm dữ liệu mới vào Inputs.

public void AddInput(IData data)

Tham số

  • data IData: Dữ liệu cần thêm.

AddOutput(IData)

Thêm dữ liệu mới vào Outputs.

public void AddOutput(IData data)

Tham số

  • data IData: Dữ liệu cần thêm. :

Namespace: Documentize Assembly: Documentize.dll

Class PngConverter

Thông tin

Đại diện cho plugin Documentize.PngConverter. Được sử dụng để chuyển đổi tài liệu PDF thành định dạng PNG.

[Obsolete("The class will be deleted soon. Please use PdfConverter class.")]
public static class PngConverter

Kế thừa

objectPngConverter

Các thành viên được kế thừa

Phương thức

Process(PdfToPngOptions)

Chuyển đổi tài liệu PDF thành định dạng PNG.

public static ResultContainer Process(PdfToPngOptions options)

Tham số

  • options PdfToPngOptions: Một đối tượng tùy chọn chứa hướng dẫn cho hoạt động.

Trả về

ResultContainer : Một đối tượng chứa kết quả của hoạt động.

Ngoại lệ

ArgumentException

Nếu tùy chọn không được thiết lập.

Namespace: Documentize Assembly: Documentize.dll

Class Rectangle

Thông tin

Class đại diện cho hình chữ nhật.

public class Rectangle

Kế thừa

objectRectangle

Các thành viên được kế thừa

Các hàm khởi tạo

Rectangle(double, double, double, double)

Hàm khởi tạo của Rectangle.

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

Tham số

  • llx double: X của góc dưới bên trái.
  • lly double: Y của góc dưới bên trái.
  • urx double: X của góc trên bên phải.
  • ury double: Y của góc trên bên phải.

Namespace: Documentize Assembly: Documentize.dll

Class RemoveFieldsOptions

Thông tin

Biểu diễn các tùy chọn cho việc xóa trường trong tài liệu bằng plugin Documentize.PdfForm.

public class RemoveFieldsOptions : PluginBaseOptions, IPluginOptions

Kế thừa

objectPluginBaseOptionsRemoveFieldsOptions

Triển khai

Thành viên kế thừa

Hàm khởi tạo

RemoveFieldsOptions()

Khởi tạo một thể hiện mới của đối tượng Documentize.RemoveFieldsOptions với các tùy chọn mặc định.

public RemoveFieldsOptions()

Namespace: Documentize Assembly: Documentize.dll

Class ResizeOptions

Thông tin

Mô tả các tùy chọn Resize cho plugin Documentize.PdfManager.

public sealed class ResizeOptions : PluginBaseOptions, IPluginOptions

Kế thừa

objectPluginBaseOptionsResizeOptions

Thực hiện

Thành viên kế thừa

Hàm tạo

ResizeOptions()

Khởi tạo một thể hiện mới của đối tượng Documentize.ResizeOptions với các tùy chọn mặc định.

public ResizeOptions()

Thuộc tính

PageSize

Lấy hoặc đặt kích thước trang mới.

public PageSize PageSize { get; set; }

Giá trị thuộc tính

PageSize

Namespace: Documentize Assembly: Documentize.dll

Class ResultContainer

Thông tin

Đại diện cho container chứa tập hợp kết quả của quá trình xử lý plugin.

public class ResultContainer

Kế thừa

objectResultContainer

Các thành viên kế thừa

Thuộc tính

ResultCollection

Lấy tập hợp kết quả của các phép toán

public List<ioperationresult> ResultCollection { get; }

Giá trị thuộc tính

List<IOperationResult>

Namespace: Documentize Assembly: Documentize.dll

Class RotateOptions

Thông tin

Đại diện cho các tùy chọn xoay cho Documentize.PdfManager plugin.

public sealed class RotateOptions : PluginBaseOptions, IPluginOptions

Kế thừa

objectPluginBaseOptionsRotateOptions

Thực hiện

Thành viên kế thừa

Hàm khởi tạo

RotateOptions()

Khởi tạo một thể hiện mới của đối tượng Documentize.RotateOptions với các tùy chọn mặc định.

public RotateOptions()

Thuộc tính

Rotation

Lấy hoặc đặt độ xoay của các trang mới.

public Rotation Rotation { get; set; }

Giá trị Thuộc tính

Rotation

Không gian tên: Documentize Tập hợp: Documentize.dll

Class SanitizeOptions

public class SanitizeOptions : OptionsWithInputAndOutput, IHaveInput

Inheritance

objectOptionsWithInputOptionsWithInputAndOutputSanitizeOptions

Implements

Inherited Members

Constructors

SanitizeOptions()

Khởi tạo một thể hiện mới của đối tượng Documentize.SanitizeOptions với các tùy chọn mặc định.

public SanitizeOptions()

SanitizeOptions(IData, IData)

Khởi tạo một thể hiện mới của đối tượng Documentize.SanitizeOptions với dữ liệu đầu vào đã chỉ định.

public SanitizeOptions(IData inputData, IData outputData = null)

Parameters

  • inputData IData: Dữ liệu đầu vào.
  • outputData IData: Dữ liệu đầu ra.

SanitizeOptions(string, string)

Khởi tạo một thể hiện mới của đối tượng Documentize.SanitizeOptions với các tệp đầu vào và đầu ra đã chỉ định.

public SanitizeOptions(string inputFile, string outputFile)

Parameters

  • inputFile string: Đường dẫn tệp đầu vào.
  • outputFile string: Đường dẫn tệp đầu ra.

SanitizeOptions(Stream, Stream)

Khởi tạo một thể hiện mới của đối tượng Documentize.SanitizeOptions với các luồng đầu vào và đầu ra đã chỉ định.

public SanitizeOptions(Stream inputStream, Stream outputStream)

Parameters

  • inputStream Stream: Luồng đầu vào.
  • outputStream Stream: Luồng đầu ra.

SanitizeOptions(string, Stream)

Khởi tạo một thể hiện mới của đối tượng Documentize.SanitizeOptions với tệp đầu vào và luồng đầu ra đã chỉ định.

public SanitizeOptions(string inputFile, Stream outputStream)

Parameters

  • inputFile string: Đường dẫn tệp đầu vào.
  • outputStream Stream: Luồng đầu ra.

SanitizeOptions(Stream, string)

Khởi tạo một thể hiện mới của đối tượng Documentize.SanitizeOptions với luồng đầu vào và tệp đầu ra đã chỉ định.

public SanitizeOptions(Stream inputStream, string outputFile)

Parameters

  • inputStream Stream: Luồng đầu vào.
  • outputFile string: Đường dẫn tệp đầu ra.

Properties

ConvertPagesToImages

Lấy hoặc đặt tùy chọn chuyển các trang thành hình ảnh. Việc chuyển trang sang hình ảnh sẽ diễn ra sau khi xóa dữ liệu ẩn chính, được điều khiển bởi các tùy chọn khác.

public bool ConvertPagesToImages { get; set; }

Property Value

bool

FlattenForms

Lấy hoặc đặt giá trị cho biết có nên làm phẳng các biểu mẫu trong tài liệu trong quá trình làm sạch hay không. Việc làm phẳng biểu mẫu sẽ biến các trường biểu mẫu tương tác thành nội dung tĩnh, giúp chúng không thể chỉnh sửa hoặc điền vào được.

public bool FlattenForms { get; set; }

Property Value

bool

FlattenLayers

Lấy hoặc đặt tùy chọn làm phẳng các lớp trong tài liệu PDF. Khi bật, tất cả các lớp trong tài liệu sẽ được hợp nhất thành một lớp duy nhất, loại bỏ cấu trúc riêng biệt của chúng. Tùy chọn này hữu ích cho việc làm sạch tài liệu bằng cách đơn giản hoá nội dung và đảm bảo không có dữ liệu ẩn nằm trong các lớp.

public bool FlattenLayers { get; set; }

Property Value

bool

ImageDpi

Lấy hoặc đặt tùy chọn xác định độ phân giải ảnh trang khi chuyển trang sang hình ảnh. Thuộc tính này có hiệu lực nếu thuộc tính Documentize.SanitizeOptions.ConvertPagesToImages là true .

public int ImageDpi { get; set; }

Property Value

int

Input

Lấy hoặc đặt Dữ liệu Đầu vào.

public override IData Input { get; set; }

Property Value

IData

Output

Lấy hoặc đặt Dữ liệu Đầu ra.

public override IData Output { get; set; }

Property Value

IData

RemoveAnnotations

Lấy hoặc đặt giá trị cho biết có nên xóa các chú thích khỏi tài liệu hay không. Khi bật, tất cả các chú thích trong tài liệu sẽ bị xóa trong quá trình làm sạch. Các chú thích bị che sẽ được áp dụng.

public bool RemoveAnnotations { get; set; }

Property Value

bool

RemoveAttachments

Lấy hoặc đặt tùy chọn loại bỏ tất cả các tệp đính kèm khỏi tài liệu. Khi bật, nó sẽ đảm bảo bất kỳ tệp đính kèm nào trong PDF đều bị xóa trong quá trình làm sạch.

public bool RemoveAttachments { get; set; }

Property Value

bool

RemoveJavaScriptsAndActions

Lấy hoặc đặt giá trị cho biết có nên xóa JavaScript và các hành động liên quan khỏi tài liệu hay không. Tùy chọn này hữu ích để loại bỏ các lỗ hổng bảo mật tiềm năng do tập lệnh nhúng gây ra.

public bool RemoveJavaScriptsAndActions { get; set; }

Property Value

bool

RemoveMetadata

Lấy hoặc đặt tùy chọn xóa siêu dữ liệu khỏi tài liệu. Nếu đặt true, các siêu dữ liệu như thuộc tính tài liệu và thông tin siêu dữ liệu nhúng khác sẽ bị xóa trong quá trình làm sạch.

public bool RemoveMetadata { get; set; }

Property Value

bool

RemoveSearchIndexAndPrivateInfo

Lấy hoặc đặt giá trị cho biết có nên xóa chỉ mục tìm kiếm và thông tin riêng tư khỏi tài liệu hay không. Kích hoạt việc xóa các chỉ mục tìm kiếm nhúng và dữ liệu riêng tư để tăng cường bảo mật và riêng tư cho tài liệu.

public bool RemoveSearchIndexAndPrivateInfo { get; set; }

Property Value

bool

Namespace: Documentize Assembly: Documentize.dll

Class Security

Thông tin

Đại diện cho plugin Documentize.Security. Sử dụng để mã hóa và giải mã tài liệu PDF.

[Obsolete("Lớp này sẽ bị xóa sớm. Vui lòng sử dụng lớp PdfSecurity.")]
public static class Security

Kế thừa

objectSecurity

Các thành viên kế thừa

Phương thức

Process(EncryptOptions)

Mã hóa tài liệu PDF.

public static ResultContainer Process(EncryptOptions options)

Tham số

  • options EncryptOptions: Một đối tượng tùy chọn chứa hướng dẫn cho thao tác.

Trả về

ResultContainer : Một đối tượng chứa kết quả của thao tác.

Ngoại lệ

ArgumentException

Nếu tùy chọn chưa được thiết lập.

Process(DecryptOptions)

Giải mã tài liệu PDF.

public static ResultContainer Process(DecryptOptions options)

Tham số

  • options DecryptOptions: Một đối tượng tùy chọn chứa hướng dẫn cho thao tác.

Trả về

ResultContainer : Một đối tượng chứa kết quả của thao tác.

Ngoại lệ

ArgumentException

Nếu tùy chọn chưa được thiết lập.

Namespace: Documentize Assembly: Documentize.dll

Class Signature

Thông tin

Đại diện cho plugin Documentize.Signature. Sử dụng để ký tài liệu PDF.

[Obsolete("Lớp này sẽ bị xóa sớm. Vui lòng sử dụng lớp PdfSecurity.")]
public static class Signature

Kế thừa

objectSignature

Các thành viên kế thừa

Phương thức

Process(SignOptions)

Ký tài liệu PDF.

public static ResultContainer Process(SignOptions options)

Tham số

  • options SignOptions: Một đối tượng tùy chọn chứa hướng dẫn cho hoạt động.

Trả về

ResultContainer : Một đối tượng chứa kết quả của hoạt động.

Ngoại lệ

ArgumentException

Nếu tùy chọn không được thiết lập.

Namespace: Documentize Assembly: Documentize.dll

Class SignOptions

Thông tin

Biểu thị các tùy chọn ký cho plugin Documentize.PdfSecurity.

public sealed class SignOptions : PluginBaseOptions, IPluginOptions

Kế thừa

objectPluginBaseOptionsSignOptions

Thực hiện

Thành viên kế thừa

Các hàm khởi tạo

SignOptions(string, string)

Khởi tạo một thể hiện mới của đối tượng Documentize.SignOptions với các tùy chọn mặc định.

public SignOptions(string pfx, string password)

Tham số

  • pfx string: Đường dẫn tới tệp pfx.
  • password string: Mật khẩu của tệp pfx.

SignOptions(Stream, string)

Khởi tạo một thể hiện mới của đối tượng Documentize.SignOptions với các tùy chọn mặc định.

public SignOptions(Stream pfx, string password)

Tham số

  • pfx Stream: Luồng chứa tệp pfx.
  • password string: Mật khẩu của tệp pfx.

Thuộc tính

Contact

Thông tin liên hệ của chữ ký.

public string Contact { get; set; }

Giá trị Thuộc tính

string

Location

Vị trí của chữ ký.

public string Location { get; set; }

Giá trị Thuộc tính

string

Name

Tên của trường chữ ký hiện có.
Null để tạo trường mới.

public string Name { get; set; }

Giá trị Thuộc tính

string

PageNumber

Số trang mà chữ ký được đặt.

public int PageNumber { get; set; }

Giá trị Thuộc tính

int

Reason

Lý do của chữ ký.

public string Reason { get; set; }

Giá trị Thuộc tính

string

Rectangle

Hình chữ nhật của chữ ký.

public Rectangle Rectangle { get; set; }

Giá trị Thuộc tính

Rectangle

TimestampOptions

Các tùy chọn thời gian ký.

public TimestampOptions TimestampOptions { get; set; }

Giá trị Thuộc tính

TimestampOptions

Visible

Khả năng hiển thị của chữ ký.

public bool Visible { get; set; }

Giá trị Thuộc tính

bool

Namespace: Documentize
Assembly: Documentize.dll

Class SplitOptions

Thông tin

Biểu thị các tùy chọn Split cho plugin Documentize.PdfManager.

public sealed class SplitOptions : PluginBaseOptions, IPluginOptions

Kế thừa

objectPluginBaseOptionsSplitOptions

Thực hiện

Thành viên kế thừa

Hàm khởi tạo

SplitOptions()

Khởi tạo một thể hiện mới của đối tượng Documentize.SplitOptions với các tùy chọn mặc định.

public SplitOptions()

Không gian tên: Documentize Assembly: Documentize.dll

Class Splitter

Thông tin

Đại diện cho plugin Documentize.Splitter. Được sử dụng để chia tách tài liệu PDF thành các trang riêng biệt.

[Obsolete("The class will be deleted soon. Please use PdfManager class.")]
public static class Splitter

Inheritance

objectSplitter

Inherited Members

Methods

Process(SplitOptions)

Chia tách tài liệu PDF theo trang.

public static ResultContainer Process(SplitOptions options)

Parameters

  • options SplitOptions: Một đối tượng tùy chọn chứa hướng dẫn cho thao tác.

Returns

ResultContainer : Một đối tượng chứa kết quả của thao tác.

Exceptions

ArgumentException

Nếu tùy chọn không được thiết lập.

Namespace: Documentize Assembly: Documentize.dll

Class StreamData

Thông tin

Biểu diễn dữ liệu luồng cho các hoạt động tải và lưu.

public sealed class StreamData : IData

Kế thừa

objectStreamData

Thực hiện

Thành viên kế thừa

Hàm khởi tạo

StreamData(Stream)

Khởi tạo nguồn dữ liệu luồng mới với đối tượng stream được chỉ định.

public StreamData(Stream data)

Tham số

Thuộc tính

Data

Lấy đối tượng stream của nguồn dữ liệu hiện tại.

public Stream Data { get; }

Giá trị Thuộc tính

Stream

DataType

Kiểu dữ liệu (stream).

public DataType DataType { get; }

Giá trị Thuộc tính

DataType

Không gian tên: Documentize Tập tin thực thi: Documentize.dll

Class StreamDataSource

Thông tin

Đại diện cho nguồn dữ liệu luồng cho các thao tác tải và lưu của một plugin.

public sealed class StreamDataSource : IDataSource

Kế thừa

objectStreamDataSource

Thực thi

Các thành viên kế thừa

Các hàm khởi tạo

StreamDataSource(Stream)

Khởi tạo nguồn dữ liệu luồng mới với đối tượng luồng được chỉ định.

public StreamDataSource(Stream data)

Tham số

  • data Stream: Đối tượng luồng

Các thuộc tính

Data

Nhận đối tượng luồng của nguồn dữ liệu hiện tại.

public Stream Data { get; }

Giá trị thuộc tính

Stream

DataType

Loại nguồn dữ liệu (luồng).

public DataType DataType { get; }

Giá trị thuộc tính

DataType

Namespace: Documentize Assembly: Documentize.dll

Class StreamResult

Thông tin

Đại diện cho kết quả hoạt động dưới dạng Stream.

public sealed class StreamResult : IOperationResult

Kế thừa

objectStreamResult

Thực hiện

Thành viên kế thừa

Thuộc tính

Data

Nhận dữ liệu thô.

public object Data { get; }

Giá trị thuộc tính

object

IsFile

Chỉ ra xem kết quả có phải là đường dẫn đến tệp xuất hay không.

public bool IsFile { get; }

Giá trị thuộc tính

bool

IsStream

Chỉ ra xem kết quả có phải là một đối tượng Stream hay không.

public bool IsStream { get; }

Giá trị thuộc tính

bool

IsString

Chỉ ra xem kết quả có phải là một chuỗi hay không.

public bool IsString { get; }

Giá trị thuộc tính

bool

Phương thức

ToFile()

Cố gắng chuyển đổi kết quả thành một tệp.

public string ToFile()

Trả về

string : Một chuỗi đại diện cho đường dẫn đến tệp xuất nếu kết quả là tệp; ngược lại null.

ToStream()

Cố gắng chuyển đổi kết quả thành một đối tượng stream.

public Stream ToStream()

Trả về

Stream : Một đối tượng stream đại diện cho dữ liệu đầu ra nếu kết quả là stream; ngược lại null.

Namespace: Documentize Assembly: Documentize.dll

Class StringResult

Thông tin

Đại diện cho kết quả hoạt động dưới dạng chuỗi.

public sealed class StringResult : IOperationResult

Kế thừa

objectStringResult

Thực hiện

Thành viên được kế thừa

Thuộc tính

Dữ liệu

Lấy dữ liệu thô.

public object Data { get; }

Giá trị thuộc tính

object

IsFile

Chỉ định liệu kết quả có phải là một đường dẫn đến tệp đầu ra hay không.

public bool IsFile { get; }

Giá trị thuộc tính

bool

IsStream

Chỉ định liệu kết quả có phải là một đường dẫn đến tệp đầu ra hay không.

public bool IsStream { get; }

Giá trị thuộc tính

bool

IsString

Chỉ định liệu kết quả có phải là một chuỗi hay không.

public bool IsString { get; }

Giá trị thuộc tính

bool

Văn bản

Trả về đại diện chuỗi của kết quả.

public string Text { get; }

Giá trị thuộc tính

string

Phương thức

ToFile()

Cố gắng chuyển đổi kết quả thành một tệp.

public string ToFile()

Trả về

string : Một chuỗi đại diện cho đường dẫn đến tệp đầu ra nếu kết quả là tệp; nếu không trả về null.

ToStream()

Cố gắng chuyển đổi kết quả thành một đối tượng stream.

public Stream ToStream()

Trả về

Stream : Một đối tượng stream đại diện cho dữ liệu đầu ra nếu kết quả là stream; nếu không trả về null.

ToString()

Cố gắng chuyển đổi kết quả thành một chuỗi.

public override string ToString()

Trả về

string : Một chuỗi đại diện cho nội dung văn bản nếu kết quả là chuỗi; nếu không trả về base.ToString().

Namespace: Documentize Assembly: Documentize.dll

Class TableBuilder

Thông tin

Lớp đại diện cho builder cho bảng trong trang pdf.

public class TableBuilder

Kế thừa

objectTableBuilder

Kế thừa từ

Các thành viên kế thừa

Phương thức

AddRow()

Thêm một hàng mới vào bảng.

public virtual TableRowBuilder AddRow()

Trả về

TableRowBuilder : Thể hiện của Documentize.TableRowBuilder hiện tại.

AddTable()

Thêm một bảng mới vào tài liệu.

public TableBuilder AddTable()

Trả về

TableBuilder : Thể hiện của Documentize.TableBuilder hiện tại.

InsertPageAfter(int)

Chèn trang sau trang đã chỉ định.

public TableOptions InsertPageAfter(int page)

Tham số

  • page int: Số trang để chèn bảng sau.

Trả về

TableOptions : Thể hiện của Documentize.TableOptions hiện tại.

InsertPageBefore(int)

Chèn trang trước trang đã chỉ định.

public TableOptions InsertPageBefore(int page)

Tham số

  • page int: Số trang để chèn bảng trước.

Trả về

TableOptions : Thể hiện của Documentize.TableOptions hiện tại.

Toán tử

implicit operator TableOptions(TableBuilder)

Chuyển đổi builder Documentize.TableBuilder thành tùy chọn Documentize.TableOptions.

public static implicit operator TableOptions(TableBuilder builder)

Tham số

  • builder TableBuilder: Thể hiện của Documentize.TableBuilder hiện tại.

Trả về

TableOptions : Kết quả của việc chuyển đổi sang PdfGeneratorTableOptions.

Namespace: Documentize Assembly: Documentize.dll

Class TableCellBuilder

Thông tin

Class đại diện cho builder cho ô bảng.

public class TableCellBuilder : TableRowBuilder

Kế thừa

objectTableBuilderTableRowBuilderTableCellBuilder

Các thành phần kế thừa

Phương thức

AddCell()

Thêm ô vào bảng.

public override TableCellBuilder AddCell()

Trả về

TableCellBuilder : Instance của Documentize.TableCellBuilder hiện tại.

AddParagraph(params string[])

Thêm các đoạn vào ô bảng.

public TableCellBuilder AddParagraph(params string[] paragraphs)

Tham số

  • paragraphs string[]: Văn bản cho các đoạn.

Trả về

TableCellBuilder : Instance của Documentize.TableCellBuilder hiện tại.

Namespace: Documentize Assembly: Documentize.dll

Class TableGenerator

Thông tin

Đại diện cho plugin Documentize.TableGenerator. Được sử dụng để thêm bảng vào tài liệu PDF.

Kế thừa

objectTableGenerator

Thành viên kế thừa

Ví dụ

Ví dụ minh họa cách thêm bảng vào tệp PDF.

// Configure table options
var options = 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
options.AddInput(new FileData("path_to_input.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_output.pdf"));
// Perform the process
TableGenerator.Process(options);

Phương thức

Process(TableOptions)

Thêm bảng vào tài liệu PDF.

public static ResultContainer Process(TableOptions options)

Tham số

  • options TableOptions: Đối tượng tùy chọn chứa các hướng dẫn cho thao tác.

Kết quả trả về

ResultContainer : Đối tượng chứa kết quả của thao tác.

Ngoại lệ

ArgumentException

Nếu options chưa được thiết lập.

Không gian tên: Documentize Assembly: Documentize.dll

Class TableOptions

Thông tin

Biểu diễn các tùy chọn để thêm bảng vào tài liệu bằng plugin Documentize.PdfManager.

public sealed class TableOptions : PluginBaseOptions, IPluginOptions

Inheritance

objectPluginBaseOptionsTableOptions

Implements

Inherited Members

Constructors

TableOptions()

Khởi tạo một thể hiện mới của đối tượng Documentize.TableOptions với các tùy chọn mặc định.

public TableOptions()

Methods

AddTable()

Thêm bảng vào tài liệu.

public TableBuilder AddTable()

Returns

TableBuilder : Thể hiện mới của Documentize.TableBuilder.

Create()

Tạo thể hiện của Documentize.TableOptions.

public static TableOptions Create()

Returns

TableOptions : Thể hiện mới của Documentize.TableOptions.

InsertPageAfter(int)

Chèn trang sau trang được chỉ định.

public TableOptions InsertPageAfter(int page)

Parameters

  • page int: Số trang để chèn bảng sau.

Returns

TableOptions : Thể hiện của Documentize.TableOptions hiện tại.

InsertPageBefore(int)

Chèn trang trước trang được chỉ định.

public TableOptions InsertPageBefore(int page)

Parameters

  • page int: Số trang để chèn bảng sau.

Returns

TableOptions : Thể hiện của Documentize.TableOptions hiện tại.

Namespace: Documentize Assembly: Documentize.dll

Class TableRowBuilder

Thông tin

Class đại diện cho builder cho hàng bảng.

public class TableRowBuilder : TableBuilder  

Kế thừa

object
TableBuilder
TableRowBuilder

Kế thừa

Thành viên được kế thừa

Phương thức

AddCell()

Thêm ô vào hàng bảng.

public virtual TableCellBuilder AddCell()  

Trả về

TableCellBuilder : Thể hiện của Documentize.TableCellBuilder đã tạo.

AddRow()

Ghi đè AddRow.

public override TableRowBuilder AddRow()  

Trả về

TableRowBuilder : Thể hiện của Documentize.TableRowBuilder hiện tại.

Namespace: Documentize
Assembly: Documentize.dll

Class TextExtractor

Thông tin

Đại diện cho thành phần Documentize.TextExtractor. Được sử dụng để trích xuất văn bản từ tài liệu PDF.

[Obsolete("The class will be deleted soon. Please use PdfExtractor class.")]
public static class TextExtractor

Inheritance

objectTextExtractor

Inherited Members

Methods

Process(ExtractTextOptions)

Trích xuất văn bản từ tài liệu PDF.

public static string Process(ExtractTextOptions options)

Parameters

  • options ExtractTextOptions: Một đối tượng tùy chọn chứa các hướng dẫn cho hoạt động.

Returns

string : Một đối tượng chứa kết quả của việc trích xuất.

Exceptions

ArgumentException

Nếu tùy chọn không được thiết lập.

Namespace: Documentize Assembly: Documentize.dll

Class TextExtractorOptions

Thông tin

Đại diện cho các tùy chọn trích xuất văn bản cho plugin Documentize.TextExtractor.

public sealed class TextExtractorOptions

Kế thừa

objectTextExtractorOptions

Các thành viên kế thừa

Các hàm khởi tạo

TextExtractorOptions(TextFormattingMode)

Khởi tạo một thể hiện mới của đối tượng Documentize.TextExtractorOptions cho chế độ định dạng văn bản được chỉ định.

public TextExtractorOptions(TextFormattingMode formattingMode = TextFormattingMode.Raw)

Các tham số

Các thuộc tính

FormattingMode

Lấy chế độ định dạng.

public TextFormattingMode FormattingMode { get; set; }

Giá trị thuộc tính

TextFormattingMode

Inputs

Trả về dữ liệu Inputs cho hoạt động.

public List<idatasource> Inputs { get; }

Giá trị thuộc tính

List<IDataSource>

Các phương thức

AddInput(IDataSource)

Thêm dữ liệu mới vào Inputs.

public void AddInput(IDataSource dataSource)

Các tham số

  • dataSource IDataSource: Nguồn dữ liệu cần thêm. :

Namespace: Documentize Assembly: Documentize.dll

Class TiffConverter

Thông tin

Đại diện cho plugin Documentize.TiffConverter. Được sử dụng để chuyển đổi tài liệu PDF sang định dạng TIFF.

[Obsolete("The class will be deleted soon. Please use PdfConverter class.")]
public static class TiffConverter

Inheritance

objectTiffConverter

Inherited Members

Methods

Process(PdfToTiffOptions)

Chuyển đổi tài liệu PDF sang định dạng TIFF.

public static ResultContainer Process(PdfToTiffOptions options)

Parameters

  • options PdfToTiffOptions: Một đối tượng tùy chọn chứa hướng dẫn cho hoạt động.

Returns

ResultContainer : Một đối tượng chứa kết quả của hoạt động.

Exceptions

ArgumentException

Nếu tùy chọn không được thiết lập.

Namespace: Documentize Assembly: Documentize.dll

Class Timestamp

Thông tin

Đại diện cho plugin Documentize.Timestamp. Được sử dụng để thêm Timestamp vào một tài liệu.

[Obsolete("The class will be deleted soon. Please use PdfSecurity class.")]
public static class Timestamp

Inheritance

objectTimestamp

Inherited Members

Methods

Process(AddTimestampOptions)

Bắt đầu xử lý Documentize.Timestamp với các tham số đã chỉ định.

public static ResultContainer Process(AddTimestampOptions options)

Parameters

  • options AddTimestampOptions: Một đối tượng tùy chọn chứa hướng dẫn cho hoạt động.

Returns

ResultContainer : Một đối tượng chứa kết quả của hoạt động.

Exceptions

ArgumentException

Nếu tùy chọn không được thiết lập.

Namespace: Documentize Assembly: Documentize.dll

Class TimestampOptions

public class TimestampOptions

Kế thừa

objectTimestampOptions

Các thành viên được kế thừa

Constructors

TimestampOptions(string, string)

Khởi tạo một thể hiện mới của lớp Documentize.TimestampOptions.

public TimestampOptions(string serverUrl, string basicAuthCredentials = "")

Tham số

  • serverUrl string: Địa chỉ URL của máy chủ timestamp.
  • basicAuthCredentials string: Thông tin xác thực cơ bản, tên người dùng và mật khẩu được kết hợp thành một chuỗi “username:password”.

Properties

BasicAuthCredentials

Lấy/cài đặt thông tin xác thực cơ bản, Tên người dùng và mật khẩu được kết hợp thành một chuỗi “username:password”.

public string BasicAuthCredentials { get; set; }

Giá trị thuộc tính

string

ServerUrl

Lấy/cài đặt địa chỉ URL của máy chủ timestamp.

public string ServerUrl { get; set; }

Giá trị thuộc tính

string

Namespace: Documentize Assembly: Documentize.dll

Class TocGenerator

Thông tin

Biểu diễn plugin Documentize.TocGenerator. Được sử dụng để thêm Mục lục vào tài liệu PDF.

[Obsolete("The class will be deleted soon. Please use PdfManager class.")]
public static class TocGenerator

Kế thừa

objectTocGenerator

Các thành viên kế thừa

Ví dụ

Ví dụ minh họa cách thêm Mục lục vào tệp PDF.

// Create TocOptions object to set instructions
var options = new TocOptions();
// Set the Title
options.Title = "My Table of Contents";
// Design Headings
options.Headings.Add(new TocHeading("Introduction", 2));
options.Headings.Add(new TocHeading("Chapter I", 3));
options.Headings.Add(new TocHeading("Chapter II", 4));
options.Headings.Add(new TocHeading("Chapter III", 5));
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
TocGenerator.Process(options);

Ví dụ minh họa cách thêm Mục lục vào tệp PDF đồng thời tạo bookmark.

// Create TocOptions object to set instructions
var options = new TocOptions();
// Set the Title
options.Title = "My Table of Contents";
// Generate links in bookmarks
options.GenerateBookmarks = true;
// Design Headings
options.Headings.Add(new TocHeading("Introduction", 2, false, 1));
options.Headings.Add(new TocHeading("Chapter I", 3, true, 1));
options.Headings.Add(new TocHeading("Chapter II", 4, true, 1));
options.Headings.Add(new TocHeading("Example A", 4, true, 2));
options.Headings.Add(new TocHeading("Example B", 4, true, 2));
options.Headings.Add(new TocHeading("Example C", 4, true, 2));
options.Headings.Add(new TocHeading("Example D", 4, true, 2));
options.Headings.Add(new TocHeading("Chapter III", 5, true, 1));
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output file path
options.AddOutput(new FileData("path_to_result_pdf_file.pdf"));
// Perform the process
TocGenerator.Process(options);

Ví dụ minh họa cách thêm Mục lục vào tệp PDF và lưu dưới dạng stream.

// Create TocOptions object to set instructions
var options = new TocOptions();
// Set the Title
options.Title = "My Table of Contents";
// Design Headings
options.Headings.Add(new TocHeading("Introduction", 2, false, 1));
// Add input file path
options.AddInput(new FileData("path_to_your_pdf_file.pdf"));
// Set output stream 
var outputStream = new MemoryStream();
options.AddOutput(new StreamData(outputStream));
options.CloseOutputStreams = false;
// Perform the process
TocGenerator.Process(options);

Phương thức

Process(TocOptions)

Bắt đầu xử lý Documentize.TocGenerator với các tham số đã chỉ định.

public static ResultContainer Process(TocOptions options)

Tham số

  • options TocOptions: Đối tượng tùy chọn chứa các hướng dẫn cho hoạt động.

Trả về

ResultContainer : Đối tượng Documentize.ResultContainer chứa kết quả của hoạt động.

Namespace: Documentize Assembly: Documentize.dll

Class TocHeading

Thông tin

Đại diện cho các tùy chọn cho Đầu mục hoặc Tiêu đề của Mục lục để tài liệu bằng plugin Documentize.PdfManager.

public class TocHeading

Kế thừa

objectTocHeading

Các Thành viên Kế thừa

Các Bộ Xây Dựng

TocHeading(string, int, bool, int)

Khởi tạo một thể hiện mới của Documentize.TocHeading.

public TocHeading(string text = "", int pageNumber = 1, bool generateNumbering = false, int level = 1)

Tham số

  • text string: Nội dung của Đầu mục.
  • pageNumber int: Số trang cho liên kết.
  • generateNumbering bool: Sử dụng tạo số.
  • level int: Cấp độ.

Các Thuộc Tính

GenerateNumbering

Sử dụng tạo số. Nếu true, thì việc đánh số sẽ tự động; nếu không, việc đánh số sẽ được thực hiện thủ công.

public bool GenerateNumbering { get; set; }

Giá Trị Thuộc Tính

bool

Level

Cấp độ. Được sử dụng cho việc tạo số.

public int Level { get; set; }

Giá Trị Thuộc Tính

int

PageNumber

Số trang cho liên kết.

public int PageNumber { get; set; }

Giá Trị Thuộc Tính

int

Text

Nội dung của Tiêu đề.

public string Text { get; set; }

Giá Trị Thuộc Tính

string

Namespace: Documentize Assembly: Documentize.dll

Class TocOptions

Thông tin

Đại diện cho các tùy chọn để thêm mục lục vào tài liệu bằng plugin Documentize.PdfManager.

public sealed class TocOptions : PluginBaseOptions, IPluginOptions

Kế thừa

objectPluginBaseOptionsTocOptions

Thực hiện

Thành viên được kế thừa

Hàm tạo

TocOptions()

Khởi tạo một thể hiện mới của đối tượng Documentize.TocOptions với các tùy chọn mặc định.

public TocOptions()

Thuộc tính

GenerateBookmarks

Sử dụng việc tạo Bookmarks.
Nếu đặt true thì Bookmarks sẽ được xóa và tạo lại dựa trên Headings; nếu không, Bookmarks sẽ không thay đổi.

public bool GenerateBookmarks { get; set; }

Giá trị thuộc tính

bool

Headings

Các tiêu đề hoặc tiêu đề của mục lục.

public List<tocheading> Headings { get; set; }

Giá trị thuộc tính

List<TocHeading>

Title

Tiêu đề của mục lục.

public string Title { get; set; }

Giá trị thuộc tính

string

Namespace: Documentize Assembly: Documentize.dll

Class Usage

Thông tin

Thống kê sử dụng cho yêu cầu hoàn thành.

public class Usage

Kế thừa

objectUsage

Các thành viên được kế thừa

Các hàm tạo

Usage()

public Usage()

Các thuộc tính

CompletionTokens

Số lượng token trong phần hoàn thành được tạo ra.

[JsonProperty("completion_tokens")]
public int CompletionTokens { get; set; }

Giá trị thuộc tính

int

PromptTokens

Số lượng token trong phần nhắc.

[JsonProperty("prompt_tokens")]
public int PromptTokens { get; set; }

Giá trị thuộc tính

int

TotalTokens

Tổng số lượng token đã sử dụng trong yêu cầu (nhắc + hoàn thành).

[JsonProperty("total_tokens")]
public int TotalTokens { get; set; }

Giá trị thuộc tính

int

Namespace: Documentize Assembly: Documentize.dll

Class XlsConverter

Thông tin

Đại diện cho plugin Documentize.XlsConverter. Được sử dụng để chuyển đổi tài liệu PDF sang định dạng XLSX/XLS/CSV/XLSM/ODS.

[Obsolete("Lớp này sẽ bị xóa trong thời gian tới. Vui lòng sử dụng lớp PdfConverter.")]
public static class XlsConverter

Kế thừa

objectXlsConverter

Các thành viên kế thừa

Phương thức

Process(PdfToXlsOptions)

Chuyển đổi tài liệu PDF sang định dạng XLSX/XLS/CSV/XLSM/ODS.

public static ResultContainer Process(PdfToXlsOptions options)

Tham số

  • options PdfToXlsOptions: Một đối tượng tùy chọn chứa các hướng dẫn cho thao tác.

Trả về

ResultContainer : Một đối tượng chứa kết quả của thao tác.

Ngoại lệ

ArgumentException

Nếu tùy chọn không được thiết lập.

Namespace: Documentize Assembly: Documentize.dll

Enum ConvertErrorAction

Thông tin

Lớp này đại diện cho hành động xử lý lỗi chuyển đổi.

public enum ConvertErrorAction

Fields

  • Delete = 0
  • None = 1

Namespace: Documentize Assembly: Documentize.dll

Enum ConvertSoftMaskAction

Thông tin

Hành động này đại diện cho các hành động chuyển đổi hình ảnh với mặt nạ mềm.

public enum ConvertSoftMaskAction

Fields

  • ConvertToStencilMask = 1: Mặt nạ mềm sẽ được chuyển đổi thành mặt nạ khuôn.
  • Default = 0: Sử dụng chiến lược mặc định.

Namespace: Documentize Assembly: Documentize.dll

29 thg 12, 2024

Enum DataType

Thông tin

Biểu diễn các kiểu dữ liệu có thể cho quá trình xử lý thành phần.

public enum DataType

Fields

  • Directory = 2: Kiểu dữ liệu là thư mục, được biểu diễn bằng đường dẫn tới nó.
  • File = 0: Kiểu dữ liệu là tệp, được biểu diễn bằng đường dẫn tới nó.
  • Stream = 1: Kiểu dữ liệu là luồng.

Không gian tên: Documentize
Tập tin lắp ráp: Documentize.dll

Enum DocConversionMode

Thông tin

Xác định chế độ chuyển đổi của tài liệu đầu ra.

public enum DocConversionMode

Các trường

  • Flow = 1: Chế độ nhận diện toàn diện, engine thực hiện nhóm và phân tích đa cấp để phục hồi ý định của tác giả tài liệu gốc và tạo ra một tài liệu có thể chỉnh sửa tối đa. Nhược điểm là tài liệu đầu ra có thể trông khác so với file PDF gốc.
  • TextBox = 0: Chế độ này nhanh và tốt cho việc giữ nguyên hình thức của file PDF gốc, nhưng khả năng chỉnh sửa của tài liệu kết quả có thể bị hạn chế. Mỗi khối văn bản được nhóm trực quan trong file PDF gốc được chuyển đổi thành một textbox trong tài liệu kết quả. Điều này đạt được sự giống nhau tối đa của tài liệu đầu ra với file PDF gốc. Tài liệu đầu ra sẽ trông đẹp, nhưng nó sẽ hoàn toàn gồm các textbox và có thể làm cho việc chỉnh sửa tài liệu trong Microsoft Word trở nên khá khó khăn. Đây là chế độ mặc định.

Namespace: Documentize Assembly: Documentize.dll

Enum HtmlMediaType

Thông tin

Chỉ định các loại phương tiện có thể được sử dụng trong quá trình kết xuất.

public enum HtmlMediaType

Fields

  • Print = 0: In.
  • Screen = 1: Màn hình.

Namespace: Documentize Assembly: Documentize.dll

Enum HtmlPageLayoutOption

Thông tin

Chỉ định các cờ mà cùng với các tùy chọn khác xác định kích thước và bố cục của các trang.

public enum HtmlPageLayoutOption

Fields

  • FitToWidestContentWidth = 3: Chỉ rõ rằng chiều rộng của trang được xác định từ kích thước nội dung, không phải từ chiều rộng trang đã chỉ định.
  • None = 0: Giá trị mặc định cho biết rằng HtmlPageLayoutOption sẽ không ảnh hưởng đến kích thước và bố cục của các trang.
  • ScaleToPageWidth = 256: Chỉ rằng nội dung của tài liệu sẽ được thay đổi kích thước để phù hợp với trang.

Namespace: Documentize Assembly: Documentize.dll

Enum PdfAStandardVersion

Thông tin

Xác định phiên bản tiêu chuẩn PDF/A cho tài liệu PDF.

public enum PdfAStandardVersion

Fields

  • Auto = 0: Phiên bản tiêu chuẩn PDF/A được xác định tự động.
  • PDF_A_1A = 1: Xác định phiên bản tiêu chuẩn PDF/A-1a.
  • PDF_A_1B = 2: Xác định phiên bản tiêu chuẩn PDF/A-1b.
  • PDF_A_2A = 3: Xác định phiên bản tiêu chuẩn PDF/A-2a.
  • PDF_A_2B = 4: Xác định phiên bản tiêu chuẩn PDF/A-2b.
  • PDF_A_2U = 5: Xác định phiên bản tiêu chuẩn PDF/A-2u.
  • PDF_A_3A = 6: Xác định phiên bản tiêu chuẩn PDF/A-3a.
  • PDF_A_3B = 7: Xác định phiên bản tiêu chuẩn PDF/A-3b.
  • PDF_A_3U = 8: Xác định phiên bản tiêu chuẩn PDF/A-3u.

Namespace: Documentize Assembly: Documentize.dll

Enum PdfToHtmlOptions.SaveDataType

Thông tin

Định nghĩa loại đầu ra của tệp HTML.

public enum PdfToHtmlOptions.SaveDataType  

Fields

  • FileWithEmbeddedResources = 1: Lưu HTML vào tệp với tài nguyên nhúng
  • FileWithExternalResources = 0: Lưu HTML vào tệp với tài nguyên bên ngoài
  • StreamWithEmbeddedResources = 2: Lưu HTML vào dòng tệp với tài nguyên nhúng

Namespace: Documentize
Assembly: Documentize.dll

Enum PdfToXlsOptions.ExcelFormat

Thông tin

Cho phép chỉ định định dạng tệp xls/xlsx/xml/csv. Giá trị mặc định là XLSX.

Cho phép chỉ định định dạng tệp xls/xlsx/xml/csv. Giá trị mặc định là XLSX.

public enum PdfToXlsOptions.ExcelFormat

Fields

  • CSV = 2: Định dạng tệp giá trị phân tách bằng dấu phẩy (.csv).
  • ODS = 4: Bảng tính Open Document.
  • XLSM = 3: Định dạng tệp Office Open XML có macro (.xlsm).
  • XLSX = 1: Định dạng tệp Office Open XML (.xlsx).
  • XMLSpreadSheet2003 = 0: Định dạng tệp Excel 2003 XML (.xls).

Namespace: Documentize Assembly: Documentize.dll

Enum Role

Thông tin

Vai trò của tác giả tin nhắn.

public enum Role

Fields

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

Namespace: Documentize Assembly: Documentize.dll

Enum Rotation

Thông tin

Liệt kê các giá trị xoay có thể có.

public enum Rotation

Fields

  • None = 0: Không xoay.
  • On180 = 2: Xoay 180 độ.
  • On270 = 3: Xoay 270 độ theo chiều kim đồng hồ.
  • On360 = 4: Xoay 360 độ theo chiều kim đồng hồ.
  • On90 = 1: Xoay 90 độ theo chiều kim đồng hồ.

Namespace: Documentize Assembly: Documentize.dll

Enum TextExtractorOptions.TextFormattingMode

Thông tin

Xác định các chế độ khác nhau có thể được sử dụng khi chuyển đổi một tài liệu PDF thành văn bản. Xem lớp Documentize.TextExtractorOptions.

public enum TextExtractorOptions.TextFormattingMode  

Fields

  • Plain = 2: Đại diện cho nội dung văn bản PDF với vị trí tương đối của các đoạn văn bản nhưng không thêm khoảng trống thừa.
  • Pure = 0: Đại diện cho nội dung văn bản PDF với một số quy trình định dạng. Điều này bao gồm việc xem xét các vị trí tương đối và thêm khoảng trống thừa để căn chỉnh văn bản với chiều rộng của trang.
  • Raw = 1: Đại diện cho nội dung PDF như nó vốn có, tức là không có định dạng.

Namespace: Documentize
Assembly: Documentize.dll

29 thg 12, 2024

Enum TextFormattingMode

Thông tin

Định nghĩa các chế độ khác nhau có thể được sử dụng khi chuyển đổi tài liệu PDF thành văn bản. Xem lớp Documentize.ExtractTextOptions.

public enum TextFormattingMode

Fields

  • Flatten = 2: Đại diện cho nội dung PDF với việc định vị các đoạn văn bản theo tọa độ của chúng. Nó cơ bản tương tự như chế độ “Raw”. Nhưng trong khi “Raw” tập trung vào việc duy trì cấu trúc của các đoạn văn bản (các toán tử) trong tài liệu, “Flatten” tập trung vào việc giữ văn bản theo thứ tự mà nó được đọc.
  • Pure = 0: Đại diện cho nội dung văn bản PDF với một số quy trình định dạng. Điều này bao gồm việc xem xét các vị trí tương đối và thêm khoảng trắng bổ sung để căn chỉnh văn bản với chiều rộng của trang.
  • Raw = 1: Đại diện cho nội dung PDF như là, tức là không có định dạng.

Namespace: Documentize Assembly: Documentize.dll

13 thg 10, 2025

Enum TiffColorDepth

Thông tin

Sử dụng để chỉ định Độ Sâu Màu cho Documentize.PdfToTiffOptions.

public enum TiffColorDepth

Fields

  • Format1bpp = 4: 1 bit mỗi pixel.
  • Format24bpp = 1: 24 bits mỗi pixel. Rgb.
  • Format32bpp = 0: 32 bits mỗi pixel. Được sử dụng mặc định.
  • Format4bpp = 3: 4 bits mỗi pixel.
  • Format8bpp = 2: 8 bits mỗi pixel.

Namespace: Documentize Assembly: Documentize.dll

Enum TiffCompression

Thông tin

Dùng để chỉ định loại nén cho Documentize.PdfToTiffOptions.

public enum TiffCompression

Fields

  • CCITT3 = 2: Chỉ định sơ đồ nén CCITT3. Có thể được truyền cho bộ mã hóa CCITT3 như một tham số thuộc danh mục Compression.
  • CCITT4 = 1: Chỉ định sơ đồ nén CCITT4. Có thể được truyền cho bộ mã hóa CCITT4 như một tham số thuộc danh mục Compression.
  • LZW = 0: Chỉ định sơ đồ nén LZW. Có thể được truyền cho bộ mã hóa Tiff như một tham số thuộc danh mục Compression.
  • None = 4: Chỉ định không có nén. Có thể được truyền cho bộ mã hóa Tiff như một tham số thuộc danh mục nén.
  • RLE = 3: Chỉ định sơ đồ nén RLE. Có thể được truyền cho bộ mã hóa RLE như một tham số thuộc danh mục Compression.

Namespace: Documentize Assembly: Documentize.dll

Interface IData

Thông tin

Giao diện dữ liệu chung định nghĩa các thành viên chung mà dữ liệu cụ thể phải thực hiện.

public interface IData

Properties

DataType

Kiểu nguồn dữ liệu.

DataType DataType { get; }

Property Value

DataType

Namespace: Documentize Assembly: Documentize.dll

Interface IDataSource

Thông tin

Giao diện dữ liệu chung định nghĩa các thành viên chung mà dữ liệu cụ thể nên triển khai.

public interface IDataSource

Properties

DataType

Loại nguồn dữ liệu.

DataType DataType { get; }

Property Value

DataType

Namespace: Documentize Assembly: Documentize.dll

Interface IHaveInput

Thông tin

Giao diện dữ liệu chung định nghĩa Dữ liệu Đầu vào mà Options nên triển khai.

public interface IHaveInput

Thuộc tính

Input

Lấy hoặc đặt Dữ liệu Đầu vào.

IData Input { get; set; }

Giá trị Thuộc tính

IData

Không gian tên: Documentize Tập lệnh: Documentize.dll

Interface IOperationResult

Thông tin

Giao diện kết quả hoạt động chung định nghĩa các phương thức chung mà kết quả hoạt động của thành phần cụ thể phải thực hiện.

public interface IOperationResult

Properties

Data

Lấy dữ liệu thô.

object Data { get; }

Property Value

object

IsFile

Chỉ ra liệu kết quả có phải là đường dẫn tới một tệp đầu ra hay không.

bool IsFile { get; }

Property Value

bool

IsStream

Chỉ ra liệu kết quả có phải là một luồng đầu ra hay không.

bool IsStream { get; }

Property Value

bool

IsString

Chỉ ra liệu kết quả có phải là một chuỗi văn bản hay không.

bool IsString { get; }

Property Value

bool

Methods

ToFile()

Cố gắng chuyển đổi kết quả thành tệp.

string ToFile()

Returns

string : Một chuỗi biểu diễn đường dẫn tới tệp đầu ra nếu kết quả là tệp; nếu không null.

ToStream()

Cố gắng chuyển đổi kết quả thành đối tượng luồng.

Stream ToStream()

Returns

Stream : Một đối tượng luồng biểu diễn dữ liệu đầu ra nếu kết quả là luồng; nếu không null.

Namespace: Documentize Assembly: Documentize.dll

Interface IPluginOptions

Thông tin

Giao diện tùy chọn thành phần chung định nghĩa các phương thức chung mà tùy chọn thành phần cụ thể phải triển khai.

public interface IPluginOptions

Namespace: Documentize Assembly: Documentize.dll

 Tiếng Việt