# Custom PDF Template File Location

**URL:** <https://www.dolibarr.org/forum/t/custom-pdf-template-file-location/21716>\
**Category:** CRM/SRM Modules\
**Created:** [January 18, 2022, 4:05pm UTC](https://www.dolibarr.org/forum/t/custom-pdf-template-file-location/21716 "2022-01-18T16:05:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![playcock](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/playcock/32/6009_2.png) [@playcock](https://www.dolibarr.org/forum/u/playcock)\
**Post date:** [January 18, 2022, 4:05pm UTC](https://www.dolibarr.org/forum/t/custom-pdf-template-file-location/21716/1 "2022-01-18T16:05:37Z")

</div>

I would like to create a new document template for my proposals. Following the [Create a PDF document template](https://wiki.dolibarr.org/index.php/Create_a_PDF_document_template#For_an_existing_module) documentation is pretty easy to do.

The documentation states:

> Do not modify an existing template. Copy the file of the template used as example into a new name in same directory than your example and edit it to change content.

What I would like to do is copy the template to a different directory. Specifically, `dolibarr/htdocs/custom` where all of my other custom code resides, like triggers, hooks, custom modules, etc.

I am not seeing a good way to do that and am wondering if anyone has tried to do this before or has any suggestions on how to achieve this.

 ![image](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/1/1ec1b30d7d76d55ae8899b7104c022ed8fed8074.png)

 ![image](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/9/9658d387f13d269f169105a60aeb53fa48b3b90a.png)

---

<div class="post-metadata">

**Author:** ![ksar](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/ksar/32/514_2.png) [@ksar](https://www.dolibarr.org/forum/u/ksar)\
**Post date:** [January 18, 2022, 5:52pm UTC](https://www.dolibarr.org/forum/t/custom-pdf-template-file-location/21716/2 "2022-01-18T17:52:07Z")

</div>

Hello,

You need to create a module, and have the

```php
							'models' => 1, // Set this to 1 if module has its own models directory (core/modules/xxx)

```

on `$this->module_parts`

Then put your models on `/custom/mybieautifullmodule/core/modules/propale/doc`

Then activate the module, and you should see the new template on propal module configuration.

Then activate the new template

---

<div class="post-metadata">

**Author:** ![playcock](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/playcock/32/6009_2.png) [@playcock](https://www.dolibarr.org/forum/u/playcock)\
**Post date:** [January 18, 2022, 6:15pm UTC](https://www.dolibarr.org/forum/t/custom-pdf-template-file-location/21716/3 "2022-01-18T18:15:20Z")

</div>

@ksar  
What a simple solution! Thank you!
