Skip to content

Repository files navigation

resume

A small Node script that generates my resume as a .docx, then converts it to a PDF and a PNG preview, all in one run.

This is my personal resume, not a general-purpose resume builder. I'm sharing the repo because the setup (JS that builds a docx and pipes it through LibreOffice and poppler) might be a decent starting point if you want to do the same thing for yours. Feel free to fork it and swap out the content.

What it does

  1. Builds a .docx using the docx npm package (fonts, colors, spacing, everything is defined in code, no template file).
  2. Converts that .docx to a .pdf using LibreOffice, headless.
  3. Converts the first page of that .pdf to a .png using pdftoppm, for a quick preview image.

All three outputs land in the same folder as the script.

Requirements

On Fedora:

sudo dnf install libreoffice poppler-utils

On other distros, swap dnf for whatever your package manager is, the package names are usually the same or close to it.

Note

LibreOffice and poppler-utils are only needed for the PDF and PNG conversion steps. If you're not on Linux/macOS, or you just don't have them installed, the script still generates the .docx fine, it'll only fail (with a clear error message) on the PDF and PNG steps, not the whole run.

Running it

npm install
node index.js

That's it. You'll end up with three files: the .docx, a .pdf, and a .png preview.

If you're using this as a template

Everything, text, styling, colors, spacing, lives directly in index.js. There's no config file or CLI flags. To make it yours:

  • Replace the content (name, summary, experience, projects, skills)
  • Change NAVY, ACCENT, and RULE at the top if you want different colors
  • Adjust the page margins and font sizes if your content is longer or shorter than mine (it's tuned to fit exactly one page right now, so adding content will likely push it to a second page unless you tighten spacing elsewhere)

No warranty, no guarantees it fits your content out of the box. It's just what I use.

About

A small Node script that generates my resume as a .docx, then converts it to a PDF and a PNG preview, all in one run. This is my personal resume, not a general-purpose resume builder.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages