So initially I thought maybe it would be good idea to keep the history of changes to my resúmé. I thought: "Source-control! Git!" but then I realized that my resúmé is not a simple .txt file, it's a Word document. You still can manage keeping digital copies in git repo, although it will make difficult to see changes line by line, merge and compare.

So I thought maybe I could find a way to preserve text, styles, fonts and indentations in some form of textual document, maybe html. But often you need a word or pdf copy to send someone.

So can you guys enlighten me - what's the best way to deal with that?

Should I create html and find an easy way to convert it into .doc, .docx and .pdf document corectly (is it even possible), or there's a better way to deal with that?

  • 1
    My intuition screams "use Tex" ;-) LaTeX to HTML or to PDF works fine. But it has a steep learning curve and it does not match the [ms office] tag. – Hennes Sep 10 '13 at 23:16
  • Have you figured out a solution for this? – Chetan Sachdev Aug 9 '19 at 7:46

Pandoc is probably your most flexible option for converting between formats... It handles html, docx, latex, pdf, markdown, and restructured text.

EDIT: I am pondering this same issue, so don't have a final answer, but... Other than LaTeX, Rich-Text Format and Markdown seem to be the formats that give the best combination of formatting and good version tracking. RTF has an issue that the formatting metacharacters can get moved around between edits. Markdown would give you less control over item-by-item formatting, and would probably be best with an accompanying style-sheet, implemented by whatever program you use to render/preview it.

  • Pandoc can convert to all of those formats (and more), but it can't take docx or pdf as input. – evilsoup Sep 11 '13 at 20:28
  • Good point, but it should work for the OP task of HTML -> PDF at the command line. – beroe Sep 12 '13 at 4:30
  • Yeah, I misread the OP, I thought it was about converting .doc to html. However, the default pandoc LaTeX template isn't really suitable for CVs (for PDF, pandoc actually converts the input to LaTeX and then passes it on to a LaTeX engine), so the OP would have to do some investigation into creating a decent template (or possibly they could find one ready-made online). – evilsoup Sep 12 '13 at 9:22

HTML to PDF is quite simple, you can use a WebBrowser to print the opened webpage as PDF.

  • I mean automatically.. – iLemming Sep 10 '13 at 21:19
  • So you mean automatically using one command line ? – edi9999 Sep 10 '13 at 21:38
  • yeah, that's what I mean – iLemming Sep 10 '13 at 22:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for?Browse other questions tagged or ask your own question.