}
public void makePDF(PApplet a, String pdfSaveLocation) {
PGraphicsPDF pdf = (PGraphicsPDF) a.createGraphics(
(int) (this.materialWidth * pdf_pixels_per_mm),
(int) (this.materialHeight * pdf_pixels_per_mm), PConstants.PDF,
pdfSaveLocation);
LOGGER.info("sending PDF to " + pdfSaveLocation);
pdf.beginDraw();
//pdf.scale(pdf_pixels_per_mm);
pdf.strokeWeight(.0001f);
pdf.stroke(255, 0, 0);
//PFont font = a.createFont("Arial", this.textSize);
//pdf.textFont(font);
pdf.textSize(this.textSize);
this.pages.renderPDF(pdf, pdf_pixels_per_mm);
pdf.dispose();
pdf.endDraw();
}