|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-07-23 10:32 UTC] joey at cvs dot php dot net
[2000-08-11 02:18 UTC] joey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 10:00:01 2025 UTC |
Apache 1.3.12 with SSL PHP 4.0 RC 1 Zend Optimizer PDFLIB 3.0 compiled in using : './configure' '--with-mysql' '--with-apache=../apache_1.3.12' '--with-pdflib=/' '--with-zlib-dir' '--with-jpeg-dir=/usr/lib' '--with-tiff-dir=/usr/lib' '--with-png-dir=/usr/lib' '--with-gettext=/usr/bin' '--disable-debug' '--with-imap=../imap-4.7b' '--with-ttf' '--enable-trans-sid' '--prefix=/usr' '--exec-prefix=/usr' Now .. if I try to set "compatibility" to "1.2" using the pdf_set_parameter function after pdf_open, PdfLib says : Internal pdflib error: Must change compatiblity level before PDF_open() .. which obviously doesn't work since the pdf_set_parameter function needs a pdf handle. Ok .. trying to use pdf_getinfo first doesn't work : Call to undefined function: pdf_get_info() .. obviously since this is pdflib 3.0 (re the php manual) A bit of code : $name=tempname("/tmp/",""); $fp=fopen($name,"w"); $pdf=PDF_open($fp); $info=PDF_get_info($pdf); /* Call to undefined function */ PDF_set_parameter($pdf,"compatibility","1.2"); /* Must change compatibility level before PDF_open */