> On 25 May 2015, at 21:16, Jan Tosovsky <[email protected]> wrote:
> 

Hi Jan

> can you hypothetically imagine any way how to convert virtual page objects
> to the office document structure? I actually I think of 'Slides' to PPTX
> (XSLF) conversion.

Very interesting question...
Somewhat related, as I recall, a suggestion/feature request has been raised in 
the past to add OpenOffice's document format as a potential new output format 
to FOP.

> There is not an easy way to produce paginated PPTX content using pure XSLT.
> But FOP has all the required info somewhere in the memory before serializing
> it into PDF, which could be somehow pushed to POI.

I must admit that I am unfamiliar with the most recent Apache POI API. Last 
time I looked at POI must have been almost 10 years ago.

That said, it seems like it may just be possible to achieve something like this 
by means of FOP's Intermediate Formats[*], which can already be utilised to 
split up the basic formatting and rendering processes.

[*] see: http://xmlgraphics.apache.org/fop/trunk/intermediate.html

While it is still an XML format, the benefit would be that it is already 
paginated, which may make it easier to generate PPTX slide-decks from. 
Basically, you would use FOP to create an IF file (or stream) from XSL-FO 
input, as a basis for PDF rendering on the one hand, and then somehow feed that 
same intermediate file to POI for creation of the PPTX. Basic formatting and 
pagination would be done once, through FOP's layout engine.

Not sure what POI can handle as input, though, or how difficult it would be to 
make it handle FOP's IF...


Not sure if that goes in the direction of what you were looking for, but hope 
this helps!



Andreas

Reply via email to