Re: [PHP] Fonts with PDFlib

2001-07-19 Thread Chris Fry

Here's the magic code:-

putenv(PDFLIBRESOURCE=/usr/local/apache/htdocs/fonts/pdflib.upr);

This works well.

Chris

James Willard wrote:

 Hello,

 I have what should be a fairly simple question, but it's something I've been
 struggling with for the past couple of days. Whenever I create a PDF
 document in PHP, the font that is used is always an outline (not a solid
 letter). I have searched the mailing list archives and online help but to no
 avail. I have even used the example code to produce something like:

   PDF_set_parameter($pdf, resourcefile, /usr/local/fonts/pdflib.upr);
   $font = pdf_findfont($pdf, Times-Roman, host, 0);
   if ($font) {
 pdf_setfont($pdf, $font, 10);
   }

 Could someone please provide a pointer to some useful information on PDF
 fonts?

 Thanks,

 James Willard
 [EMAIL PROTECTED]

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

--

Chris Fry
Quillsoft Pty Ltd
Specialists in Secure Internet Services and E-Commerce Solutions
10 Gray Street
Kogarah
NSW  2217
Australia

Phone: +61 2 9553 1691
Fax: +61 2 9553 1692
Mobile: 0419 414 323
eMail: [EMAIL PROTECTED]
http://www.quillsoft.com.au

You can download our Public CA Certificate from:-
https://ca.secureanywhere.com/htdocs/cacert.crt

**

This information contains confidential information intended only for
the use of the authorised recipient.  If you are not an authorised
recipient of this e-mail, please contact Quillsoft Pty Ltd by return
e-mail.
In this case, you should not read, print, re-transmit, store or act
in reliance on this e-mail or any attachments, and should destroy all
copies of them.
This e-mail and any attachments may also contain copyright material
belonging to Quillsoft Pty Ltd.
The views expressed in this e-mail or attachments are the views of
the author and not the views of Quillsoft Pty Ltd.
You should only deal with the material contained in this e-mail if
you are authorised to do so.

This notice should not be removed.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Fonts with PDFlib

2001-07-19 Thread James Willard

Chris,

I already had:

PDF_set_parameter($pdf, resourcefile, /usr/local/fonts/pdflib.upr);

in the .php file. I went ahead and added the putenv() function in too, but
it didn't make a difference, the fonts are still hollow. I have copied the
fonts/ directory of PDFlib-4.0.1 to /usr/local and they are world-readable.
Do you have any other suggestions as to what could be wrong?

Thanks,

James Willard
[EMAIL PROTECTED]

