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

#include <OfficeToPDFOptions.h>

+ Inheritance diagram for pdftron::PDF::OfficeToPDFOptions:

Public Types

enum  StructureTagLevel { e_default = 0, e_none = 1 }
 

Public Member Functions

 OfficeToPDFOptions ()
 
 ~OfficeToPDFOptions ()
 
bool GetApplyPageBreaksToSheet ()
 
OfficeToPDFOptionsSetApplyPageBreaksToSheet (bool value)
 
bool GetDisplayChangeTracking ()
 
OfficeToPDFOptionsSetDisplayChangeTracking (bool value)
 
bool GetDisplayHiddenText ()
 
OfficeToPDFOptionsSetDisplayHiddenText (bool value)
 
double GetExcelDefaultCellBorderWidth ()
 
OfficeToPDFOptionsSetExcelDefaultCellBorderWidth (double value)
 
UInt32 GetExcelMaxAllowedCellCount ()
 
OfficeToPDFOptionsSetExcelMaxAllowedCellCount (UInt32 value)
 
bool GetHideTotalNumberOfPages ()
 
OfficeToPDFOptionsSetHideTotalNumberOfPages (bool value)
 
bool GetIncludeBookmarks ()
 
OfficeToPDFOptionsSetIncludeBookmarks (bool value)
 
bool GetIncrementalSave ()
 
OfficeToPDFOptionsSetIncrementalSave (bool value)
 
UString GetLayoutResourcesPluginPath ()
 
OfficeToPDFOptionsSetLayoutResourcesPluginPath (const UString &value)
 
UString GetLocale ()
 
OfficeToPDFOptionsSetLocale (const UString &value)
 
UString GetPassword ()
 
OfficeToPDFOptionsSetPassword (const UString &value)
 
UString GetResourceDocPath ()
 
OfficeToPDFOptionsSetResourceDocPath (const UString &value)
 
UString GetSmartSubstitutionPluginPath ()
 
OfficeToPDFOptionsSetSmartSubstitutionPluginPath (const UString &value)
 
StructureTagLevel GetStructureTagLevel ()
 
OfficeToPDFOptionsSetStructureTagLevel (StructureTagLevel value)
 
UString GetTemplateLeftDelimiter ()
 
OfficeToPDFOptionsSetTemplateLeftDelimiter (const UString &value)
 
UString GetTemplateParamsJson ()
 
OfficeToPDFOptionsSetTemplateParamsJson (const UString &value)
 
UString GetTemplateRightDelimiter ()
 
OfficeToPDFOptionsSetTemplateRightDelimiter (const UString &value)
 
bool GetTemplateStrictMode ()
 
OfficeToPDFOptionsSetTemplateStrictMode (bool value)
 
bool GetUpdateTableOfContents ()
 
OfficeToPDFOptionsSetUpdateTableOfContents (bool value)
 

Detailed Description

Definition at line 9 of file OfficeToPDFOptions.h.

Member Enumeration Documentation

Level of detail for structure tags.

Enumerator
e_default 

Default level of structure tags, good for accessibility.

e_none 

No structure tags. This can be used to get smaller file sizes.

Definition at line 18 of file OfficeToPDFOptions.h.

Constructor & Destructor Documentation

pdftron::PDF::OfficeToPDFOptions::OfficeToPDFOptions ( )
pdftron::PDF::OfficeToPDFOptions::~OfficeToPDFOptions ( )

Member Function Documentation

bool pdftron::PDF::OfficeToPDFOptions::GetApplyPageBreaksToSheet ( )

Gets the value ApplyPageBreaksToSheet from the options object Whether we should split Excel workheets into pages so that the output resembles print output. If set to false (the default), Excel sheets will be placed one per page, except in the case where the sheets are very large

Returns
a bool, the current value for ApplyPageBreaksToSheet.
bool pdftron::PDF::OfficeToPDFOptions::GetDisplayChangeTracking ( )

Gets the value DisplayChangeTracking from the options object If this option is true, will display office change tracking markup present in the document (i.e, red strikethrough of deleted content and underlining of new content). Otherwise displays the resolved document content, with no markup. Defaults to true.

Returns
a bool, the current value for DisplayChangeTracking.
bool pdftron::PDF::OfficeToPDFOptions::GetDisplayHiddenText ( )

Gets the value DisplayHiddenText from the options object Display any hidden text that is present in the document (i.e., text that has been marked as 'Hidden' in the font style). By default, hidden text will not be displayed.

