voyent
ICEpdf pro fontengine on/off control  XML
Forum Index -> ICEpdf General
Author Message
blueblackbox

Joined: 27/Oct/2016 05:43:17
Messages: 18
Offline


Hi,
I know the fontengine is by default activated in the pro version and you can turn on/off by providing the demo button using
"-Dorg.icepdf.ri.viewer.demo=true".

But instead of having this button is there a way to programmatically control i.e. turn on/off the font engine from an application.

Thanks.
patrick.corless

Joined: 26/Oct/2004 00:00:00
Messages: 1982
Offline


It looks something like this:

Code:
// get instance of the font factory
 FontFactory.getInstance().toggleAwtFontSubstitution();
 // refresh the document, refresh will happen by the component.
 ((AbstractDocumentView) documentViewController.getDocumentView()).firePropertyChange(
     PropertyConstants.DOCUMENT_VIEW_DEMO_MODE_CHANGE, false, true);
[Email]
blueblackbox

Joined: 27/Oct/2016 05:43:17
Messages: 18
Offline


Thank you Patrick.
 
Forum Index -> ICEpdf General
Go to:   
Powered by JForum 2.1.7ice © JForum Team