This sample demonstrates creating a custom document viewer for HTML5 documents. It loads aò HTML5 document and displays it in a scrollable area. To create documents compatible with this viewer sample, you need to use Print2Flash's HTML5 document feature. The sample may be used as a base for creation of your own Print2Flash document viewer.
Just unpack the sample folder to disk.
To launch the sample, just open the testviewer.html file in your browser. You should see a toolbar displayed at the top of the page and a scrollable document below. The toolbar contains two buttons: Next Page and Previous Page which you may use for switching between pages.
To modify the sample, you need to open the sampleviewer.html file in a text or HTML editor, introduce necessary modifications and reload the viewer test file in the browser.
If you want to display your own documents using this sample, you need to apply this custom HTML viewer in the HTML5 Output tab of Document Options window (click Use Custom Template option and pick the sampleviewer.html file from disk). Then you may convert your documents using Print2Flash as usual and you will obtain HTML5 documents displayed by this viewer.
Copyright (C) Print2Flash Software. All rights reserved |