webViewer.setLayoutMode('Single');
</script>
Can you tell me whats wrong with this code? I cant set the layoutmode to single.
Thanks
Aly
vyc...@pdftron.com PDFTron Systems, Inc. http://www.pdftron.com/
I have tried following in my code but none of this works. Can you please help me out? webViewer.setLayoutMode("SinglePage"); webViewer = new WebViewer("html5,silverlight", { initialDoc : "../documentation.xod" }); webViewer = new WebViewer("html5,silverlight", { initialDoc : "../documentation.xod" }); webViewer.setLayoutMode("SinglePage"); On Tue, May 1, 2012 at 4:19 PM, Vincent Ycasas <vyc...@pdftron.com> wrote:
-- You received this message because you are subscribed to the "PDFTron WebViewer" group. To post to this group, send email to sup...@pdftron.com To unsubscribe from this group, send email to pdfnet-webview...@googlegroups.com. For more information, please visit us at http://www.pdftron.com/pdfnet/webviewer
I see that you are actually attempting to load the document in Single Page mode by default. In this case use the following steps:
Open WebViewer/html5/ReaderControl.js file and find the following line in the
code:
window.readerControl = new ReaderControl(iframe);
Add the following right after the line found:
window.readerControl.docViewer.SetDisplayMode(window.readerControl.docViewer.DisplayMode.Single);
It should go like:
window.readerControl = new
ReaderControl(iframe);
window.readerControl.docViewer.SetDisplayMode(window.readerControl.docViewer.DisplayMode.Single);
window.readerControl = new ReaderControl
window.readerControl.setLayoutMode(CoreControls.DisplayModes.Single);
window.readerControl = new ReaderControl(viewerElement, enableAnnot, enableOffline);
window.readerControl.setLayoutMode(CoreControls.DisplayModes.Single);
With WebViewer 1.5.0 change this line to: