# Newb Question: Saving to PDF

**URL:** <https://discourse.processing.org/t/newb-question-saving-to-pdf/39123>\
**Category:** Libraries\
**Created:** [October 6, 2022, 8:36pm UTC](https://discourse.processing.org/t/newb-question-saving-to-pdf/39123 "2022-10-06T20:36:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [October 6, 2022, 9:07pm UTC](https://discourse.processing.org/t/newb-question-saving-to-pdf/39123/2 "2022-10-06T21:07:09Z")

</div>

Hi

Look at this

> [@Saving canvas in PDF](https://discourse.processing.org/t/saving-canvas-in-pdf/3025/10):
>
> Here is a minimal example that is not working: var sign = true; function setup() { var myCanvas = createCanvas(400, 400, SVG); myCanvas.parent("myContainer"); pdf = createPDF(); pdf.beginRecord(); } function draw() { fill(0, 0, 255); ellipse(width/2, height/2, width/2, height/2); if (sign) { pdf.save( { filename: "ethercoil.pdf" } ); sign = false; } } \<html\> \<head\> \<meta charset="UTF-8"\> \<!-- PLEASE NO CHANGES BELOW THIS LINE (UNTIL I SAY SO…

[http://zenozeng.github.io/p5.js-pdf/examples/#vector](http://zenozeng.github.io/p5.js-pdf/examples/#vector)

---

_[View the full topic](https://discourse.processing.org/t/newb-question-saving-to-pdf/39123)._
