All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gutenberg.itext.pegdown.SpecialTextNodeProcessor Maven / Gradle / Ivy

There is a newer version: 1.3.0
Show newest version
package gutenberg.itext.pegdown;

import com.itextpdf.text.Chunk;
import org.pegdown.ast.Node;
import org.pegdown.ast.SpecialTextNode;

/**
 * @author @aloyer
 */
public class SpecialTextNodeProcessor extends Processor {
    @Override
    public void process(int level, Node node, InvocationContext context) {
        SpecialTextNode tNode = (SpecialTextNode) node;
        context.append(new Chunk(tNode.getText(), context.peekFont()));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy