Re: Outlines?

"Mr. Shawn H. Corey" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.pdfapi2
Message-ID <[email protected]>
spinningwebz2002 wrote:
> I need to put text on top of pictures and am hoping that PDF:API has 
> the ability to do outlines (basically white outline around black text). 
> Has anyone seen this option? 
> 
> If it isn't in there the only other thought I had was, if doing a white 
> outline, to write the text 1 pixel above and to the left in white, then 
> again 1 pixel down and to the right then the text in black over it. Any 
> thoughts?

Yes.

First, PDF does not use pixels.

You would be better of using two fonts, one slightly large than the other.  For example, if you could use a 14 point font to write the white outline; move the baseline up one point; and use a 12 point font to write in black.  The problem is you have to change the character spacing.  You will have to decrease the spacing of the larger font, or increase the spacing of the smaller.  See the PDF Reference, "section 5.2.1 Character Spacing" and `perldoc PDF::API2::Content` and search for 'charspace'.


-- 
Just my 0.00000002 million dollars worth,
  Shawn

"For the things we have to learn before we can do them, we learn by doing them."
  Aristotle
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.