# Export to PDF will not render vectors

**URL:** <https://discourse.processing.org/t/export-to-pdf-will-not-render-vectors/7064>\
**Category:** Libraries\
**Created:** [January 1, 2019, 12:26am UTC](https://discourse.processing.org/t/export-to-pdf-will-not-render-vectors/7064 "2019-01-01T00:26:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [January 1, 2019, 5:57am UTC](https://discourse.processing.org/t/export-to-pdf-will-not-render-vectors/7064/2 "2019-01-01T05:57:37Z")

</div>

hi, happy new year…

pls repost / repair above / your code posting using

```auto
</>

```

so i try to find where you could get that code from?  
esp. about the  
`tmp = beginRecord(PDF, “render.pdf”);`  
as that is not from the examples in

> **[PDF Export / Libraries](https://processing.org/reference/libraries/pdf/index.html)**
>
> Create PDF files. These vector graphics files can be scaled to any size and printed at high resolutions.

now i tried to understand the

```auto
if (tmp == null)

```

what is this? a test if the file open worked?  
anyhow in cases like that i recommend some diagnostic prints, so you know where  
you end up when running the sketch.

without your main i found that as expected

```auto
H.stage().paintAll(tmp, false, 1);

```

should run?? is that what you want?

add:  
why we not ask  
@buraquex  
as it looks like he solved exactly that ( but not posted his code here )

> [@PDF export doesn't work with Hyper framework](https://discourse.processing.org/t/pdf-export-doesnt-work-with-hyper-framework/6747/2):
>
> Oh, I just watched Joshua’s videos on Skillshare and he actually shows how to get vectors out, very clearly. Thank you Joshua slight_smile So problem solved, case closed slight_smile

---

_[View the full topic](https://discourse.processing.org/t/export-to-pdf-will-not-render-vectors/7064)._
