NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Proportional font text widths (Score:1)
I can probably bundle up a general explanation and pass it on to the authors; is this worth doing, or is the problem already solved elsewhere?
Re:Proportional font text widths (Score:1)
Interested Perl/PDF hackers want to know! Perhaps you could write it up as a node on Perl Monks [perlmonks.org].
Re:Proportional font text widths (Score:2)
Re:Proportional font text widths (Score:1)
Factoid #1: Positioning in PDF is given in thousandths of a point (ie 72000ths of an inch), as far as I can recall.
Factoid #2: The basic PDF fonts (Times, Courier, etc) have their exact metrics, including each character's width in 72000ths of an inch, defined in special files that are freely distributable and included in every installation of Adobe Reader (and presumably Ghostscript et al).
Factoid #3: The font metrics files are easily
Re:Proportional font text widths (Score:1)
Re:Proportional font text widths (Score:2)
Re:Proportional font text widths (Score:1)
I wrote a PDF generator in Delphi; it was quite an educational experience. I recommend the intellectual challenge.
Of points and millimeters... (Score:1)
A point is 1/72 of an inch, so there's no way a point can measure 2.83mm. Dividing 25.4mm/72, I get 0.3527mm for a point. Oh, you got them reversed, a mm is 2.834pt.
Re:Of points and millimeters... (Score:2)