Welcome Guest, Not a member yet? Register   Sign In
CI4 PDF Customized
#11

(This post was last modified: 06-15-2020, 12:13 PM by jreklund.)

PHP Code:
<?php namespace App\Controllers;

use 
TCPDF;

class 
Home extends BaseController
{
    public function 
index()
    {
         
$pdf = new TCPDF(PDF_PAGE_ORIENTATIONPDF_UNITPDF_PAGE_FORMATtrue'UTF-8'false);
                 
$pdf->Output('example.pdf', 'I');
    }


Code:
<Output>
%PDF-1.7 %���� 7 0 obj << /Type /Page /Parent 1 0 R /LastModified (D:20200615132610+08'00') /Resources 2 0 R /MediaBox [0.000000 0.000000 595.276000 841.890000] /CropBox [0.000000 0.000000 595.276000 841.890000] /BleedBox [0.000000 0.000000 595.276000 841.890000] /TrimBox [0.000000 0.000000 595.276000 841.890000] /ArtBox [0.000000 0.000000 595.276000 841.890000] /Contents 8 0 R /Rotate 0 /Group << /Type /Group /S /Transparency /CS /DeviceRGB >> /Annots [ 6 0 R ] /PZ 1 >> endobj 8 0 obj <> stream x��RMo�0 ��W�#�&i҅�Ƈĉm9L.#P � դ��S�m��C;Y�l?�Op�,H 0%�b��ϓNHs�␌%��� F�����*��!n�ې�)7�2W{�|:�a�����N-VJ�����@^�mj. (U�cޛa]�=�Np����^��~Ë2_��K�il�a�G�ך��u�o8ޏ�>�_�j��#�8�,O�u�&��@eW�>�vf�{�2�����Tmlt=I�:�q��DY3��})3�� endstream endobj 1 0 obj << /Type /Pages /Kids [ 7 0 R ] /Count 1 >> endobj 3 0 obj <> endobj 5 0 obj <> endobj 4 0 obj << /Type /XObject /Subtype /Form /FormType 1 /Filter /FlateDecode /BBox [0.000000 0.000000 595.276000 28.350000] /Matrix [1 0 0 1 0 0] /Resources << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI] /Font << /F2 5 0 R /F1 3 0 R >> >> /Length 162 >> stream x���1 �0����u�� I����nj��-X�ҿ�K!hQ5p$�����A��x�6 %m5_'(��3����jX�u&54}Kޠ �zp0��o���j��cT�oƙbB�ºGl�Ԟ��}�_�ҧ�C�g�~�� '�Kc�#WX�d �p/8��|4�[� endstream endobj 2 0 obj << /ProcSet [/PDF /Text /ImageB /ImageC /ImageI] /Font << /F1 3 0 R /F2 5 0 R >> /XObject << /XT4 4 0 R >> >> endobj 6 0 obj <> /H /I>> endobj 9 0 obj << /Producer (��TCPDF 6.3.5 \(http://www.tcpdf.org\)) /CreationDate (D:20200615132610+08'00') /ModDate (D:20200615132610+08'00') /Trapped /False >> endobj 10 0 obj << /Type /Metadata /Subtype /XML /Length 4640 >> stream application/pdf 2020-06-15T13:26:10+08:00 2020-06-15T13:26:10+08:00 2020-06-15T13:26:10+08:00 TCPDF 6.3.5 (http://www.tcpdf.org) uuid:be5c4176-78b3-9981-4463-f172485ef20f uuid:be5c4176-78b3-9981-4463-f172485ef20f http://ns.adobe.com/pdf/1.3/ pdf Adobe PDF Schema internal Adobe PDF Schema InstanceID URI http://ns.adobe.com/xap/1.0/mm/ xmpMM XMP Media Management Schema internal UUID based identifier for specific incarnation of a document InstanceID URI http://www.aiim.org/pdfa/ns/id/ pdfaid PDF/A ID Schema internal Part of PDF/A standard part Integer internal Amendment of PDF/A standard amd Text internal Conformance level of PDF/A standard conformance Text endstream endobj 11 0 obj << /Type /Catalog /Version /1.7 /Pages 1 0 R /Names << >> /ViewerPreferences << /Direction /L2R >> /PageLayout /SinglePage /PageMode /UseNone /OpenAction [7 0 R /FitH null] /Metadata 10 0 R >> endobj xref 0 12 0000000000 65535 f 0000000807 00000 n 0000001523 00000 n 0000000866 00000 n 0000001083 00000 n 0000000972 00000 n 0000001648 00000 n 0000000015 00000 n 0000000483 00000 n 0000001864 00000 n 0000002061 00000 n 0000006784 00000 n trailer << /Size 12 /Root 11 0 R /Info 9 0 R /ID [ ] >> startxref 6993 %%EOF
Reply


Messages In This Thread
CI4 PDF Customized - by gra - 02-08-2020, 02:09 AM
RE: CI4 PDF Customized - by InsiteFX - 02-08-2020, 05:51 AM
RE: CI4 PDF Customized - by gra - 02-08-2020, 07:01 AM
RE: CI4 PDF Customized - by gra - 02-08-2020, 11:59 PM
RE: CI4 PDF Customized - by InsiteFX - 02-10-2020, 09:29 AM
RE: CI4 PDF Customized - by Hiram Rincon - 04-30-2020, 04:03 PM
RE: CI4 PDF Customized - by littlej - 02-11-2020, 11:07 PM
RE: CI4 PDF Customized - by ONGENERAL_TOWER - 03-11-2020, 07:36 AM
RE: CI4 PDF Customized - by maycoldsm1234 - 04-29-2020, 10:37 AM
RE: CI4 PDF Customized - by jreklund - 04-30-2020, 04:31 PM
RE: CI4 PDF Customized - by cocl - 06-14-2020, 10:33 PM
RE: CI4 PDF Customized - by lomali - 07-15-2020, 01:09 PM
RE: CI4 PDF Customized - by badger - 07-16-2020, 12:00 AM
RE: CI4 PDF Customized - by pippuccio76 - 01-11-2022, 04:10 AM
RE: CI4 PDF Customized - by jreklund - 06-15-2020, 12:17 PM
RE: CI4 PDF Customized - by badger - 06-16-2020, 07:16 AM
RE: CI4 PDF Customized - by [email protected] - 07-05-2020, 02:12 AM
RE: CI4 PDF Customized - by badger - 07-05-2020, 12:13 PM
RE: CI4 PDF Customized - by jreklund - 07-16-2020, 01:12 AM
RE: CI4 PDF Customized - by badger - 07-16-2020, 01:24 AM
RE: CI4 PDF Customized - by lomali - 07-16-2020, 02:05 AM
RE: CI4 PDF Customized - by kenjis - 09-28-2023, 10:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB