Realtime PDFs Of Your Webpages! Sick of designing special PDFs for pages of your website or app? Let pdfl.io do it!
Generate PDFs from your template, powered by pdfl.io
Copy the pdflio
folder to your system/user/addons
folder.
Head to your add-ons page and install the add-on.
API KEY
: Your pdfl.io API key. Get your at https://pdfl.io.
The basic usage of the tag is:
{exp:pdflio:link url="https://example.com/"}
This will generate a link that, when accessed, will download a copy of the URL you enter as a param.
Example use:
<a href="{exp:pdflio:link url='https://example.com/'}">
Download Example.com for some reason
</a>
pdfl.io also has a number of parameters you can use to format your PDF!
A url encoded string that will be set as the filename of the PDF. The .pdf
extension is not required. Default: the slugified URL sent in with the request
{exp:pdflio:link url="https://example.com/" filename="my-awesome-pdf.pdf"}
Will not render the background images for the page. Default: false
{exp:pdflio:link url="https://example.com/" no_background="y"}
Will render the PDF in greyscale. Default: false
{exp:pdflio:link url="https://example.com/" greyscale="y"}
Set the paper format for the PDF. Default: Letter
Options:
{exp:pdflio:link url="https://example.com/" format="A4"}
By default, pdfl.io will load the entire web page. If you only want what is in the specific screen view, set this option. Default: false
{exp:pdflio:link url="https://example.com/" top_view_only="y"}
By default, pdfl.io will load all javascript on the page, and dismiss all alerts. Set this option to disable all javascript on a page. Default: false
{exp:pdflio:link url="https://example.com/" disable_javascript="y"}
Set this option to disable all images on the page. Default: false
{exp:pdflio:link url="https://example.com/" disable_images="y"}
Set this option to wait until all network activity on the page has ended. NOTE: If the page has long running scripts, there is a chance this will cause a timeout, or stop your PDF from rendering.
{exp:pdflio:link url="https://example.com/" just_wait="y"}
Set this option to delay X seconds before rendering the PDF. Especially useful if you have a page preloader on the page. Default: unset
{exp:pdflio:link url="https://example.com/" delay="3"}
We want to make sure you have what you need on this. Email support@triplenerdscore.net for help.
You can also submit issues on our Issue Tracker
ICON: The pdfl.io icon was created by my daughter, Claire!
1.0.2 - Fixing settings
1.0.1 - Bug fixes
We want to make sure you have what you need on this. Head to docs.triplenerdscore.net for help!
You can also submit issues on our Issue Tracker
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.