-Original Message-
From: Chris Fry [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 1:27 AM
To: James Willard
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Fonts with PDFlib
Importance: High


Here's the magic code:-

putenv(PDFLIBRESOURCE=/usr/local/apache/htdocs/fonts/pdflib.upr);

This works well.

Chris

James Willard wrote:

 Hello,

 I have what should be a fairly simple question, but it's something I've
been
 struggling with for the past couple of days. Whenever I create a PDF
 document in PHP, the font that is used is always an outline (not a solid
 letter). I have searched the mailing list archives and online help but to
no
 avail. I have even used the example code to produce something like:

   PDF_set_parameter($pdf, resourcefile, /usr/local/fonts/pdflib.upr);
   $font = pdf_findfont($pdf, Times-Roman, host, 0);
   if ($font) {
 pdf_setfont($pdf, $font, 10);
   }

 Could someone please provide a pointer to some useful information on PDF
 fonts?

 Thanks,

 James Willard
 [EMAIL PROTECTED]

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

--

Chris Fry
Quillsoft Pty Ltd
Specialists in Secure Internet Services and E-Commerce Solutions
10 Gray Street
Kogarah
NSW  2217
Australia

Phone: +61 2 9553 1691
Fax: +61 2 9553 1692
Mobile: 0419 414 323
eMail: [EMAIL PROTECTED]
http://www.quillsoft.com.au

You can download our Public CA Certificate from:-
https://ca.secureanywhere.com/htdocs/cacert.crt

**

This information contains confidential information intended only for
the use of the authorised recipient.  If you are not an authorised
recipient of this e-mail, please contact Quillsoft Pty Ltd by return
e-mail.
In this case, you should not read, print, re-transmit, store or act
in reliance on this e-mail or any attachments, and should destroy all
copies of them.
This e-mail and any attachments may also contain copyright material
belonging to Quillsoft Pty Ltd.
The views expressed in this e-mail or attachments are the views of
the author and not the views of Quillsoft Pty Ltd.
You should only deal with the material contained in this e-mail if
you are authorised to do so.

This notice should not be removed.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Fonts with PDFlib

2001-07-19 Thread Chris Fry

James,

Have you set text rendering?

I thought that the default was for solid text but maybe..

pdf_set_value($pdf, textrendering, 1); will give you outline text, 0 for fill
(default)

or:-

pdf_set_text_rendering -- Determines how text is rendered

Description

void pdf_set_text_rendering (int pdf document, int mode)

The pdf_set_text_rendering() function determines how text is rendered. The
possible values for mode are 0=fill text,
1=stroke text, 2=fill and stroke text, 3=invisible, 4=fill text and add it to
clipping path, 5=stroke text and add it to clipping path,
6=fill and stroke text and add it to cliping path, 7=add it to clipping path.

Chris

James Willard wrote:

 Chris,

 I already had:

 PDF_set_parameter($pdf, resourcefile, /usr/local/fonts/pdflib.upr);

 in the .php file. I went ahead and added the putenv() function in too, but
 it didn't make a difference, the fonts are still hollow. I have copied the
 fonts/ directory of PDFlib-4.0.1 to /usr/local and they are world-readable.
 Do you have any other suggestions as to what could be wrong?

 Thanks,

 James Willard
 [EMAIL PROTECTED]

 -Original Message-
 From: Chris Fry [mailto:[EMAIL PROTECTED]]
 Sent: Friday, July 20, 2001 1:27 AM
 To: James Willard
 Cc: [EMAIL PROTECTED]
 Subject: Re: [PHP] Fonts with PDFlib
 Importance: High

 Here's the magic code:-

 putenv(PDFLIBRESOURCE=/usr/local/apache/htdocs/fonts/pdflib.upr);

 This works well.

 Chris

 James Willard wrote:

  Hello,
 
  I have what should be a fairly simple question, but it's something I've
 been
  struggling with for the past couple of days. Whenever I create a PDF
  document in PHP, the font that is used is always an outline (not a solid
  letter). I have searched the mailing list archives and online help but to
 no
  avail. I have even used the example code to produce something like:
 
PDF_set_parameter($pdf, resourcefile, /usr/local/fonts/pdflib.upr);
$font = pdf_findfont($pdf, Times-Roman, host, 0);
if ($font) {
  pdf_setfont($pdf, $font, 10);
}
 
  Could someone please provide a pointer to some useful information on PDF
  fonts?
 
  Thanks,
 
  James Willard
  [EMAIL PROTECTED]
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]

 --

 Chris Fry
 Quillsoft Pty Ltd
 Specialists in Secure Internet Services and E-Commerce Solutions
 10 Gray Street
 Kogarah
 NSW  2217
 Australia

 Phone: +61 2 9553 1691
 Fax: +61 2 9553 1692
 Mobile: 0419 414 323
 eMail: [EMAIL PROTECTED]
 http://www.quillsoft.com.au

 You can download our Public CA Certificate from:-
 https://ca.secureanywhere.com/htdocs/cacert.crt

 **

 This information contains confidential information intended only for
 the use of the authorised recipient.  If you are not an authorised
 recipient of this e-mail, please contact Quillsoft Pty Ltd by return
 e-mail.
 In this case, you should not read, print, re-transmit, store or act
 in reliance on this e-mail or any attachments, and should destroy all
 copies of them.
 This e-mail and any attachments may also contain copyright material
 belonging to Quillsoft Pty Ltd.
 The views expressed in this e-mail or attachments are the views of
 the author and not the views of Quillsoft Pty Ltd.
 You should only deal with the material contained in this e-mail if
 you are authorised to do so.

 This notice should not be removed.

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

--

Chris Fry
Quillsoft Pty Ltd
Specialists in Secure Internet Services and E-Commerce Solutions
10 Gray Street
Kogarah
NSW  2217
Australia

Phone: +61 2 9553 1691
Fax: +61 2 9553 1692
Mobile: 0419 414 323
eMail: [EMAIL PROTECTED]
http://www.quillsoft.com.au

You can download our Public CA Certificate from:-
https://ca.secureanywhere.com/htdocs/cacert.crt

**

This information contains confidential information intended only for
the use of the authorised recipient.  If you are not an authorised
recipient of this e-mail, please contact Quillsoft Pty Ltd by return
e-mail.
In this case, you should not read, print, re-transmit, store or act
in reliance on this e-mail or any attachments, and should destroy all
copies of them.
This e-mail and any attachments may also contain copyright material
belonging to Quillsoft Pty Ltd.
The views expressed in this e-mail or attachments are the views of
the author and not the views of Quillsoft Pty Ltd.
You should only deal with the material contained in this e-mail if
you are authorised to do so.

This notice should not be removed.



