This sample contains two VBScript programs that demonstrate various techniques that can be used to convert documents to Flash/SWF or HTML/SVG format using Print2Flash OLE Automation. These script files are well commented so you should get a general idea by analyzing the code, executing the scripts and seeing the results. The samples folder also has P2FAPIConst.vb file which contains Automation API enumeration constants that you may include in your VB files.
Just unpack the sample folder to disk.
The sample contains two VBScript programs:
The source text documents used for conversion are contained in docs folder. The output Flash (.swf) and HTML document (.xml) files are written to all subdirectories contained in the sample folder.
To launch a sample file, just double click it in Windows Explorer. The sample should convert a number of files and you may see Notepad printing window while the program works. After all documents have been converted, you should see "All documents have been converted" message.
To view converted Flash documents, you need either double click them in Windows Explorer or right click them and choose "Open With..." and then - Internet Explorer (if you do not see Internet Explorer there, select Choose Program and then - Internet Explorer). HTML5 documents require a document viewer to view them. This sample provides the standard Print2Flash document viewer located in htmldocviewer.html file. To view HTML5 documents obtained from running ConvertFile.wsf script, you need to open ConvertFileResult.html file. To view HTML5 documents obtained from running ConvertDir.wsf script, you need to open ConvertDirResult.html file.
To clean up the directories from the Flash and HTML5 files created at previous runs, launch cleanup.bat file.
Copyright (C) Print2Flash Software. All rights reserved |