# Wijmo_Pdf.Ipdfdocumentoptions

## Content

<div class="content__tsd">
						<div style="display:flex;justify-content:space-between;align-items:center">
							<h1>
								IPdfDocumentOptions Interface
							</h1>
						</div>
						<section class="tsd-comment">
							<div class="tsd-comment">
								<div class="lead">
									<p>Represents the <a href="../classes/wijmo_pdf.pdfdocument.html">PdfDocument</a> initialization settings.</p>
								</div>
							</div>
						</section>
						<section class="tsd-hierarchy">
							<h3>Heirarchy</h3>
							<ul class="tsd-hierarchy">
								<li>
									<span class="target">IPdfDocumentOptions</span>
								</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"><a href="wijmo_pdf.ipdfdocumentoptions.html#bufferpages" class="tsd-kind-icon">buffer<wbr>Pages</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface"><a href="wijmo_pdf.ipdfdocumentoptions.html#compress" class="tsd-kind-icon">compress</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface"><a href="wijmo_pdf.ipdfdocumentoptions.html#displaytitle" class="tsd-kind-icon">display<wbr>Title</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface"><a href="wijmo_pdf.ipdfdocumentoptions.html#ended" class="tsd-kind-icon">ended</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface"><a href="wijmo_pdf.ipdfdocumentoptions.html#footer" class="tsd-kind-icon">footer</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface"><a href="wijmo_pdf.ipdfdocumentoptions.html#header" class="tsd-kind-icon">header</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface"><a href="wijmo_pdf.ipdfdocumentoptions.html#info" class="tsd-kind-icon">info</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface"><a href="wijmo_pdf.ipdfdocumentoptions.html#lang" class="tsd-kind-icon">lang</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface"><a href="wijmo_pdf.ipdfdocumentoptions.html#linegap" class="tsd-kind-icon">line<wbr>Gap</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface"><a href="wijmo_pdf.ipdfdocumentoptions.html#ownerpassword" class="tsd-kind-icon">owner<wbr>Password</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface"><a href="wijmo_pdf.ipdfdocumentoptions.html#pageadded" class="tsd-kind-icon">page<wbr>Added</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface"><a href="wijmo_pdf.ipdfdocumentoptions.html#pagesettings" class="tsd-kind-icon">page<wbr>Settings</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface"><a href="wijmo_pdf.ipdfdocumentoptions.html#permissions" class="tsd-kind-icon">permissions</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface"><a href="wijmo_pdf.ipdfdocumentoptions.html#tagged" class="tsd-kind-icon">tagged</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface"><a href="wijmo_pdf.ipdfdocumentoptions.html#userpassword" class="tsd-kind-icon">user<wbr>Password</a></li>
											<li class="tsd-kind-property tsd-parent-kind-interface"><a href="wijmo_pdf.ipdfdocumentoptions.html#version" class="tsd-kind-icon">version</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">
								<a name="bufferpages" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> bufferPages</h3>
								<div class="tsd-signature tsd-kind-icon">buffer<wbr>Pages<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Indicates whether the pages buffering mode is enabled which means that the document's pages
										can be iterated over using <a href="../classes/wijmo_pdf.pdfdocument.html#pageindex">PdfDocument.pageIndex</a> and <a href="../classes/wijmo_pdf.pdfdocument.html#bufferedpagerange">PdfDocument.bufferedPageRange</a>.</p>
									</div>
									<p>This property can be set to false only if both <a href="wijmo_pdf.ipdfdocumentoptions.html#header">header</a> and <a href="wijmo_pdf.ipdfdocumentoptions.html#footer">footer</a> are invisible.</p>
									<p>The default value is true.</p>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
								<a name="compress" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> compress</h3>
								<div class="tsd-signature tsd-kind-icon">compress<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Indicates whether the document compression is enabled.</p>
									</div>
									<p>The default value is true.</p>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
								<a name="displaytitle" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> displayTitle</h3>
								<div class="tsd-signature tsd-kind-icon">display<wbr>Title<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Specifies whether the window's title bar should display the document title taken from <a href="wijmo_pdf.ipdfdocumentinfo.html#title">IPdfDocumentInfo.title</a>.
										If false, the name of the PDF file should be displayed.</p>
									</div>
									<p>The default value is <strong>false</strong>.</p>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
								<a name="ended" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> ended</h3>
								<div class="tsd-signature tsd-kind-icon">ended<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Object</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Occurs when the document has been rendered.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
								<a name="footer" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> footer</h3>
								<div class="tsd-signature tsd-kind-icon">footer<span class="tsd-signature-symbol">:</span> <a href="wijmo_pdf.ipdfrunningtitleoptions.html" class="tsd-signature-type">IPdfRunningTitleOptions</a></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Represents the initialization settings of a footer, the page area positioned right above
										the bottom margin.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
								<a name="header" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> header</h3>
								<div class="tsd-signature tsd-kind-icon">header<span class="tsd-signature-symbol">:</span> <a href="wijmo_pdf.ipdfrunningtitleoptions.html" class="tsd-signature-type">IPdfRunningTitleOptions</a></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Represents the initialization settings of a header, the page area positioned right below
										the top margin.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
								<a name="info" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> info</h3>
								<div class="tsd-signature tsd-kind-icon">info<span class="tsd-signature-symbol">:</span> <a href="wijmo_pdf.ipdfdocumentinfo.html" class="tsd-signature-type">IPdfDocumentInfo</a></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Represents the document information, such as author name, document's creation date and so on.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
								<a name="lang" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> lang</h3>
								<div class="tsd-signature tsd-kind-icon">lang<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Represents the default natural language of the document.</p>
									</div>
									<p>The language code is a 2-character ISO 639 language code (e.g. "en" for English or "ja" for Japanese) followed
										by an optional 2-character ISO 3166 country code (e.g. "US" for the United States or "JP" for Japan).
									For example: "en", "en-US", "ja-JP".</p>
									<p>The default value is <strong>undefined</strong> which means that the document does not have the default natural language.</p>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
								<a name="linegap" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> lineGap</h3>
								<div class="tsd-signature tsd-kind-icon">line<wbr>Gap<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Represents the spacing between each line of text, in points.</p>
									</div>
									<p>The default value is 0.</p>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
								<a name="ownerpassword" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> ownerPassword</h3>
								<div class="tsd-signature tsd-kind-icon">owner<wbr>Password<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Represents the PDF owner password.</p>
									</div>
									<p>When only owner password is provided, users are able to decrypt and open the document without providing any password,
										but the access is limited to those operations explicitly permitted according to <a href="wijmo_pdf.ipdfdocumentoptions.html#permissions">permissions</a> settings.
									Users with owner password have full access to the document.</p>
									<p>When both owner password and <a href="wijmo_pdf.ipdfdocumentoptions.html#userpassword">userPassword</a> are provided, users with user password are able to decrypt the file
										but only have limited access to the file according to <a href="wijmo_pdf.ipdfdocumentoptions.html#permissions">permissions</a> settings.
									Users with owner password have full access to the document.</p>
									<p>The <a href="../modules/wijmo_pdf_security.html">wijmo.pdf.security</a> module must be added on page to use PDF encryption and permissions settings.</p>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
								<a name="pageadded" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> pageAdded</h3>
								<div class="tsd-signature tsd-kind-icon">page<wbr>Added<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Object</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Occurs when a new page is added to the document.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
								<a name="pagesettings" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> pageSettings</h3>
								<div class="tsd-signature tsd-kind-icon">page<wbr>Settings<span class="tsd-signature-symbol">:</span> <a href="wijmo_pdf.ipdfpagesettings.html" class="tsd-signature-type">IPdfPageSettings</a></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Represents the default page settings for the pages added automatically and for the <a href="../classes/wijmo_pdf.pdfdocument.html#addpage">PdfDocument.addPage</a> method.</p>
									</div>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
								<a name="permissions" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> permissions</h3>
								<div class="tsd-signature tsd-kind-icon">permissions<span class="tsd-signature-symbol">:</span> <a href="wijmo_pdf.ipdfpermissions.html" class="tsd-signature-type">IPdfPermissions</a></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Represents PDF file permissions.</p>
									</div>
									<p>To set permissons for the PDF file, you need to provide an <a href="wijmo_pdf.ipdfdocumentoptions.html#ownerpassword">ownerPassword</a> along with the permissions settings.
									By default, all operations are disallowed. You need to explicitly allow certain operations.</p>
									<p>The <a href="../modules/wijmo_pdf_security.html">wijmo.pdf.security</a> module must be added on page to use PDF encryption and permissions settings.</p>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
								<a name="tagged" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> tagged</h3>
								<div class="tsd-signature tsd-kind-icon">tagged<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Indicates that the document conforms to Tagged PDF conventions.
										For a document to be recognized as a Tagged PDF document this value must be <strong>true</strong>.</p>
									</div>
									<p>The default value is <strong>false</strong>.</p>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
								<a name="userpassword" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> userPassword</h3>
								<div class="tsd-signature tsd-kind-icon">user<wbr>Password<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Represents the PDF user password.</p>
									</div>
									<p>When only user password is provided, users with user password are able to decrypt the file and have full access to the document.</p>
									<p>When both user password and <a href="wijmo_pdf.ipdfdocumentoptions.html#ownerpassword">ownerPassword</a> are provided, users with user password are able to decrypt the file
										but only have limited access to the file according to <a href="wijmo_pdf.ipdfdocumentoptions.html#permissions">permissions</a> settings.
									Users with owner password have full access to the document.</p>
									<p>The <a href="../modules/wijmo_pdf_security.html">wijmo.pdf.security</a> module must be added on page to use PDF encryption and permissions settings.</p>
								</div>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
								<a name="version" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> version</h3>
								<div class="tsd-signature tsd-kind-icon">version<span class="tsd-signature-symbol">:</span> <a href="../enums/wijmo_pdf.pdfversion.html" class="tsd-signature-type">PdfVersion</a></div>
								<aside class="tsd-sources">
								</aside>
								<div class="tsd-comment">
									<div class="lead">
										<p>Represents PDF file version.</p>
									</div>
									<p>The PDF file version determines encryption algorithm and key length to use:</p>
									<ul>
										<li><a href="../enums/wijmo_pdf.pdfversion.html#v1_3">PdfVersion.v1_3</a>, 40-bit RC4.</li>
										<li><a href="../enums/wijmo_pdf.pdfversion.html#v1_4">PdfVersion.v1_4</a>, 128-bit RC4.</li>
										<li><a href="../enums/wijmo_pdf.pdfversion.html#v1_5">PdfVersion.v1_5</a>, 128-bit RC4.</li>
										<li><a href="../enums/wijmo_pdf.pdfversion.html#v1_6">PdfVersion.v1_6</a>, 128-bit AES.</li>
										<li><a href="../enums/wijmo_pdf.pdfversion.html#v1_7">PdfVersion.v1_7</a>, 128-bit AES.</li>
										<li><a href="../enums/wijmo_pdf.pdfversion.html#v1_7ext3">PdfVersion.v1_7Ext3</a>, 256-bit AES.</li>
									</ul>
									<p>When using PDF version 1.7 ExtensionLevel 3, password is truncated to 127 bytes of its UTF-8 representation.
									In older versions, password is truncated to 32 bytes, and only Latin-1 characters are allowed.</p>
									<p>The default value is <a href="../enums/wijmo_pdf.pdfversion.html#v1_3">PdfVersion.v1_3</a>.</p>
								</div>
							</section>
						</section>
					</div>