ruby && XSL-FO ?

B

Benedikt Heinen

Are there any XSL-FO (to pdf) processors for ruby?


googling for xslfo ruby primarily seems to be pointing to AntennaHouse's
XSLFO implementation - but that one seems to carry a pretty hefty price
tag...




Benedikt
 
M

Mark Volkmann

Are there any XSL-FO (to pdf) processors for ruby?


googling for xslfo ruby primarily seems to be pointing to AntennaHouse's
XSLFO implementation - but that one seems to carry a pretty hefty price
tag...

In my experience, XSL-FO processors are relatively slow. Given that,
you probably wouldn't be adding much to the overall time if you just
used Apache FOP (an open-source, Java-based XSL-FO processor) and
invoked it as a shell command from your Ruby code. This would require
you to write the XSL-FO content to a file before invoking FOP.
 
B

Benedikt Heinen

Are there any XSL-FO (to pdf) processors for ruby?
In my experience, XSL-FO processors are relatively slow. Given that,
you probably wouldn't be adding much to the overall time if you just
used Apache FOP (an open-source, Java-based XSL-FO processor) and
invoked it as a shell command from your Ruby code.

Well, I've used Cocoon before - and I agree with you that the first
invocation of FOP is fairly slow (>2-3 seconds), but subsequent calls are
"relatively" quick (~.25-.5seconds).

This would require you to write the XSL-FO content to a file before
invoking FOP.

That's one of the reasons why I'd rather want to get around it.

Any other ideas?




Benedikt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,183
Messages
2,570,968
Members
47,517
Latest member
TashaLzw39

Latest Threads

Top