Re: PDFLib

From: Date: Thu, 22 Feb 2001 06:49:58 +0000
Subject: Re: PDFLib
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-5682@lists.php.net to get a copy of this message
On 21 Feb 2001 20:45:52 -0800, Randall Barber <rdb55@email.byu.edu> wrote: >Now, within PHP, I try to call pdf_set_font($pdf, "Times-Roman", 12, = >"host", 1); >Do to a lack of information in the PHP manuals (for instance, where = >fonts need to reside; how you call them if they don't reside there = Do you have the documentation from PDFLib? Most of that information should apply directly to the PHP interface to PDFLib (which does basically assume you know PDF well). My understanding is that "builtin" for fonts applies to certain fonts which are built in to the various Acrobat distributions (Courier, Times-Roman, Helvetica) and thus should always be available while "host" used system fonts, requiring that the font be present to create (to get the font metrics) and view the PDF. For host fonts, you can set an environmental variable named PDFLIBRESOURCE to point to a PDFLib configuration file, one entry in which would point to the directory containing your .afm fonts. (There are a couple other ways in which PDFlib can find that resource file depending on your platform; check the manual if the environmental variable approach isn't vaiable)

« previous php.windows (#5682) next »