Hi,
I made a simple sketch and I want to export PDF File, but when the pdf is out is blurred.If I open the file in illustrator there is un full resolution, but if I use the pdf for a print is already blurred.
import processing.pdf.*;
String filename() {
int d = day();
int m = month();
int y = year();
int h = hour();
int mi = minute();
int s = second();
String filename = nf(d, 2) + nf(m, 2) + nf(y, 4) + nf(h, 2) + nf(mi, 2) + nf(s, 2) + ".pdf";
return filename;
}
void savePDF() {
beginRecord(PDF, filename());
background(w);
}
void closePDF() {
endRecord();
println("PDF Salvato " + filename());
record = false;
}
void draw() {
//background(w);
// AutoSave mode
if (autoSave) if ((frameCount % autoSaveSec) == 0) record = !record;
if (record) savePDF(); // START recording PDF
preview.beginDraw();
render(preview);
preview.endDraw();
image(preview, 0, 0, width, height);
if (record) closePDF();// END recording PDF
}
void render(PGraphics gfx) {
for (Cella c : cells) {
c.edges();
c.move();
c.modeColor(gfx);
c.display(gfx);
}
}