Returns
a bool, the current value for DisplayHiddenText.
double pdftron::PDF::OfficeToPDFOptions::GetExcelDefaultCellBorderWidth ( )

Gets the value ExcelDefaultCellBorderWidth from the options object Cell border width for table cells that would normally be drawn with no border. In units of points. Can be used to achieve a similar effect to the "show gridlines" display option within Microsoft Excel.

Returns
a double, the current value for ExcelDefaultCellBorderWidth.
UInt32 pdftron::PDF::OfficeToPDFOptions::GetExcelMaxAllowedCellCount ( )

Gets the value ExcelMaxAllowedCellCount from the options object Conversion will throw an exception if the number of cells in a Microsoft Excel document is above the set MaxAllowedCellCount. Used for early termination of resource intensive conversions. Setting this value to 250000 will allow the vast majority of Excel documents to convert without issue, while keeping RAM usage to a reasonable level. By default there is no limit to the number of allowed cells.

Returns
a UInt32, the current value for ExcelMaxAllowedCellCount.
bool pdftron::PDF::OfficeToPDFOptions::GetHideTotalNumberOfPages ( )

Gets the value HideTotalNumberOfPages from the options object If the document has an element that displays the total number of pages and the total number of pages is unknown beforehand, remove those elements from the document.

Returns
a bool, the current value for HideTotalNumberOfPages.
bool pdftron::PDF::OfficeToPDFOptions::GetIncludeBookmarks ( )

Gets the value IncludeBookmarks from the options object When this option is set to false, Word document bookmarks will not be converted into PDF bookmarks. However, Word headings will still be automatically converted into PDF bookmarks. By default, both Word bookmarks and headings are converted into PDF bookmarks, providing a comprehensive navigation structure within the converted PDF.

Returns
a bool, the current value for IncludeBookmarks.
bool pdftron::PDF::OfficeToPDFOptions::GetIncrementalSave ( )

Gets the value IncrementalSave from the options object If this option is true, the document will be saved incrementally during the conversion, thus reducing the peak memory usage. Save an empty PDFDoc to the target location before the conversion so the incremental saving is done directly to the target location. Otherwise, a temporary file will be used. PDFDoc.Save still has to be called after the conversion is done to finalize the file. Doing PDFDoc.Save with e_incremental flag will reduce the saving time but increase the PDF file size.

Returns
a bool, the current value for IncrementalSave.
UString pdftron::PDF::OfficeToPDFOptions::GetLayoutResourcesPluginPath ( )

Gets the value LayoutResourcesPluginPath from the options object The path at which the pdftron-provided font resource plugin resides

Returns
a UString, the current value for LayoutResourcesPluginPath.
UString pdftron::PDF::OfficeToPDFOptions::GetLocale ( )

Gets the value Locale from the options object ISO 639-1 code of the locale to be applied during conversion. For example: 'en-US', 'ar-SA', 'de-DE', etc. Currently only applied during xls/xlsx conversions.

Returns
a UString, the current value for Locale.
UString pdftron::PDF::OfficeToPDFOptions::GetPassword ( )

Gets the value Password from the options object Password used to decrypt password-protected office documents.

Returns
a UString, the current value for Password.
UString pdftron::PDF::OfficeToPDFOptions::GetResourceDocPath ( )

Gets the value ResourceDocPath from the options object The path at which a .docx resource document resides

Returns
a UString, the current value for ResourceDocPath.
UString pdftron::PDF::OfficeToPDFOptions::GetSmartSubstitutionPluginPath ( )

Gets the value SmartSubstitutionPluginPath from the options object The path at which the pdftron-provided font resource plugin resides

Returns
a UString, the current value for SmartSubstitutionPluginPath.
StructureTagLevel pdftron::PDF::OfficeToPDFOptions::GetStructureTagLevel ( )

Gets the value StructureTagLevel from the options object Specifies the level of document structure tags to include in the PDF for accessibility purposes.

Returns
a StructureTagLevel, the current value for StructureTagLevel.
UString pdftron::PDF::OfficeToPDFOptions::GetTemplateLeftDelimiter ( )

Gets the value TemplateLeftDelimiter from the options object Left delimiter for template tags. Defaults to '{{'.

Returns
a UString, the current value for TemplateLeftDelimiter.
UString pdftron::PDF::OfficeToPDFOptions::GetTemplateParamsJson ( )

Gets the value TemplateParamsJson from the options object JSON string representing the data to be merged into a PDFTron office template. For a more featureful template API, see CreateOfficeTemplate.

