Skip to content

Instantly share code, notes, and snippets.

@micker
micker / php
Created April 26, 2021 19:03
PDF generator
<?php
// Include the main TCPDF library (search for installation path).
require_once JPATH_LIBRARIES . '/tcpdf/tcpdf.php';
// create new PDF document
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
// remove default header
$pdf->setPrintHeader(false);
{"_last_updated":"Tue, 14 Mar 2017 21:34:57 +0000","ID":"CF58c65c5de8718","cf_version":"1.5.0.5","name":"Adh\u00e9rer","scroll_top":0,"description":"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t","success":"Le adh\u00e9sion a \u00e9t\u00e9 envoy\u00e9.\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t","db_support":1,"pinned":0,"hide_form":1,"check_honey":1,"avatar_field":"fld_6009157","form_ajax":1,"custom_callback":"","layout_grid":{"fields":{"fld_4522749":"1:1","fld_8768091":"2:1","fld_9970286":"2:2","fld_6009157":"2:3","fld_6859175":"2:4","fld_7253090":"3:1","fld_2678207":"4:1","fld_9667168":"4:1","fld_3800796":"4:1","fld_8694457":"4:2","fld_9548203":"4:2","fld_6583359":"4:2","fld_1598702":"4:2","fld_3773259":"4:2","fld_4614716":"4:2","fld_5107603":"4:2","fld_655688":"4:2","fld_7683514":"6:1","fld_3358339":"6:1","fld_260131":"6:1","fld_7908577":"6:1"},"structure":"12|3:3:3:3|12|5:7|12|12"},"fields":{"fld_4522749":{"ID":"fld_4522749","type":"html","label":"infosperso","slug":"infospe