PdfContentEditor.GetViewerPreference

PdfContentEditor.GetViewerPreference method

Returns the view preference.

public int GetViewerPreference()

Return Value

Returns set of ViewerPrefernece flags

Examples

PdfContentEditor editor = new PdfContentEditor();
editor.BindPdf("example.pdf");
int prefValue = editor.GetViewerPreference();
if ((prefValue & ViewerPreference.PageModeUseOutline) != 0)
{ // ... }

See Also