On Jan 6, 2006, at 10:15 AM, Glen Mazza wrote:
I think we're talking two different things. FOP's input is still
an XML document in the XSL namespace, those types above are
graphics incorporated via fo:external-graphic or fo:instream-
foreign-object. You would apparently like a new extension element
then, possibly under fo:instream-foreign-object, that will allow
for incorporating a PDF document.
PDF is not a graphic though. It is an output type, a document--so
I guess you would need to write a parser for FOP to be able to
translate the PDF document into XSL-namespace events that can
subsequently be rendered on FOP's standard output types--PDF, PS,
AWT, RTF, etc. That is out of scope for FOP. But if someone
wanted it to contribute it to FOP, I would defer that to the rest
of the team (I haven't been coding for awhile), but it would need
to be pretty robust and solid -- not just a partly working system
that will fill up the Bugzilla list with errors from people trying
to use FOP just to concatenate PDF documents, or to convert PDF
documents into other output formats. (Then again, that's how open
source works... ;-)
While it would be 'nice to have' I'm not convinced it would be a good
idea. It would be one more maintenance 'hassle' to support & maintain
(unless this new addition had enough of a following to support it--
i.e. new developers).
BTW, although TIFF files are supported, I don't believe multiple page
TIFF files (e.g., FAX documents) are supported. I took a look at the
FOP Graphics page's TIFF section ([1], [2]) & didn't see any mention
about it, but I believe that only single-page TIFF files are supported.
Also, AFAICT the W3C XSL Working Group does not allow for embedding
XSL documents within other XSL documents (i.e, placing an fo:root
within an fo:root). Whatever their philosophical concerns are
about such embedding may also be relevant for embedding PDF
documents here.
Glen
[1]
http://xmlgraphics.apache.org/fop/0.20.5/graphics.html#tiff
[2]
http://xmlgraphics.apache.org/fop/0.91/graphics.html#tiff
Web Maestro Clay
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]