{"id":1255,"date":"2018-01-19T19:22:37","date_gmt":"2018-01-19T19:22:37","guid":{"rendered":"http:\/\/goofy-trucks.flywheelsites.com\/php-for-pdf-page-2\/"},"modified":"2018-01-19T19:24:38","modified_gmt":"2018-01-19T19:24:38","slug":"php-for-pdf-page-2","status":"publish","type":"post","link":"https:\/\/phpbuilder.com\/php-for-pdf-page-2\/","title":{"rendered":"PHP for PDF Page 2"},"content":{"rendered":"<div class=\"phpbuilder-content\">\n<div class=\"phpbuilder-meta\">\n<div class=\"\">By Luca Perugini<\/div>\n<div class=\"\">on October 26, 2000<\/div>\n<\/p><\/div>\n<div id=\"overflow-content\">\n<h2>Installing PDFLib and PHP with PDF Support<\/h2>\n<div class=\"articleHeader1\">Requirements<\/div>\n<div class=\"articleList\">\n<ol>\n<li><b>PHP 4.02+<\/b> from http:\/\/php.net<\/li>\n<li><b>PDFLib 3.0.1<\/b> from http:\/\/www.pdflib.com<\/li>\n<\/ol>\n<\/div>\n<div class=\"articlePara\">\nThis is a little recipe to get PDFlib 3.0.1 working with PHP4:<\/div>\n<div class=\"articleList\">\n<ol>\n<li>\n        download PHP directly from <a href=\"http:\/\/php.net\/\" target=\"_blank\">http:\/\/php.net<\/a><br \/>\n        Uwe Steinman patched ext\/pdf\/pdf.c to support PDFLib v 3.0.1\n    <\/li>\n<p><\/p>\n<li>\n        download PDFLib 3.0.1 from <a href=\"http:\/\/www.pdflib.com\/\" target=\"_blank\">http:\/\/www.pdflib.com<\/a><\/p>\n<ol>\n<li> apply every patch you find at  http:\/\/www.pdflib.com\/pdflib\/patches.html<\/li>\n<li> Configure, Make &amp; install PDFLib<br \/>\n<blockquote><p> #.\/configure  &#8211;enabled-shared-pdflib<br \/>\n         #make<br \/>\n         #make install\n\t<\/p><\/blockquote>\n<\/li>\n<\/ol>\n<p>       You&#8217;ll get PDFLib installed in \/usr\/local\/lib .<\/li>\n<p><\/p>\n<li>\n       Configure PHP<\/p>\n<pre>\n       #.\/configure --with-apxs=\/usr\/bin\/apxs \n          --with-gd  --with-pdflib=\/usr\/local --with-mysql=\/usr\/local \n          --with-config-file-path=\/etc\/httpd  --with-zlib-dir=\/usr    \n          --with-ttf=\/usr\/local\/include             \n          --with-jpeg-dir=\/usr --with-tiff-dir=\/usr \n          --with-system-regex=yes --enable-debug=no\n\n       #make\n       #make install\n    <\/pre>\n<\/li>\n<p><\/p>\n<li>\n       Update System Library<\/p>\n<pre>\n       Insert  \/usr\/local\/lib in  \/etc\/ld.so.conf\n\n       #\/sbin\/ldconfig\n    <\/pre>\n<\/li>\n<p><\/p>\n<li>\n       Test &amp; Hack<br \/>\n       Now you need to restart Apache<\/p>\n<pre>\n       #apachectl restart\n    <\/pre>\n<p>       Copy pdfclock.php in your httpd directory&#8230; test&#8230; and That&#8217;s all.\n    <\/li>\n<\/ol>\n<\/div>\n<h2>Important Notes<\/h2>\n<div class=\"articlePara\">\nTo get working PDFLib with fonts you must pay attention to the UPR section of the PDFLib manual.<br \/>\n<br \/>A simple way to use fonts with PDFLib is to copy the standard UPR description file included in PDFLib tarball,<br \/>\n(fonts\/pdflib.upr) into your working directory.<\/div>\n<\/div>\n<p><\/p>\n<div style=\"float: left; padding:15px; color:#17AAF3\">\n<div style=\"float:left; padding:2px;\"><a class=\"paginationPageLink\" href=\"perugini20001026.html\">\u00ab Previous Page<\/a><\/div>\n<div style=\"float:left; padding:2px 4px 2px 4px;\"><a class=\"pageNumber\" href=\"perugini20001026.html\">1<\/a> <\/div>\n<div style=\"float:left; font-size:16px; color:#FF7A22; padding:2px 2px 2px 2px; \">| <\/div>\n<div style=\"background-color:#B6E5FC; font-size:16px; margin-top:1px; padding:1px 4px 1px 4px; color:#000; font-style:bold; float:left;\">2<\/div>\n<div style=\"float:left; font-size:16px; color:#FF7A22; padding:2px 2px 2px 2px; \">| <\/div>\n<div style=\"float:left; padding:2px 4px 2px 4px;\"><a class=\"pageNumber\" href=\"perugini200010269ba9.html?page=3\">3<\/a> <\/div>\n<div style=\"float:left; font-size:16px; color:#FF7A22; padding:2px 2px 2px 2px; \">| <\/div>\n<div style=\"float:left; padding:2px 4px 2px 4px;\"><a class=\"pageNumber\" href=\"perugini20001026fdb0.html?page=4\">4<\/a> <\/div>\n<div style=\"float:left; padding:2px;\"><a class=\"paginationPageLink\" href=\"perugini200010269ba9.html?page=3\">Next Page \u00bb<\/a><\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>By Luca Perugini on October 26, 2000 Installing PDFLib and PHP with PDF Support Requirements PHP 4.02+ from http:\/\/php.net PDFLib 3.0.1 from http:\/\/www.pdflib.com This is a little recipe to get PDFlib 3.0.1 working with PHP4: download PHP directly from http:\/\/php.net Uwe Steinman patched ext\/pdf\/pdf.c to support PDFLib v 3.0.1 download&#8230; <a href=\"https:\/\/phpbuilder.com\/php-for-pdf-page-2\/\" class=\"readmore\"><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1255","post","type-post","status-publish","format-standard","hentry","category-tutorials"],"_links":{"self":[{"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/posts\/1255","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/comments?post=1255"}],"version-history":[{"count":1,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/posts\/1255\/revisions"}],"predecessor-version":[{"id":3150,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/posts\/1255\/revisions\/3150"}],"wp:attachment":[{"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/media?parent=1255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/categories?post=1255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phpbuilder.com\/wp-json\/wp\/v2\/tags?post=1255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}