From: Tony G. <Ton...@Su...> - 2005-03-10 18:02:56
|
Tim Waugh <tw...@re...> writes: > On Thu, Mar 10, 2005 at 04:41:49PM +0000, Tony Graham wrote: .. > Oh, now that I look more closely, it's the fo:external-graphic ones I > wanted. The background-image things were for 'draft'-type watermarks, > and they come from docbook-xsl. > > So is that more difficult? Oh, yes. The simple answer: - Implement the graphic handing in FoDocGP that used to be in FoDocPDF. - Modify PangoXSL to walk the PangoLayout after it's been rendered and call the callback for each graphic. The correct answer: - Rewrite the "inline" FOs so they create areas (rather than, as at present, their containing FoBlock walks the FO tree to build a PangoAttribute list). - Make the FoAreaLayout walk its contained areas to build the PangoLayout. - Make an FoAreaGraphic that holds the callback for printing the graphic. - Modify PangoXSL to walk the PangoLayout after it's been rendered and call the callback for each graphic. - Submit a Pango enhancement request once the callback technique is shown to work so the callback handling goes into core Pango. - Make an FoImage datatype (or similar) so you don't have to have multiple copies of a graphic file when there's multiple references to the same external graphic. Regards, Tony. |