# How do I get my PDF to render properly?

**URL:** <https://discourse.processing.org/t/how-do-i-get-my-pdf-to-render-properly/37349>\
**Category:** Beginners\
**Created:** [June 6, 2022, 9:09am UTC](https://discourse.processing.org/t/how-do-i-get-my-pdf-to-render-properly/37349 "2022-06-06T09:09:14Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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, 5:58pm UTC](https://discourse.processing.org/t/how-do-i-get-my-pdf-to-render-properly/37349/5 "2022-06-06T17:58:08Z")

</div>

Hello @jakebeamish,

I have come across such issues in the past…

I generally put all code including attributes as as _stroke()_ and _fill()_ inside the beginning and end of any renderer.

References:  
[https://processing.org/tutorials/rendering](https://processing.org/tutorials/rendering)  
[https://processing.org/reference/libraries/pdf/index.html](https://processing.org/reference/libraries/pdf/index.html)

`:)`

---

_[View the full topic](https://discourse.processing.org/t/how-do-i-get-my-pdf-to-render-properly/37349)._
