From: Tony G. <Ton...@Su...> - 2005-03-10 16:42:02
|
Tim Waugh <tw...@re...> writes: > So I managed to get a DocBook document converted to PDF using xmlroff > and the libfo-compat.xsl stylesheet (with the two modifications I > posted) applied to docbook-xsl output, and I'm really impressed. Music to my ears. > The two immediately obvious things missing are: > > * PNG graphics (@background-image) > * @white-space-treatment="preserve" for DocBook <screen> nodes > > The only other thing wrong with the output for this document is that > an <orderedlist> comes out as a weird array of dots instead of any > text. I haven't been able to make a smaller test case yet. > > What steps are needed to add @background-image and > @white-space-treatment support? For @white-space-treatment="preserve", modify your whitespace munging template to not apply to FOs with @white-space-treatment="preserve". xmlroff preserves whitespace by default. @background-image would probably be pretty simple (much simpler than fo:external-graphic): in theory, you'd modify area-to-pdf.c to do the FoDoc calls to render the background image before doing the FoDoc calls to render the text. You may also have to implement FoDocGP functions to render the image, but how hard can that be? Regards, Tony. |