Class PdfViewerPreferencesImp
- Namespace
- iTextSharp.text.pdf.intern
- Assembly
- iTextSharp.LGPLv2.Core.dll
Stores the information concerning viewer preferences, and contains the business logic that allows you to set viewer preferences.
public class PdfViewerPreferencesImp : IPdfViewerPreferences
- Inheritance
-
PdfViewerPreferencesImp
- Implements
- Inherited Members
Constructors
PdfViewerPreferencesImp()
public PdfViewerPreferencesImp()
Fields
DirectionPreferences
A series of viewer preferences.
public static readonly PdfName[] DirectionPreferences
Field Value
- PdfName[]
DuplexPreferences
A series of viewer preferences.
public static readonly PdfName[] DuplexPreferences
Field Value
- PdfName[]
NonfullscreenpagemodePreferences
A series of viewer preferences.
public static readonly PdfName[] NonfullscreenpagemodePreferences
Field Value
- PdfName[]
PageBoundaries
A series of viewer preferences.
public static readonly PdfName[] PageBoundaries
Field Value
- PdfName[]
PrintscalingPreferences
A series of viewer preferences
public static readonly PdfName[] PrintscalingPreferences
Field Value
- PdfName[]
VIEWER_PREFERENCES
public static readonly PdfName[] VIEWER_PREFERENCES
Field Value
- PdfName[]
Properties
PageLayoutAndMode
Returns the page layout and page mode value.
public int PageLayoutAndMode { get; }
Property Value
ViewerPreferences
Sets the viewer preferences as the sum of several constants. the viewer preferences @see PdfWriter#setViewerPreferences
public int ViewerPreferences { set; }
Property Value
Methods
AddToCatalog(PdfDictionary)
Adds the viewer preferences defined in the preferences parameter to a PdfDictionary (more specifically the root or catalog of a PDF file).
public void AddToCatalog(PdfDictionary catalog)
Parameters
catalog
PdfDictionary
AddViewerPreference(PdfName, PdfObject)
Sets the viewer preferences for printing.
public virtual void AddViewerPreference(PdfName key, PdfObject value)
Parameters
GetViewerPreferences()
Returns the viewer preferences.
public PdfDictionary GetViewerPreferences()
Returns
GetViewerPreferences(PdfDictionary)
public static PdfViewerPreferencesImp GetViewerPreferences(PdfDictionary catalog)
Parameters
catalog
PdfDictionary