# Problem with duplicate objects when exporting to PDF

**URL:** <https://discourse.processing.org/t/problem-with-duplicate-objects-when-exporting-to-pdf/37364>\
**Category:** Coding Questions\
**Created:** [June 6, 2022, 3:25pm UTC](https://discourse.processing.org/t/problem-with-duplicate-objects-when-exporting-to-pdf/37364 "2022-06-06T15:25:04Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [June 6, 2022, 6:30pm UTC](https://discourse.processing.org/t/problem-with-duplicate-objects-when-exporting-to-pdf/37364/10 "2022-06-06T18:30:42Z")

</div>

Hello,

A related topic:  
[https://discourse.processing.org/t/how-do-i-get-my-pdf-to-render-properly/37349/5](https://discourse.processing.org/t/how-do-i-get-my-pdf-to-render-properly/37349/5)

Try this:

```auto
import processing.pdf.*;

String fileName;

void setup()
  {
  size(400, 400);

  fileName = "output/" + day()+hour()+minute() + "-###.pdf";
  //noStroke();
  //fill(0);
  beginRecord(PDF, fileName);
  noStroke(); // Moved to here
  fill(0); // Moved to here
  background(255);
  circle(200, 200, 50);
  endRecord();
  }

```

`:)`

---

_[View the full topic](https://discourse.processing.org/t/problem-with-duplicate-objects-when-exporting-to-pdf/37364)._
