I need to use processing library, more specifically WordCram, to take output multiple PDF files. I do not want to use any applets, and PApplets of Processing library.
I am looking this reference page for taking only a PDF output,
import processing.pdf.*;
PGraphics pdf = createGraphics(300, 300, PDF, "output.pdf");
pdf.beginDraw();
pdf.line(50, 50, 250, 250);
pdf.dispose();
pdf.endDraw();
And this is the code for the WordCram,
new WordCram(this)
.fromWords(getWords(fromFile))
.withFont("Sawasdee")
.drawAll();
As far as I understand from this code, the WordCram constructor takes the input, this
, is the class inherited by PApplet
.
How am I going to use WordCram without having any PApplet?