# Custom HTML PDF

**URL:** <https://community.fibery.io/t/custom-html-pdf/4194>\
**Category:** Get Help\
**Created:** [March 28, 2023, 8:29pm UTC](https://community.fibery.io/t/custom-html-pdf/4194 "2023-03-28T20:29:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielbmarsh](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/danielbmarsh/32/13104_2.png) [@danielbmarsh](https://community.fibery.io/u/danielbmarsh)\
**Post date:** [March 28, 2023, 8:29pm UTC](https://community.fibery.io/t/custom-html-pdf/4194/1 "2023-03-28T20:29:21Z")

</div>

Is there any way to generate a custom HTML PDF from a fibery database record?

---

<div class="post-metadata">

**Author:** ![cannibalflea](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/cannibalflea/32/318_2.png) [@cannibalflea](https://community.fibery.io/u/cannibalflea)\
**Post date:** [March 28, 2023, 11:17pm UTC](https://community.fibery.io/t/custom-html-pdf/4194/2 "2023-03-28T23:17:38Z")

</div>

As far as I know, Fibery doesn’t support custom templates (based on an html/css format). This has been on my wish list for a while now and hoping one day it would be possible (see [PDF export of documents](https://community.fibery.io/t/pdf-export-of-documents/1472)).

I can imagine that the Fibery team would want to have a no-code template system, but having an html based system (a la [pdfmonkey.io](http://pdfmonkey.io)) would be sufficient for most fibery power users who otherwise have to go through the trouble of creating automations to generate pdfs externally.

In any cased, I’ve provided an example of how I use pdfmonkey in that thread in case it is helpful.

---

<div class="post-metadata">

**Author:** ![danielbmarsh](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/danielbmarsh/32/13104_2.png) [@danielbmarsh](https://community.fibery.io/u/danielbmarsh)\
**Post date:** [March 30, 2023, 6:02pm UTC](https://community.fibery.io/t/custom-html-pdf/4194/3 "2023-03-30T18:02:30Z")

</div>

Thanks this could work!

---

<div class="post-metadata">

**Author:** ![cannibalflea](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/cannibalflea/32/318_2.png) [@cannibalflea](https://community.fibery.io/u/cannibalflea)\
**Post date:** [October 9, 2023, 8:43pm UTC](https://community.fibery.io/t/custom-html-pdf/4194/4 "2023-10-09T20:43:24Z")

</div>

@danielbmarsh thought I should mention that there has been some movement on this with the [Oct 5 release](https://community.fibery.io/t/oct-5-2023-notifications-settings-send-attachments-via-email-bezier-curves-for-connector-lines/5247):

> [@Oct 5, 2023 / sweat\_smile Notifications settings, Send attachments via email, Bezier curves for connector lines](https://community.fibery.io/t/oct-5-2023-notifications-settings-send-attachments-via-email-bezier-curves-for-connector-lines/5247/1):
>
> ## Automations: Generate PDF file by treating template as html page
> 
> We extended `Attach PDF using template` Action. Now it is possible to check an option `Treat template as HTML page` and the HTML template will be rendered to PDF as is. This allows to provide custom css styles and use any HTML elements and layout.

I’ve done some testing and ported a few templates from pdfmonkey over. Things seem to be working quite well since you are also still able to [make use of javascript code blocks](https://the.fibery.io/@public/User_Guide/Guide/Markdown-templates-53/anchor=Using-Javascript-code-and-Fibery-API-in--b13b30fe-ef56-40c4-9ae3-cacfe6ba9598) which opens up all sorts of interesting things including running graphql queries to fill-in related information.

There are still [a few areas for improvement](https://community.fibery.io/t/oct-5-2023-notifications-settings-send-attachments-via-email-bezier-curves-for-connector-lines/5247/6), but this is still quite a great leap forward.

---

<div class="post-metadata">

**Author:** ![danielbmarsh](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/danielbmarsh/32/13104_2.png) [@danielbmarsh](https://community.fibery.io/u/danielbmarsh)\
**Post date:** [May 2, 2025, 3:58pm UTC](https://community.fibery.io/t/custom-html-pdf/4194/5 "2025-05-02T15:58:55Z")

</div>

I now use this. It works great. Some limitations that require workarounds. But overall it meets my needs.
