# PDF Export with BLUR

**URL:** <https://discourse.processing.org/t/pdf-export-with-blur/3974>\
**Category:** Coding Questions\
**Created:** [September 30, 2018, 9:12am UTC](https://discourse.processing.org/t/pdf-export-with-blur/3974 "2018-09-30T09:12:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KeremTurkyilmaz](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/keremturkyilmaz/32/4433_2.png) [@KeremTurkyilmaz](https://discourse.processing.org/u/KeremTurkyilmaz)\
**Post date:** [September 30, 2018, 9:12am UTC](https://discourse.processing.org/t/pdf-export-with-blur/3974/1 "2018-09-30T09:12:31Z")

</div>

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.

 ![0](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/d/ddfc0394e41f1ee07972e71eb1ee42c159757a2e.png)

```auto
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;
}

```

```auto
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);
  }
}

```

---

<div class="post-metadata">

**Author:** ![desk](https://avatars.discourse-cdn.com/v4/letter/d/a9a28c/32.png) [@desk](https://discourse.processing.org/u/desk)\
**Post date:** [October 1, 2018, 6:29am UTC](https://discourse.processing.org/t/pdf-export-with-blur/3974/2 "2018-10-01T06:29:57Z")

</div>

Since I’m not familiar with your specific application, it would be helpful if you posted the complete code for your program.
