IExportPDFOptions
Type interface
Represents options for PDF export.
Sources
IExportPDFOptions is an interface: it describes a shape of data and is not imported on its own.
Inheritance
IExportPDFOptions extends IExportImageOptions.
IExportPDFOptions is not extended by any other symbol.
Properties
addColumnNamesType
booleanDefaulttrueSince 4.7.0Add column names in first row?
Export will try to use user-friendly column names where possible, either from Export's
dataFieldsor deduced from chart's series' names that are bound to specific data fields.addDataType
booleanDefaultfalseSince 4.7.0Should data table be included together with the image?
Use "pdfdata" options to configure table output.
addURLType
booleanDefaulttrueWhether to add a URL of the web page the chart has been exported from.
alignType
AlignDefaultleftSince 4.9.14Alignment of the chart image in PDF.
Supported options:
"left"(default),"center","right".disabledType
booleanSince 4.9.11Set this option to
disabledfor a format to not show up inExportMenu.emptyAsType
anyDefault"" (empty string)Since 4.7.0Replace missing values with this.
extraFontsType
Array<IFont>Since 4.9.19Additional optional fonts which can be used on individual elements.
More info: Using PDF export fonts
fontType
IFontSince 4.9.19Font which should be used for the export.
Default font used for PDF includes only Latin-based and Cyrilic characters. If you are exporting text in other languages, you might need to use some other export font.
More info: Using PDF export fonts
fontSizeType
numberFont size to use for all texts.
imageFormatType
imageFormatsAn image format to use for embedded images in PDF.
See
imageFormatsinExport_module.maxHeightType
numberSince 4.10.13Maximum height in pixels of the exported image. If source chart is bigger thank this, it will be scaled down.
NOTE: this setting might be overidden by
minHeight.maxWidthType
numberSince 4.10.13Maximum width in pixels of the exported image. If source chart is bigger thank this, it will be scaled down.
NOTE: this setting might be overidden by
minWidth.minHeightType
numberSince 4.10.13Minimum height in pixels of the exported image. If source chart is smaller thank this, it will be scaled up.
minWidthType
numberSince 4.10.13Minimum width in pixels of the exported image. If source chart is smaller thank this, it will be scaled up.
pageMarginsType
number|number[]Page margins.
Can be one of the following:
A single number, in which case it will act as margin setting for all four edges of the page.
An array of two numbers
[ horizontal, vertical ].An array of four numbers
[ left, top, right, bottom ].pageOrientationType
"landscape"|"portrait"Page orientation.
pageSizeType
pageSizesPage size of the exported PDF.
pivotType
booleanDefaultfalseSince 4.7.0If set to
truewill export data as pivoted (column names in first column;values in rows).
scaleType
numberDefault1Since 4.10.13Rescale image.
Number less than 1 will shrink the image.
Number bigger than 1 will scale up the image.
useLocaleType
booleanDefaulttrueSince 4.7.0Will try to format numbers and date/time according to user's locale settings.
useTimestampsType
booleanDefaultfalseSince 4.7.0Use timestamps instead of formatted date/time values.
2 inherited items
keepTaintedType
booleanDefaultfalseInherited fromIExportImageOptionsNormally, Export removes "tainted" images (images that are loaded from other host than the chart itself) before export.
Set this to
trueto disable it.Please note that removal of tainted images might trigger cross-origin security restrictions in browser and prevent the whole export operation, so use with caution.
qualityType
numberInherited fromIExportImageOptionsQuality of the exported image. (0-1)