Click or drag to resize

PdfPortfolioInitialFile Property

(Optional) The embedded file that shall be initially presented in the user interface. If the InitialFile is or is not a valid PdfFileSpecification, the initial file shall be the current document (PDF Portfolio). If the InitialFile is valid and does not match any file in the EmbeddedFiles name tree, the interactive PDF processor shall select the first item from the list of files to display in its user interface; if no files exist in the name tree, the interactive PDF processor shall display an empty preview window.

(PDF 2.0) For unencrypted wrapper documents for an encrypted payload document the InitialFile is required, and shall identify the encrypted payload entry in the EmbeddedFiles name tree.


Namespace: SautinSoft.Pdf.Portfolios
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2024.11.26
Syntax
public PdfFileSpecification InitialFile { get; set; }

Property Value

PdfFileSpecification
The embedded file that shall be initially presented in the user interface.
Exceptions
ExceptionCondition
ArgumentExceptionThe PdfFileSpecification is not in the PDF Portfolio (not contained in the EmbeddedFiles).
Remarks
When setting a value this property performs a linear search in the EmbeddedFiles to find a key associated with the PdfFileSpecification that is to be set; therefore, it is an O(n) operation, where n is EmbeddedFiles count.
See Also