|
CAM::PDF does indeed do this, but it does a pretty crappy job of it. If the document publishes font metrics, then it becomes a moderately easy job (except for kerning...). There's a method called getStringWidth() in CAM/PDF.pm that shows the limitations quite clearly if you look at the source code. |