Class TransPDFOptions
Inherited Members
Namespace: pdftron.PDF
Assembly: PDFNet.dll
Syntax
public class TransPDFOptions : OptionsBase
Constructors
TransPDFOptions()
Constructor.
Declaration
public TransPDFOptions()
Methods
GetBatchSize()
Gets the value BatchSize from the options object. The number of pages to process before saving an intermediate PDF to free resources. A greater number of pages will increase memory usage, and a smaller number will increase processing time. Default is 20.
Declaration
public int GetBatchSize()
Returns
Type | Description |
---|---|
int | The number of pages to process before saving an intermediate PDF to free resources. A greater number of pages will increase memory usage, and a smaller number will increase processing time. Default is 20. |
GetPages()
Gets the value Pages from the options object. Specifies a set of pages to process, such as "1-5", or "1-3,5,7-10". Open ended ranges are supported, e.g., "3-". By default all pages are processed. The first page is page number 1. This option only affects XLIFF extraction.
Declaration
public string GetPages()
Returns
Type | Description |
---|---|
string | Specifies a set of pages to process, such as "1-5", or "1-3,5,7-10". Open ended ranges are supported, e.g., "3-". By default all pages are processed. The first page is page number 1. This option only affects XLIFF extraction. |
GetSourceLanguage()
Gets the value SourceLanguage from the options object. A language code as specified in [RFC 4646] that identifies the language of the source PDF. This will be set as the 'source-language' attribute of the file tag in the extracted XLIFF. Default is 'en' (English).
Declaration
public string GetSourceLanguage()
Returns
Type | Description |
---|---|
string | A language code as specified in [RFC 4646] that identifies the language of the source PDF. This will be set as the 'source-language' attribute of the file tag in the extracted XLIFF. Default is 'en' (English). |
SetBatchSize(int)
Sets the value for BatchSize in the options object. The number of pages to process before saving an intermediate PDF to free resources. A greater number of pages will increase memory usage, and a smaller number will increase processing time. Default is 20.
Declaration
public TransPDFOptions SetBatchSize(int value)
Parameters
Type | Name | Description |
---|---|---|
int | value | The number of pages to process before saving an intermediate PDF to free resources. A greater number of pages will increase memory usage, and a smaller number will increase processing time. Default is 20. |
Returns
Type | Description |
---|---|
TransPDFOptions | This object, for call chaining. |
SetPages(string)
Sets the value for Pages in the options object. Specifies a set of pages to process, such as "1-5", or "1-3,5,7-10". Open ended ranges are supported, e.g., "3-". By default all pages are processed. The first page is page number 1.
Declaration
public TransPDFOptions SetPages(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | Specifies a set of pages to process, such as "1-5", or "1-3,5,7-10". Open ended ranges are supported, e.g., "3-". By default all pages are processed. The first page is page number 1. |
Returns
Type | Description |
---|---|
TransPDFOptions | This object, for call chaining. |
SetSourceLanguage(string)
Sets the value for SourceLanguage in the options object. A language code as specified in [RFC 4646] that identifies the language of the source PDF. This will be set as the 'source-language' attribute of the file tag in the extracted XLIFF. Default is 'en' (English).
Declaration
public TransPDFOptions SetSourceLanguage(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | A language code as specified in [RFC 4646] that identifies the language of the source PDF. This will be set as the 'source-language' attribute of the file tag in the extracted XLIFF. Default is 'en' (English). |
Returns
Type | Description |
---|---|
TransPDFOptions | This object, for call chaining. |