Returns
a UString, the current value for TemplateParamsJson.
UString pdftron::PDF::OfficeToPDFOptions::GetTemplateRightDelimiter ( )

Gets the value TemplateRightDelimiter from the options object Right delimiter for template tags. Defaults to '}}'.

Returns
a UString, the current value for TemplateRightDelimiter.
bool pdftron::PDF::OfficeToPDFOptions::GetTemplateStrictMode ( )

Gets the value TemplateStrictMode from the options object If "Strict Mode" is enabled, when a template key is missing from the json data an exception will be thrown. If "Strict Mode" is disabled (default), the tag will be replaced with no content.

Returns
a bool, the current value for TemplateStrictMode.
bool pdftron::PDF::OfficeToPDFOptions::GetUpdateTableOfContents ( )

Gets the value UpdateTableOfContents from the options object Updates the table of contents in the document so it matches the actual locations of headings/bookmarks. By default, the table of contents is not updated. Enabling this option may negatively affect conversion speed.

Returns
a bool, the current value for UpdateTableOfContents.
OfficeToPDFOptions& pdftron::PDF::OfficeToPDFOptions::SetApplyPageBreaksToSheet ( bool  value)

Sets the value for ApplyPageBreaksToSheet in the options object Whether we should split Excel workheets into pages so that the output resembles print output. If set to false (the default), Excel sheets will be placed one per page, except in the case where the sheets are very large

Parameters
value,:the new value for ApplyPageBreaksToSheet
Returns
this object, for call chaining
OfficeToPDFOptions& pdftron::PDF::OfficeToPDFOptions::SetDisplayChangeTracking ( bool  value)

Sets the value for DisplayChangeTracking in the options object If this option is true, will display office change tracking markup present in the document (i.e, red strikethrough of deleted content and underlining of new content). Otherwise displays the resolved document content, with no markup. Defaults to true.

Parameters
value,:the new value for DisplayChangeTracking
Returns
this object, for call chaining
OfficeToPDFOptions& pdftron::PDF::OfficeToPDFOptions::SetDisplayHiddenText ( bool  value)

Sets the value for DisplayHiddenText in the options object Display any hidden text that is present in the document (i.e., text that has been marked as 'Hidden' in the font style). By default, hidden text will not be displayed.

Parameters
value,:the new value for DisplayHiddenText
Returns
this object, for call chaining
OfficeToPDFOptions& pdftron::PDF::OfficeToPDFOptions::SetExcelDefaultCellBorderWidth ( double  value)

Sets the value for ExcelDefaultCellBorderWidth in the options object Cell border width for table cells that would normally be drawn with no border. In units of points. Can be used to achieve a similar effect to the "show gridlines" display option within Microsoft Excel.

Parameters
value,:the new value for ExcelDefaultCellBorderWidth
Returns
this object, for call chaining
OfficeToPDFOptions& pdftron::PDF::OfficeToPDFOptions::SetExcelMaxAllowedCellCount ( UInt32  value)

Sets the value for ExcelMaxAllowedCellCount in the options object Conversion will throw an exception if the number of cells in a Microsoft Excel document is above the set MaxAllowedCellCount. Used for early termination of resource intensive conversions. Setting this value to 250000 will allow the vast majority of Excel documents to convert without issue, while keeping RAM usage to a reasonable level. By default there is no limit to the number of allowed cells.

Parameters
value,:the new value for ExcelMaxAllowedCellCount
Returns
this object, for call chaining
OfficeToPDFOptions& pdftron::PDF::OfficeToPDFOptions::SetHideTotalNumberOfPages ( bool  value)

Sets the value for HideTotalNumberOfPages in the options object If the document has an element that displays the total number of pages and the total number of pages is unknown beforehand, remove those elements from the document.

Parameters
value,:the new value for HideTotalNumberOfPages
Returns
this object, for call chaining
OfficeToPDFOptions& pdftron::PDF::OfficeToPDFOptions::SetIncludeBookmarks ( bool  value)

Sets the value for IncludeBookmarks in the options object When this option is set to false, Word document bookmarks will not be converted into PDF bookmarks. However, Word headings will still be automatically converted into PDF bookmarks. By default, both Word bookmarks and headings are converted into PDF bookmarks, providing a comprehensive navigation structure within the converted PDF.

Parameters
value,:the new value for IncludeBookmarks
Returns
this object, for call chaining
OfficeToPDFOptions& pdftron::PDF::OfficeToPDFOptions::SetIncrementalSave ( bool  value)