-- 
PHP General Mailing List (http://www.php.net

RE: [PHP] Fonts with PDFlib

2001-07-19 Thread James Willard

Chris,

That did it! Thanks. That must have found its way in there from some of the
example code I was looking at when initially creating the page. I greatly
appreciate your help and keeping me from losing my mind :).

Thanks,

James Willard
[EMAIL PROTECTED]

-Original Message-
From: Chris Fry [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 1:50 AM
To: James Willard
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Fonts with PDFlib
Importance: High


James,

Have you set text rendering?

I thought that the default was for solid text but maybe..

pdf_set_value($pdf, textrendering, 1); will give you outline text, 0 for
fill
(default)

or:-

pdf_set_text_rendering -- Determines how text is rendered

Description

void pdf_set_text_rendering (int pdf document, int mode)

The pdf_set_text_rendering() function determines how text is rendered. The
possible values for mode are 0=fill text,
1=stroke text, 2=fill and stroke text, 3=invisible, 4=fill text and add it
to
clipping path, 5=stroke text and add it to clipping path,
6=fill and stroke text and add it to cliping path, 7=add it to clipping
path.

Chris

James Willard wrote:

 Chris,

 I already had:

 PDF_set_parameter($pdf, resourcefile, /usr/local/fonts/pdflib.upr);

 in the .php file. I went ahead and added the putenv() function in too, but
 it didn't make a difference, the fonts are still hollow. I have copied the
 fonts/ directory of PDFlib-4.0.1 to /usr/local and they are
world-readable.
 Do you have any other suggestions as to what could be wrong?

 Thanks,

 James Willard
 [EMAIL PROTECTED]

 -Original Message-
 From: Chris Fry [mailto:[EMAIL PROTECTED]]
 Sent: Friday, July 20, 2001 1:27 AM
 To: James Willard
 Cc: [EMAIL PROTECTED]
 Subject: Re: [PHP] Fonts with PDFlib
 Importance: High

 Here's the magic code:-

 putenv(PDFLIBRESOURCE=/usr/local/apache/htdocs/fonts/pdflib.upr);

 This works well.

 Chris

 James Willard wrote:

  Hello,
 
  I have what should be a fairly simple question, but it's something I've
 been
  struggling with for the past couple of days. Whenever I create a PDF
  document in PHP, the font that is used is always an outline (not a solid
  letter). I have searched the mailing list archives and online help but
to
 no
  avail. I have even used the example code to produce something like:
 
PDF_set_parameter($pdf, resourcefile,
/usr/local/fonts/pdflib.upr);
$font = pdf_findfont($pdf, Times-Roman, host, 0);
if ($font) {
  pdf_setfont($pdf, $font, 10);
}
 
  Could someone please provide a pointer to some useful information on PDF
  fonts?
 
  Thanks,
 
  James Willard
  [EMAIL PROTECTED]
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]

 --

 Chris Fry
 Quillsoft Pty Ltd
 Specialists in Secure Internet Services and E-Commerce Solutions
 10 Gray Street
 Kogarah
 NSW  2217
 Australia

 Phone: +61 2 9553 1691
 Fax: +61 2 9553 1692
 Mobile: 0419 414 323
 eMail: [EMAIL PROTECTED]
 http://www.quillsoft.com.au

 You can download our Public CA Certificate from:-
 https://ca.secureanywhere.com/htdocs/cacert.crt

 **

 This information contains confidential information intended only for
 the use of the authorised recipient.  If you are not an authorised
 recipient of this e-mail, please contact Quillsoft Pty Ltd by return
 e-mail.
 In this case, you should not read, print, re-transmit, store or act
 in reliance on this e-mail or any attachments, and should destroy all
 copies of them.
 This e-mail and any attachments may also contain copyright material
 belonging to Quillsoft Pty Ltd.
 The views expressed in this e-mail or attachments are the views of
 the author and not the views of Quillsoft Pty Ltd.
 You should only deal with the material contained in this e-mail if
 you are authorised to do so.

 This notice should not be removed.

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

--

Chris Fry
Quillsoft Pty Ltd
Specialists in Secure Internet Services and E-Commerce Solutions
10 Gray Street
Kogarah
NSW  2217
Australia

Phone: +61 2 9553 1691
Fax: +61 2 9553 1692
Mobile: 0419 414 323
eMail: [EMAIL PROTECTED]
http://www.quillsoft.com.au

You can download our Public CA Certificate from:-
https://ca.secureanywhere.com/htdocs/cacert.crt

**

This information contains confidential information intended only for
the use of the authorised recipient.  If you are not an authorised
recipient of this e-mail, please contact Quillsoft Pty Ltd by return
e-mail.
In this case, you should not read, print, re-transmit, store or act
in reliance on this e-mail or any