pdf - FPDF - php output -
i installed fpdf create pdf-docs through php.
even when try output simple example code snippet, page full of weird charactrers
i have searched everywhere, , can not find solution. no errors shown.
maybe has key ... in advance.
%pdf-1.3 3 0 obj <> endobj 4 0 obj <> stream xœ3rðâ2Ð35w(çr qÐw3t04Ó30pisp êz*˜[š€…¤(hx¤æää+”çå¤h*„d” bv endstream endobj 1 0 obj <> endobj 5 0 obj <>
stream xœ]rËnƒ0¼ó>¦‡l‚%„di8ô¡Ò~%eràï»»vÒªhxã±gvvk?/¥îá¿™±©`]¯[óx5 ˆ3\zíÉp´} ³¸¯ÍpožâjjÝ^’øïx6/f›¬Ïðàù¯¦Óë‹Ø|æî«ë4}Ãz—¦¢…}žëé¥@ø,Û–-ž÷˺eÍïuò^Ú,ÍØÂ<Õ ˜z_Àk‚ iq ¤èößydçîïÕck€_ê%q„8>à!j"v!2&bgÄ£%r"h¢¬dîÈ}2el1n¥ºh¾jƒå– eä»"ah¬‹ØÕ:ÞÛdá˜î„9cÅüŽ[Èx1~²¼"œ3¿gÏãÑò;oâ•õ> endobj 2 0 obj << /procset [/pdf /text /imageb /imagec /imagei] /font << /f1 6 0 r >> /xobject << >> >> endobj 7 0 obj << /producer (fpdf 1.81) /creationdate (d:20161113014141) >> endobj 8 0 obj << /type /catalog /pages 1 0 r >> endobj xref 0 9 0000000000 65535 f 0000000227 00000 n 0000000866 00000 n 0000000009 00000 n 0000000087 00000 n 0000000314 00000 n 0000000748 00000 n 0000000970 00000 n 0000001046 00000 n trailer << /size 9 /root 8 0 r /info 7 0 r >> startxref 1095 %%eof
i've never heard of installing fpdf. try including class. go http://www.fpdf.org/ download .php include. create *.php file including following code:
<?php require('fpdf.php'); $pdf = new fpdf(); $pdf->addpage(); $pdf->setfont('arial','b',16); $pdf->cell(40,10,'hello world!'); $pdf->output(); ?>
run on server , should work find.
Comments
Post a Comment