# CakePHP PDF creation

**URL:** <https://discourse.cakephp.org/t/cakephp-pdf-creation/3505>\
**Category:** Need Help\
**Created:** [November 16, 2017, 4:16pm UTC](https://discourse.cakephp.org/t/cakephp-pdf-creation/3505 "2017-11-16T16:16:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cakebaker](https://avatars.discourse-cdn.com/v4/letter/c/a9adbd/32.png) [@Cakebaker](https://discourse.cakephp.org/u/Cakebaker)\
**Post date:** [November 16, 2017, 4:16pm UTC](https://discourse.cakephp.org/t/cakephp-pdf-creation/3505/1 "2017-11-16T16:16:10Z")

</div>

Hi,

I can create PDF’s with the following class ([https://github.com/rospdf/pdf-php/blob/master/README.md](https://github.com/rospdf/pdf-php/blob/master/README.md))  
Can someone help me to integrate this class into my CakePHP Project ?  
Do I need to use CakePDF for this ?  
Can I send PDF Headers to display the PDF Overlay in CakePHP ?

Sincerely P.

---

<div class="post-metadata">

**Author:** ![markstory](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/markstory/32/182_2.png) [@markstory](https://discourse.cakephp.org/u/markstory)\
**Post date:** [December 1, 2017, 3:25pm UTC](https://discourse.cakephp.org/t/cakephp-pdf-creation/3505/2 "2017-12-01T15:25:32Z")

</div>

> [@Cakebaker](#):
>
> Do I need to use CakePDF for this ?

You don’t have to, but it will require less work in general. If you have something working with pdf-php, you could also write a view class that lets you adapt your PDF instructions into Cake’s view layer.
