-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Final format output for download #19
Comments
DOCX can also be achieved with NodeJS: https://www.npmjs.com/package/docx . |
I think the two most appealing formats to me are .docx (Word) and LaTeX. Docx is appealing because users can edit the file when they're done, and LaTeX is appealing because it's good at generating nicely formatted PDFs that would be ready to print. Although .docx doesn't have a ton of Ruby support, my understanding of the format is that it is zipped XML. We could create the documents in Word once, save the .docx file as we want it to look, and use string replacement on the XML files from Ruby. This is probably the best approach for formatted output anyway -- I think it would be incredibly hard to get a good-looking document with lots of formatting using only something like PHPWord. Although it might still be nice to interact with the document through an interface like that... calling a PHP script isn't a bad idea to consider. I think the approach with LaTeX would actually be quite similar. We'd probably want to write the LaTeX source file manually, and then do some kind of string replacement before rendering to PDF. There are a lot of ways to do the string replacement... Interacting with the XML using an XML library might be an option for the Word doc. An alternative that we might consider is using erb with a template like |
Seeing @mkasberg raised the question on the Slack channel, we can discuss here how to go about producing the final format that the end user can download / print / have printed.
My vision is to be as flexible as possible, and offer as many options as possible. A first choice would be PDF, but I would leave the option (if technically feasible) for DOCX, or even InDesign / Latex.
Useful GEMS to go about doing this:
The text was updated successfully, but these errors were encountered: