|
System Settings |
Top Previous Next |
|
All the n2pdf options, which cannot be categorized under any special subject area and which have a general influence on n2pdf's configuration and how it operates, are consolidated under "System Settings". These options are all set using the command N2PDFSetOption.
Below is a listing of all the possible settings for which the parameter <OptionID> can be used with N2PDFSetOption. The respective values for the settings are made using the parameters <OptionStr> and <SubOptionStr>.
N2PDFOPTION_SYSTEM_LAUNCH_VIEWER This parameter allows the viewer for the PDF file set in the operating system to be launched automatically once the file has been created.
Example: Call N2PDFSetOption ( JobID,_ N2PDFOPTION_SYSTEM_LAUNCH_VIEWER, N2PDFVALUE_True, "" )
N2PDFOPTION_SYSTEM_METRICS_MODE You use this parameter to specify the unit of measurement that will be used for making input in n2pdf, such as for page dimensions and margins.
N2PDFOPTION_SYSTEM_NOTES_SHOW_HIDE_MODE This parameter lets you determine which "Hide paragraph when" properties of a Notes document or RichText field should be included when being exported.
The options "Printed", "Hide paragraph if formula is true" and "Notes 4.6 or later" are activated by default. You can set any combination you like so that, for example, texts cannot be accepted into the PDF (via N2PDFAddRTContent) which have the option "Copied to the clipboard". You can make these settings using N2PDFSetOption and specifying N2PDFOPTION_SYSTEM_NOTES_SHOW_HIDE_MODE as the <OptionID>. Select the respective "Hide paragraph" option from the following table to use as the first <OptionStr> value. With the <SubOptionStr> value you can then turn the setting on or off using N2PDFVALUE_TRUE or N2PDFVALUE_FALSE respectively.
Example: Call N2PDFSetOption ( JobID, N2PDFOPTION_SYSTEM_NOTES_SHOW_HIDE_MODE,_ N2PDFVALUE_NOTES_SH_MODE_PREVIEW_READING, N2PDFVALUE_True )
Delimiters for constants, variables and fields The delimiters for constants, variables and fields can be changed using the following parameters:
Example: Call N2PDFSetOption ( JobID,_ N2PDFOPTION_SYSTEM_FIELD_START_CHAR, "(","")
Call N2PDFSetOption ( JobID,_ N2PDFOPTION_SYSTEM_FIELD_End_CHAR, ")","")
N2PDFOPTION_SYSTEM_DECIMAL_SEPARATOR This option allows the definition of the character which is to be used for the alignment of the decimal separator.
Example: A decimal separator is aligned by using a comma Call N2PDFSetOption ( JobID,_ N2PDFOPTION_SYSTEM_DECIMAL_SEPARATOR, ",", "" )
N2PDFOPTION_SYSTEM_UNICODE_MODE This parameter can disable Unicode support from n2pdf. As a default, n2pdf always works in Unicode mode. You will find more information about Unicode in n2pdf in the Unicode section.
Example: Disables the Unicode mode Call N2PDFSetOption ( JobID,_ N2PDFOPTION_SYSTEM_UNICODE_MODE, N2PDFVALUE_FALSE, "" )
|