Example usage for com.lowagie.text.html.simpleparser ChainedProperties ChainedProperties

List of usage examples for com.lowagie.text.html.simpleparser ChainedProperties ChainedProperties

Introduction

In this page you can find the example usage for com.lowagie.text.html.simpleparser ChainedProperties ChainedProperties.

Prototype

public ChainedProperties() 

Source Link

Document

Creates a new instance of ChainedProperties

Usage

From source file:org.sakaiproject.tool.assessment.pdf.itext.HTMLWorker.java

License:Mozilla Public License

/** Creates a new instance of HTMLWorker */
public HTMLWorker(DocListener document) {
    this.document = document;
    cprops = new ChainedProperties();
    String fontName = ServerConfigurationService.getString("pdf.default.font");
    if (StringUtils.isNotBlank(fontName)) {
        FontFactory.registerDirectories();
        if (FontFactory.isRegistered(fontName)) {
            HashMap fontProps = new HashMap();
            fontProps.put(ElementTags.FACE, fontName);
            fontProps.put("encoding", BaseFont.IDENTITY_H);
            cprops.addToChain("face", fontProps);
        }//from   w w w .j  av a 2s.co  m
    }
}