All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
pdftron::PDF::TransPDFOptions Class Reference

#include <TransPDFOptions.h>

+ Inheritance diagram for pdftron::PDF::TransPDFOptions:

Public Types

enum  XLIFFVersion { e_xliff_version_1 = 1, e_xliff_version_2 = 2 }
 

Public Member Functions

 TransPDFOptions ()
 
 ~TransPDFOptions ()
 
UInt32 GetBatchSize ()
 
TransPDFOptionsSetBatchSize (UInt32 value)
 
UString GetPages ()
 
TransPDFOptionsSetPages (const UString &value)
 
bool GetResizeSingleLine ()
 
TransPDFOptionsSetResizeSingleLine (bool value)
 
bool GetFlipPageContentsForBiDirectionalTranslations ()
 
TransPDFOptionsSetFlipPageContentsForBiDirectionalTranslations (bool value)
 
UString GetSourceLanguage ()
 
TransPDFOptionsSetSourceLanguage (const UString &value)
 
XLIFFVersion GetXLIFFVersion ()
 
TransPDFOptionsSetXLIFFVersion (XLIFFVersion value)
 
- Public Member Functions inherited from pdftron::PDF::OptionsBase
 OptionsBase ()
 
 OptionsBase (const UString &json)
 

Additional Inherited Members

- Static Public Member Functions inherited from pdftron::PDF::OptionsBase
static SDF::Obj GetArray (SDF::Obj dict, const char *key)
 
static void PutNumber (SDF::Obj dict, const char *key, double num)
 
static void PutBool (SDF::Obj dict, const char *key, bool val)
 
static void PutText (SDF::Obj dict, const char *key, const UString &text)
 
static void PutRect (SDF::Obj dict, const char *key, const Rect &rect)
 
static void PushBackNumber (SDF::Obj dict, const char *key, double num)
 
static void PushBackBool (SDF::Obj dict, const char *key, bool val)
 
static void PushBackText (SDF::Obj dict, const char *key, const UString &text)
 
static void PushBackRect (SDF::Obj dict, const char *key, const Rect &rect)
 
static Rect RectFromArray (SDF::Obj nums)
 
static void InsertRectCollection (SDF::Obj dict, const char *key, const RectCollection &rects, int index)
 
static Rect RectFromArray (void *)
 
static double ColorPtToNumber (const ColorPt &cp)
 
static ColorPt ColorPtFromNumber (double dnum)
 

Detailed Description

Definition at line 9 of file TransPDFOptions.h.

Member Enumeration Documentation

An enumeration used to specify the XLIFF version.

Enumerator
e_xliff_version_1 

XLIFF version 1.2.

e_xliff_version_2 

XLIFF version 2.0.

Definition at line 15 of file TransPDFOptions.h.

Constructor & Destructor Documentation

pdftron::PDF::TransPDFOptions::TransPDFOptions ( )
pdftron::PDF::TransPDFOptions::~TransPDFOptions ( )

Member Function Documentation

UInt32 pdftron::PDF::TransPDFOptions::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.

Returns
The current value for BatchSize.
bool pdftron::PDF::TransPDFOptions::GetFlipPageContentsForBiDirectionalTranslations ( )

Gets the value FlipPageContentsForBiDirectionalTranslations from the options object. If true, any text and images on the page will have their positions inverted on the x-axis and vector artwork will be flipped on the x-axis.

Returns
The current value for FlipPageContentsForBiDirectionalTranslations.
UString pdftron::PDF::TransPDFOptions::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.

Returns
The current value for Pages.
bool pdftron::PDF::TransPDFOptions::GetResizeSingleLine ( )

Gets the value ResizeSingleLine from the options object. If true, single line text boxes will grow and shrink to accommodate translated text.

Returns
The current value for ResizeSingleLine.
UString pdftron::PDF::TransPDFOptions::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).

Returns
The current value for SourceLanguage.
XLIFFVersion pdftron::PDF::TransPDFOptions::GetXLIFFVersion ( )

Gets the value XLIFFVersion from the options object. Specifies the XLIFF version to use for export. Only 1.2 and 2.0 are currently supported. Any other versions will default to 1.2.

Returns
The current value for XLIFFVersion.
TransPDFOptions& pdftron::PDF::TransPDFOptions::SetBatchSize ( UInt32  value)

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.

Parameters
valueThe new value for BatchSize.
Returns
This object, for call chaining.
TransPDFOptions& pdftron::PDF::TransPDFOptions::SetFlipPageContentsForBiDirectionalTranslations ( bool  value)

Sets the value for FlipPageContentsForBiDirectionalTranslations in the options object. If true, any text and images on the page will have their positions inverted on the x-axis and vector artwork will be flipped on the x-axis.

Parameters
valueThe new value for FlipPageContentsForBiDirectionalTranslations.
Returns
This object, for call chaining.
TransPDFOptions& pdftron::PDF::TransPDFOptions::SetPages ( const UString value)

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. This option only affects XLIFF extraction.

Parameters
valueThe new value for Pages.
Returns
This object, for call chaining.
TransPDFOptions& pdftron::PDF::TransPDFOptions::SetResizeSingleLine ( bool  value)

Sets the value for ResizeSingleLine in the options object. If true, single line text boxes will grow and shrink to accommodate translated text.

Parameters
valueThe new value for ResizeSingleLine.
Returns
This object, for call chaining.
TransPDFOptions& pdftron::PDF::TransPDFOptions::SetSourceLanguage ( const UString value)

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).

Parameters
valueThe new value for SourceLanguage.
Returns
This object, for call chaining.
TransPDFOptions& pdftron::PDF::TransPDFOptions::SetXLIFFVersion ( XLIFFVersion  value)

Sets the value for XLIFFVersion in the options object. Specifies the XLIFF version to use for export. Only 1.2 and 2.0 are currently supported. Any other versions will default to 1.2.

Parameters
valueThe new value for XLIFFVersion.
Returns
This object, for call chaining.

The documentation for this class was generated from the following file: