[poppler] Refactoring out coordinate transformation logic in Splash::drawImage

Stephen Reichling sreichling at chegg.com
Mon Jun 27 10:32:14 PDT 2011

As Josh mentioned last week, we are working on extracting the smaller component images from the splash background image and referencing them individually in the html. In order to do this, we need to compute each component image's bounding box in the coordinate system of the device space. Currently the code which does so is a small part of the Splash::drawImage function.

In order to get access to these coordinates, we would like to refactor out the coordinate transformation logic into a separate, public function within Splash that the drawImage function as well as our new pdftohtml code can utilize. I think this would not only help us in our goal but also improve the code quality of the drawImage function by reducing its rather large length.

Please let me know if this change is going to cause anyone else any problems.

Thank you,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20110627/bdc74728/attachment.htm>

More information about the poppler mailing list