I would like to create a template in doc, pdf, odt, docx ... the type of the document does not matter. I want to get this document, change some values ββand convert this document to PDF.
For instance:
Take this template:
<Title> <Date> Hello <Name>, <Text> <Farewell>
And with this information:
Title: attention Date: 22/05/2011 Name: NicosKaralis Text: Lorem ipsum ... Farewell: See you later
generate this pdf using color, background and everything the template can have:
attention 22/05/2011 Hello NicosKaralis, Lorem ipsum .... See you later.
Is there any way to do this in Ruby on Rails? preferably using shrimp
Thank you in advance
- EDIT -
1 The application owner will create something like this: Original. (odt, doc, pdf)
2 In my application database there will be a user with the following attributes:
title = Welcome to the Internet!
name = Jhon Doe
text = Welcome to the Internet, I will be your guide
Goodbye = Hope to see you soon!
3 My application will create such a pdf file: Final.pdf and send it by email
I'm already working in email. I just don't have pdf.
PS: I now how to create a PDF from scratch, but I do not want this. The fact is that you do not need to be a rails developer to modify the created pdf.