Hi, I need to implement some RTF export for a customer. According to some "templates", i generate RTF documents, filling data coming from models. It''s pretty much like a mailmerge, but in *nix/ruby world. Also, customer would like (in the future) to upload himself the templates, so he can modify them by his own. Can anyone advice me on an elegant solution? Thank you, Jean-Etienne -- Posted via http://www.ruby-forum.com/.
Don''t know of any rtf libraries. But the format is simple if you are doing simple things. Here is an example of a document from http://en.wikipedia.org/wiki/Rich_Text_Format {\rtf1\ansi{\fonttbl\f0\fswiss Helvetica;}\f0 Hello!\par This is some {\b bold} text.\par } If all you need is some basic formatting such as bold and font sizes you should be able to make a basic parser in no time. On 8/4/06, Jean-Etienne Durand <etienne.durand@woa.hu> wrote:> Hi, > > I need to implement some RTF export for a customer. According to some > "templates", i generate RTF documents, filling data coming from models. > It''s pretty much like a mailmerge, but in *nix/ruby world. > Also, customer would like (in the future) to upload himself the > templates, so he can modify them by his own. > > Can anyone advice me on an elegant solution? > > Thank you, > Jean-Etienne > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- -------------- Jon Gretar Borgthorsson http://www.jongretar.net/
Jean-Etienne Durand wrote:> Hi, > > I need to implement some RTF export for a customer. According to some > "templates", i generate RTF documents, filling data coming from models. > It''s pretty much like a mailmerge, but in *nix/ruby world. > Also, customer would like (in the future) to upload himself the > templates, so he can modify them by his own. > > Can anyone advice me on an elegant solution? > > Thank you, > Jean-EtienneCheck this lib http://ruby-rtf.rubyforge.org/docs/index.html -- Posted via http://www.ruby-forum.com/.
Possibly Parallel Threads
- Routing Error : No route matches "/" (for "Hello World!" action)
- Newbie in R: Reading .txt files and storing the 'numbers' in a vector
- [LLVMdev] LNT ClamAV - Sorting output
- [LLVMdev] LNT ClamAV - Sorting output
- [LLVMdev] Windows development and "virus" in LLVM test suite