Home  • Download  • Register Now!  • Benefits  • Help  • Testimonials  • Samples  • Screenshots  • Awards  • Forum  • Convert Documents Online  • Print2Flash APIs  • Print2Flash vs. FlashPaper  • Contact Us
 Help Contents

HTML5Options object

The HTML5Options object contains options specific for HTML5 documents.

Object access

You may retrieve an HTML5Options object instance using HTML5Options property of Profile object:

Set HTML5Options=P2F.DefaultProfile.HTML5Options 
Here P2F refers to Server object instance. Then you can access its properties and methods using a reference to the created object.

 

Properties
 

Name Type Description
Compatibility BROWSER_TYPE enumeration This is a bit mask that specifies the browsers that produced HTML5 documents should be compatible with.
Compression Boolean This property specifies if SVG page files of HTML5 documents should be compressed using GZIP algorithm to produce compressed SVGZ files.
DocTemplate String Specifies the name of the custom document viewer template file for HTML5 documents. See Designing Custom Viewer for HTML5 Documents topic for more information.
EmbedResources Boolean The property controls creation of autonomous SVG files not linked to any external files. See HTML5 Output Tab help topic for more details.
SinglePageModeThreshold Integer If ViewMode property is set to AUTOVIEW, this property specifies the number of pages which, when exceeded, switches the document viewer to Single Page mode. If this number is not exceeded, the viewer works in Multiple Page mode.
SubsetFonts Boolean The property controls WOFF font generation. This option can be set to true only if EmbedResources option is false (otherwise, it is assumed false). See HTML5 Output Tab help topic for more details.
VersionIE String The minimum version of Internet Explorer browser required to support by HTML5 documents. It could not be less than the minimum version supported by HTML5 documents
VersionFirefox String The minimum version of Mozilla Firefox browser required to support by HTML5 documents. It could not be less than the minimum version supported by HTML5 documents.
VersionChrome String The minimum version of Google Chrome browser required to support by HTML5 documents. It could not be less than the minimum version supported by HTML5 documents.
VersionOpera String The minimum version of Opera browser required to support by HTML5 documents. It could not be less than the minimum version supported by HTML5 documents.
VersionSafari String The minimum version of Safari browser required to support by HTML5 documents. It could not be less than the minimum version supported by HTML5 documents.
ViewMode VIEW_MODE enumeration View mode for HTML5 documents.

If you changed properties of this object and want to save the changes, use ApplyChanges method of the Profile object which contains this HTML5Options object instance.

Examples

The following example obtains an HTML5Options object instance, changes its Compatibility property to request support of only Internet Explorer and Chrome browser and saves the changes:

Set Profile=P2F.DefaultProfile
Set HTML5Options=Profile.HTML5Options 
HTML5Options.Compatibility=INTERNET_EXPLORER or CHROME 
Profile.ApplyChanges

Here P2F refers to a Server object instance.