This content has been marked as final. Show 2 replies
Conversion code does not support converting bits and pieces of a files (it convert the entire file)
You can use the printing code from the jvue.html to print a page of a file but when printing to a file it might be difficult to see where the output file is (driver dependent or you may get a dialog) and those lssues will need to be dealt with outside JVue.
var myApp = window.document.applets["JVue"];
var pPropsClass = myApp.getClass("com.cimmetry.common.PrintProperties");
var pProps = pPropsClass.newInstance();
pProps.getHeaders().setTopCenterText("My header is here");
pProps.getHeaders().setBottomRightText("%p of %n");
The sample then calls JVue.batchPrint, but you would likely want to use JVue.printFile. For more information see the Javadocs for the com.cimmetry.jvue.JVue.printFile method, as well as the com.cimmetry.common.PrintOptions class and com.cimmetry.common.PrintProperties class. The methods com.cimmetry.common.PrintOptions.setFromPage and com.cimmetry.common.PrintOptions.setToPage might be what you need.
Also for cleanliness, can use the static constant to indicate to print a range: com.cimmetry.common.PrintOptions.setPages(com.cimmetry.common.PrintOptions.PAGES_RANGE)