Sets the value for IncrementalSave in the options object If this option is true, the document will be saved incrementally during the conversion, thus reducing the peak memory usage. Save an empty PDFDoc to the target location before the conversion so the incremental saving is done directly to the target location. Otherwise, a temporary file will be used. PDFDoc.Save still has to be called after the conversion is done to finalize the file. Doing PDFDoc.Save with e_incremental flag will reduce the saving time but increase the PDF file size.

Parameters
value,:the new value for IncrementalSave
Returns
this object, for call chaining
OfficeToPDFOptions& pdftron::PDF::OfficeToPDFOptions::SetLayoutResourcesPluginPath ( const UString value)

Sets the value for LayoutResourcesPluginPath in the options object The path at which the pdftron-provided font resource plugin resides

Parameters
value,:the new value for LayoutResourcesPluginPath
Returns
this object, for call chaining
OfficeToPDFOptions& pdftron::PDF::OfficeToPDFOptions::SetLocale ( const UString value)

Sets the value for Locale in the options object ISO 639-1 code of the locale to be applied during conversion. For example: 'en-US', 'ar-SA', 'de-DE', etc. Currently only applied during xls/xlsx conversions.

Parameters
value,:the new value for Locale
Returns
this object, for call chaining
OfficeToPDFOptions& pdftron::PDF::OfficeToPDFOptions::SetPassword ( const UString value)

Sets the value for Password in the options object Password used to decrypt password-protected office documents.

Parameters
value,:the new value for Password
Returns
this object, for call chaining
OfficeToPDFOptions& pdftron::PDF::OfficeToPDFOptions::SetResourceDocPath ( const UString value)

Sets the value for ResourceDocPath in the options object The path at which a .docx resource document resides

Parameters
value,:the new value for ResourceDocPath
Returns
this object, for call chaining
OfficeToPDFOptions& pdftron::PDF::OfficeToPDFOptions::SetSmartSubstitutionPluginPath ( const UString value)

Sets the value for SmartSubstitutionPluginPath in the options object The path at which the pdftron-provided font resource plugin resides

Parameters
value,:the new value for SmartSubstitutionPluginPath
Returns
this object, for call chaining
OfficeToPDFOptions& pdftron::PDF::OfficeToPDFOptions::SetStructureTagLevel ( StructureTagLevel  value)

Sets the value for StructureTagLevel in the options object Specifies the level of document structure tags to include in the PDF for accessibility purposes.

Parameters
value,:the new value for StructureTagLevel
Returns
this object, for call chaining
OfficeToPDFOptions& pdftron::PDF::OfficeToPDFOptions::SetTemplateLeftDelimiter ( const UString value)

Sets the value for TemplateLeftDelimiter in the options object Left delimiter for template tags. Defaults to '{{'.

Parameters
value,:the new value for TemplateLeftDelimiter
Returns
this object, for call chaining
OfficeToPDFOptions& pdftron::PDF::OfficeToPDFOptions::SetTemplateParamsJson ( const UString value)

Sets the value for TemplateParamsJson in the options object JSON string representing the data to be merged into a PDFTron office template. For a more featureful template API, see CreateOfficeTemplate.

Parameters
value,:the new value for TemplateParamsJson
Returns
this object, for call chaining
OfficeToPDFOptions& pdftron::PDF::OfficeToPDFOptions::SetTemplateRightDelimiter ( const UString value)

Sets the value for TemplateRightDelimiter in the options object Right delimiter for template tags. Defaults to '}}'.

Parameters
value,:the new value for TemplateRightDelimiter
Returns
this object, for call chaining
OfficeToPDFOptions& pdftron::PDF::OfficeToPDFOptions::SetTemplateStrictMode ( bool  value)

Sets the value for TemplateStrictMode in the options object If "Strict Mode" is enabled, when a template key is missing from the json data an exception will be thrown. If "Strict Mode" is disabled (default), the tag will be replaced with no content.

Parameters
value,:the new value for TemplateStrictMode
Returns
this object, for call chaining
OfficeToPDFOptions& pdftron::PDF::OfficeToPDFOptions::SetUpdateTableOfContents ( bool  value)

Sets the value for UpdateTableOfContents in the options object Updates the table of contents in the document so it matches the actual locations of headings/bookmarks. By default, the table of contents is not updated. Enabling this option may negatively affect conversion speed.

Parameters
value,:the new value for UpdateTableOfContents
Returns
this object, for call chaining

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