/// <summary> /// Sets the page mode according to the specified value. /// </summary> public virtual void SetPageMode(PdfPageMode pageMode) { string mode = ""; switch (pageMode) { case PdfPageMode.UseNone: mode = "none"; break; case PdfPageMode.UseOutlines: mode = "bookmarks"; break; case PdfPageMode.UseThumbs: mode = "thumbs"; break; //case PdfPageMode.FullScreen: // mode = "fullscreen"; // TODO: not documented by Adobe, value guessed... // break; // //case PdfPageMode.UseOC: // mode = "oc"; // TODO: not documented by Adobe, value guessed... // break; // //case PdfPageMode.UseAttachments: // mode = "attachments"; // TODO: not documented by Adobe, value guessed... // break; } this.axAcroPDF.setPageMode(mode); }
/// <summary> /// Sets the page mode according to the specified value. /// </summary> public virtual void SetPageMode(PdfPageMode pageMode) { this.viewer.SetPageMode(pageMode); }
/// <summary> /// Sets the page mode according to the specified value. /// </summary> public virtual void SetPageMode(PdfPageMode pageMode) { string mode = ""; switch (pageMode) { case PdfPageMode.UseNone: mode = "none"; break; case PdfPageMode.UseOutlines: mode = "bookmarks"; break; case PdfPageMode.UseThumbs: mode = "thumbs"; break; //case PdfPageMode.FullScreen: // mode = "fullscreen"; // TODO: not documented by Adobe, value guessed... // break; // //case PdfPageMode.UseOC: // mode = "oc"; // TODO: not documented by Adobe, value guessed... // break; // //case PdfPageMode.UseAttachments: // mode = "attachments"; // TODO: not documented by Adobe, value guessed... // break; } #if Acro7 this.axAcroPDF7.setPageMode(mode); #else if (this.axAcroPDF7 != null) this.axAcroPDF7.setPageMode(mode); else this.axPdf6.setPageMode(mode); #endif }
/// <summary> /// Sets the page mode according to the specified value. /// </summary> public virtual void SetPageMode(PdfPageMode pageMode) { if (this.ocx == null) throw new AxHost.InvalidActiveXStateException("setPageMode", AxHost.ActiveXInvokeKind.MethodInvoke); string mode = ""; switch (pageMode) { case PdfPageMode.UseNone: mode = "none"; break; case PdfPageMode.UseOutlines: mode = "bookmarks"; break; case PdfPageMode.UseThumbs: mode = "thumbs"; break; //case PdfPageMode.FullScreen: // mode = "fullscreen"; // TODO: not documented by Adobe, value guessed... // break; // //case PdfPageMode.UseOC: // mode = "oc"; // TODO: not documented by Adobe, value guessed... // break; // //case PdfPageMode.UseAttachments: // mode = "attachments"; // TODO: not documented by Adobe, value guessed... // break; } this.ocx.setPageMode(mode); }