# Wijmo_Grid_Pdf.Iflexgridexportsettings

## Content

<div class="content__tsd">
						<div style="display:flex;justify-content:space-between;align-items:center">
							<h1>
								IFlexGridExportSettings Interface
							</h1>
						</div>
						<section class="tsd-comment">
							<div class="tsd-comment">
								<div class="lead">
									<p>Represents the settings used by the <a href="../classes/wijmo_grid_pdf.flexgridpdfconverter.html#export">FlexGridPdfConverter.export</a> method.</p>
								</div>
							</div>
						</section>
						<section class="tsd-hierarchy">
							<h3>Heirarchy</h3>
							<ul class="tsd-hierarchy">
								<li>
									<a href="wijmo_grid_pdf.iflexgriddrawsettings.html" class="tsd-signature-type">IFlexGridDrawSettings</a>
									<ul class="tsd-hierarchy">
										<li>
											<span class="target">IFlexGridExportSettings</span>
										</li>
									</ul>
								</li>
							</ul>
						</section>
						<section class="tsd-index-group">
							<section class="tsd-index-panel">
								<div class="tsd-index-content">
									<section class="tsd-index-section ">
										<div class="title">
											<div class="gc_api_tree-item_icon_img_wrapper">
												<div class="gc_api_tree-item_icon_img" data-expand="true">
												</div>
											</div>
											<h3>
												Properties
											</h3>
										</div>
										<ul class="tsd-index-list">
											<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="wijmo_grid_pdf.iflexgridexportsettings.html#customcellcontent" class="tsd-kind-icon">custom<wbr>Cell<wbr>Content</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface"><a href="wijmo_grid_pdf.iflexgridexportsettings.html#documentoptions" class="tsd-kind-icon">document<wbr>Options</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="wijmo_grid_pdf.iflexgridexportsettings.html#drawdetailrows" class="tsd-kind-icon">draw<wbr>Detail<wbr>Rows</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="wijmo_grid_pdf.iflexgridexportsettings.html#embeddedfonts" class="tsd-kind-icon">embedded<wbr>Fonts</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="wijmo_grid_pdf.iflexgridexportsettings.html#exportmode" class="tsd-kind-icon">export<wbr>Mode</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="wijmo_grid_pdf.iflexgridexportsettings.html#formatitem" class="tsd-kind-icon">format<wbr>Item</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="wijmo_grid_pdf.iflexgridexportsettings.html#maxpages" class="tsd-kind-icon">max<wbr>Pages</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="wijmo_grid_pdf.iflexgridexportsettings.html#progress" class="tsd-kind-icon">progress</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="wijmo_grid_pdf.iflexgridexportsettings.html#quickcellstyles" class="tsd-kind-icon">quick<wbr>Cell<wbr>Styles</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="wijmo_grid_pdf.iflexgridexportsettings.html#recalculatestarwidths" class="tsd-kind-icon">recalculate<wbr>Star<wbr>Widths</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="wijmo_grid_pdf.iflexgridexportsettings.html#repeatmergedvaluesacrosspages" class="tsd-kind-icon">repeat<wbr>Merged<wbr>Values<wbr>Across<wbr>Pages</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface"><a href="wijmo_grid_pdf.iflexgridexportsettings.html#scalemode" class="tsd-kind-icon">scale<wbr>Mode</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="wijmo_grid_pdf.iflexgridexportsettings.html#styles" class="tsd-kind-icon">styles</a></li>
										</ul>
									</section>
								</div>
							</section>
						</section>
						<section class="tsd-panel-group tsd-member-group ">
							<h2>Properties</h2>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
								<a name="customcellcontent" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> customCellContent</h3>
								<div class="tsd-signature tsd-kind-icon">custom<wbr>Cell<wbr>Content<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
								<aside class="tsd-sources">
									<p>Inherited from <a href="wijmo_grid_pdf.iflexgriddrawsettings.html">IFlexGridDrawSettings</a>.<a href="wijmo_grid_pdf.iflexgriddrawsettings.html#customcellcontent">customCellContent</a></p>
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Indicates whether custom cell content and style should be evaluated and exported.
											If set to true then export logic will retrieve cell content using cell.innerText property,
											and cell style using getComputedStyle(cell).
										Default is 'undefined' (i.e. false).</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
								<a name="documentoptions" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> documentOptions</h3>
								<div class="tsd-signature tsd-kind-icon">document<wbr>Options<span class="tsd-signature-symbol">:</span> <a href="wijmo_pdf.ipdfdocumentoptions.html" class="tsd-signature-type">IPdfDocumentOptions</a></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Represents the options of the underlying <a href="../classes/wijmo_pdf.pdfdocument.html">PdfDocument</a>.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
								<a name="drawdetailrows" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> drawDetailRows</h3>
								<div class="tsd-signature tsd-kind-icon">draw<wbr>Detail<wbr>Rows<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
								<aside class="tsd-sources">
									<p>Inherited from <a href="wijmo_grid_pdf.iflexgriddrawsettings.html">IFlexGridDrawSettings</a>.<a href="wijmo_grid_pdf.iflexgriddrawsettings.html#drawdetailrows">drawDetailRows</a></p>
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Indicates whether to draw detail rows.
											If set to false then the detail rows will be ignored; otherwise the detail rows will be drawn empty
											and their content should be drawn manually using formatItem event handler.
										Default is 'undefined' (i.e. false).</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
								<a name="embeddedfonts" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> embeddedFonts</h3>
								<div class="tsd-signature tsd-kind-icon">embedded<wbr>Fonts<span class="tsd-signature-symbol">:</span> <a href="wijmo_pdf.ipdffontfile.html" class="tsd-signature-type">IPdfFontFile</a><span class="tsd-signature-symbol">[]</span></div>
								<aside class="tsd-sources">
									<p>Inherited from <a href="wijmo_grid_pdf.iflexgriddrawsettings.html">IFlexGridDrawSettings</a>.<a href="wijmo_grid_pdf.iflexgriddrawsettings.html#embeddedfonts">embeddedFonts</a></p>
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Represents an array of custom fonts that will be embedded into the document.</p>
									</div>
									<p>This sample illustrates how to setup the FlexGridPdfConverter to use two custom
										fonts, Cuprum-Bold.ttf and Cuprum-Regular.ttf. The first one is applied to the
									header cells only, while the second one is applied to all the remaining cells.</p>
									<pre>wijmo.grid.pdf.FlexGridPdfConverter.export(flex, fileName, {
   embeddedFonts: [{
      source: 'resources/ttf/Cuprum-Bold.ttf',
      name: 'cuprum',
      style: 'normal',
      weight: 'bold'
   }, {
      source: 'resources/ttf/Cuprum-Regular.ttf',
      name: 'cuprum',
      style: 'normal',
      weight: 'normal'
   }],
   styles: {
      cellStyle: {
         font: {
            family: 'cuprum'
         }
      },
      headerCellStyle: {
         font: {
            weight: 'bold'
         }
      }
   }
});
</pre>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
								<a name="exportmode" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> exportMode</h3>
								<div class="tsd-signature tsd-kind-icon">export<wbr>Mode<span class="tsd-signature-symbol">:</span> <a href="../enums/wijmo_grid_pdf.exportmode.html" class="tsd-signature-type">ExportMode</a></div>
								<aside class="tsd-sources">
									<p>Inherited from <a href="wijmo_grid_pdf.iflexgriddrawsettings.html">IFlexGridDrawSettings</a>.<a href="wijmo_grid_pdf.iflexgriddrawsettings.html#exportmode">exportMode</a></p>
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Determines the export mode.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
								<a name="formatitem" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> formatItem</h3>
								<div class="tsd-signature tsd-kind-icon">format<wbr>Item<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Object</span></div>
								<aside class="tsd-sources">
									<p>Inherited from <a href="wijmo_grid_pdf.iflexgriddrawsettings.html">IFlexGridDrawSettings</a>.<a href="wijmo_grid_pdf.iflexgriddrawsettings.html#formatitem">formatItem</a></p>
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>An optional callback function called for every exported cell that allows to perform transformations of exported
										cell value and style, or perform a custom drawing.</p>
									</div>
									<p>The function accepts the <a href="../classes/wijmo_grid_pdf.pdfformatitemeventargs.html">PdfFormatItemEventArgs</a> class instance as the first argument.</p>
									<p>In case of custom drawing the <a href="../classes/wijmo_grid_pdf.pdfformatitemeventargs.html#cancel">PdfFormatItemEventArgs.cancel</a> property should be set to true to cancel the default cell content drawing, and
									the <a href="../classes/wijmo_grid_pdf.pdfformatitemeventargs.html#cancelborders">PdfFormatItemEventArgs.cancelBorders</a> property should be set to true to cancel the default cell borders drawing.</p>
									<pre>wijmo.grid.pdf.FlexGridPdfConverter.export(flex, fileName, {
   formatItem: function(args) {
       // Change the background color of the regular cells of "Country" column.
       if (args.panel.cellType === wijmo.grid.CellType.Cell &amp;&amp; args.panel.columns[args.col].binding === "country") {
           args.style.backgroundColor = 'blue';
       }
   }
});</pre>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
								<a name="maxpages" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> maxPages</h3>
								<div class="tsd-signature tsd-kind-icon">max<wbr>Pages<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
								<aside class="tsd-sources">
									<p>Inherited from <a href="wijmo_grid_pdf.iflexgriddrawsettings.html">IFlexGridDrawSettings</a>.<a href="wijmo_grid_pdf.iflexgriddrawsettings.html#maxpages">maxPages</a></p>
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Determines the maximum number of pages to export.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
								<a name="progress" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> progress</h3>
								<div class="tsd-signature tsd-kind-icon">progress<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Object</span></div>
								<aside class="tsd-sources">
									<p>Inherited from <a href="wijmo_grid_pdf.iflexgriddrawsettings.html">IFlexGridDrawSettings</a>.<a href="wijmo_grid_pdf.iflexgriddrawsettings.html#progress">progress</a></p>
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>An optional function that gives feedback about the progress of a task.
											The function accepts a single argument, a number changing from 0.0 to 1.0, where the value of 0.0 indicates that
										the operation has just begun and the value of 1.0 indicates that the operation has completed.</p>
									</div>
									<pre>wijmo.grid.pdf.FlexGridPdfConverter.export(flex, fileName, {
   progress: function(value) {
       // Handle the progress here.
   }
});</pre>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
								<a name="quickcellstyles" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> quickCellStyles</h3>
								<div class="tsd-signature tsd-kind-icon">quick<wbr>Cell<wbr>Styles<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
								<aside class="tsd-sources">
									<p>Inherited from <a href="wijmo_grid_pdf.iflexgriddrawsettings.html">IFlexGridDrawSettings</a>.<a href="wijmo_grid_pdf.iflexgriddrawsettings.html#quickcellstyles">quickCellStyles</a></p>
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>When turned on, decreases the drawing time by activating the cell styles caching if <a href="wijmo_grid_pdf.iflexgriddrawsettings.html#customcellcontent">IFlexGridDrawSettings.customCellContent</a> property is enabled.</p>
									</div>
									<p>The combination of cell's inline style specific properties, own CSS classes and CSS classes of row containing the cell is used as
										the cache tag. Before the cell style is calculated, the cache is checked first, and if the style associated with the tag is found there,
									it's taken from there and doesn't get recalculated.</p>
									<p>Using this mode can make the drawing slower when considerable amount of cells have the unique set of CSS classes and inline styles.
										Also, when pseudo classes like :first-child and :nth-child are used to style the cells and rows, the cell styles can be determined
									incorrectly.</p>
									<p>The default value is <b>true</b>.</p>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
								<a name="recalculatestarwidths" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> recalculateStarWidths</h3>
								<div class="tsd-signature tsd-kind-icon">recalculate<wbr>Star<wbr>Widths<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
								<aside class="tsd-sources">
									<p>Inherited from <a href="wijmo_grid_pdf.iflexgriddrawsettings.html">IFlexGridDrawSettings</a>.<a href="wijmo_grid_pdf.iflexgriddrawsettings.html#recalculatestarwidths">recalculateStarWidths</a></p>
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Indicates whether star-sized columns widths should be recalculated against the PDF page
										width instead of using the grid's width.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
								<a name="repeatmergedvaluesacrosspages" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> repeatMergedValuesAcrossPages</h3>
								<div class="tsd-signature tsd-kind-icon">repeat<wbr>Merged<wbr>Values<wbr>Across<wbr>Pages<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
								<aside class="tsd-sources">
									<p>Inherited from <a href="wijmo_grid_pdf.iflexgriddrawsettings.html">IFlexGridDrawSettings</a>.<a href="wijmo_grid_pdf.iflexgriddrawsettings.html#repeatmergedvaluesacrosspages">repeatMergedValuesAcrossPages</a></p>
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Indicates whether merged values should be repeated across pages when the merged range
										is split on multiple pages.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
								<a name="scalemode" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> scaleMode</h3>
								<div class="tsd-signature tsd-kind-icon">scale<wbr>Mode<span class="tsd-signature-symbol">:</span> <a href="../enums/wijmo_grid_pdf.scalemode.html" class="tsd-signature-type">ScaleMode</a></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Determines the scale mode.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
								<a name="styles" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> styles</h3>
								<div class="tsd-signature tsd-kind-icon">styles<span class="tsd-signature-symbol">:</span> <a href="wijmo_grid_pdf.iflexgridstyle.html" class="tsd-signature-type">IFlexGridStyle</a></div>
								<aside class="tsd-sources">
									<p>Inherited from <a href="wijmo_grid_pdf.iflexgriddrawsettings.html">IFlexGridDrawSettings</a>.<a href="wijmo_grid_pdf.iflexgriddrawsettings.html#styles">styles</a></p>
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Represents the look and feel of an exported <a href="../classes/wijmo_grid.flexgrid.html">FlexGrid</a>.</p>
									</div>
								</div>
							</section>
						</section>
					</div>