Re: DocBook to PDF with xmlroff
Tony Graham <[email protected]>
| Newsgroups | gmane.text.xml.xmlroff.general |
|---|---|
| Message-ID | <[email protected]> |
Tim Waugh <[email protected]> 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. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click