File Options
Each file format comes with its specific load options. You can set the options as required.
-
BaseOptions
- PdfOptions
- WordOptions
- ExcelOptions
- PptOptions
BaseOptions
public int ImageResolution = 200;
public bool ShowUI = true;
public bool CachePages = true;
public bool QuickLoad = false;
BaseOptions are the common set of options for all file formats.
ImageResolution |
integer |
Set the resolution of the image that gets rendered in the browser. The default value is 200. |
ShowUI |
boolean |
Set this value to false when using the viewer as a service for PDF or PNG export. The default value is true. |
CachePages |
boolean |
When set to true the viewer will cache the pages to load them fast. The default value is true. |
QuickLoad |
boolean |
Set this true to load file with minimum features. The default value is false. |
PdfOptions
public bool AllowSearch = false;
public bool ExtractTexts = false;
public bool ExtractHyperlinks = false;
public string CMapPath = "";
AllowSearch |
boolean |
Whether the search functionality is available or not. The default value is false. |
ExtractTexts |
boolean |
Whether the text selection functionality is available or not. The default value is false. |
CachePages |
boolean |
Whether the hyperlink functionality is available or not. The default value is false. |
CMapPath |
string |
Path of the character map (CMAP) directory. The default value is "". |
WordOptions
public bool ExportPdfA = true;
public bool ConvertPdf = true;
public SizeF PaperSize = DocPaperSize.Auto;
public bool RemovePaperMargin = false;
public PdfOptions PdfOptions = new PdfOptions();
ExportPdfA |
boolean |
Set the PDF export type to PdfA. The default value is true. |
ConvertPdf |
boolean |
Set this value to true if you want to convert the word file to PDF before viewing. The default value is true. |
PaperSize |
SizeF |
Set the paper size. The default value is Auto. |
RemovePaperMargin |
boolean |
Set this to true if you want to remove margins. The default value is false. |
PdfOptions |
PdfOptions |
The PdfOptions to use when ConvertPdf is set to true. The default value is new PdfOptions(). |
ExcelOptions
public bool ExportPdfA = true;
public bool ConvertPdf = true;
public SizeF PaperSize = ExcelPaperSize.PaperA3;
public double PaperMargins = 0.25;
public bool PaperLandscape = true;
public bool AutoFitContents = false;
public bool RemoveEmptyContent = false;
public bool ShowEmptyWorkSheets = false;
public bool CalculateFormula = true;
public bool ShowRowColumnHeaders = true;
public ArrayList SheetNames = new ArrayList();
public bool ExportLandscape = true;
public bool ExportOnePagePerWorkSheet = true;
public PdfOptions PdfOptions = null;
ExportPdfA |
boolean |
Set the PDF export type to PdfA. The default value is true. |
ConvertPdf |
boolean |
Set this value to true if you want to convert the excel file to PDF before viewing. The default value is true. |
PaperSize |
SizeF |
Set the paper size. The default value is PaperA3. |
PaperMargins |
double |
Specify value for paper margin. The default value is 0.25. |
PaperLandscape |
boolean |
Specify true to view document in landscape mode. The default value is true. |
AutoFitContents |
boolean |
Specify true to autofit all the contents of rows and columns. The default value is false. |
RemoveEmptyContent |
boolean |
Specify true to remove empty/blank rows. The default value is false. |
ShowEmptyWorkSheets |
boolean |
Specify true to want to keep empty worksheets. The default value is false. |
CalculateFormula |
boolean |
Specify true to automatically calculate all excel formula. The default value is true. |
ShowRowColumnHeaders |
boolean |
Specify true to show the column header text. The default value is true. |
SheetNames |
ArrayList |
Get all the worksheet names of the excel file. The default value is new ArrayList(). |
ExportLandscape |
boolean |
Specify true to export to pdf in landscape view. The default value is true. |
ExportOnePagePerWorkSheet |
boolean |
Specify true to export each sheet as a Pdf page. The default value is true. |
PdfOptions |
PdfOptions |
The PdfOptions to use when ConvertPdf is set to true. The default value is new PdfOptions(). |
PptOptions
public bool ExportPdfA = true;
public bool ConvertPdf = true;
public PdfOptions PdfOptions = new PdfOptions();
ExportPdfA |
boolean |
Set the PDF export type to PdfA. The default value is true. |
ConvertPdf |
boolean |
Set this value to true if you want to convert the word file to PDF before viewing. The default value is true. |
PdfOptions |
PdfOptions |
The PdfOptions to use when ConvertPdf is set to true. The default value is new PdfOptions(). |