I'm trying to create RTF-Output similar to PDF, especially i want to insert some Images and scale these to fix sizes. Now i've tried the examples/fo/basic/images.fo to output as RTF, but no image is scaled. Should this work or is this a known limitation ?
RTF is still behind the other output formats and probably will always be simply because of the fact that RTF is not as expressive as it should be for mapping XSL-FO. Obviously, that doesn't apply to image sizing. I can see that there are certain effects from certain properties. But the image handling part will still need some attention until it provides the same functionality as is available with the output formats that are using the layout engine. Volunteers are welcome. Shouldn't be too difficult, so don't be afraid to jump in. If you need pointers just shout.
Created attachment 22160 [details] image scaling patch - percent values for content-width and content-height possible - uniform scaling working
I'm going to defer this patch for later. It breaks backwards compatibility of the RTF library which is known to be used separately by others. I'm going to look into using the org.apache.fop.layoutmgr.inline.ImageLayout class for handling the image layout as an alternative. That allows to avoid duplication of a lot of logic.
Should be fixed now: http://svn.apache.org/viewvc?rev=675150&view=rev Maximilan, thanks for you patch. But I think I've found a better solution that reuses code from the layout engine and does not cause compatibility issues.
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed