Summary
There are 2 issues with PDF export:
- The theme itself is currently incompatible with
resume-cli
PDF export - which looks to be because of changes in v0.14.0
which changed the package layout and removed index.js
- Using an alternative like Puppeteer and/or even a full browser like Chrome/Firefox, the elements have large gaps or are cut-off between pages
1. resume-cli
incompatibility
Current version is incompatible with resume-cli
PDF export:
$ npm ls
json-resume@ /Users/jesse/src/json-resume
โโโ [email protected]
โโโ [email protected]
$ npx resume export --theme jsonresume-theme-even resume.pdf
You have to install this theme relative to the folder to use it e.g. `npm install /Users/jesse/src/json-resume/node_modules/jsonresume-theme-even/index.js`
The code for resume-cli
seems to be looking for index.js
, which no longer exists.
Downgrading to v0.13.0
(which still contained index.js
) works:
$ npm ls
json-resume@ /Users/jesse/src/json-resume
โโโ [email protected]
โโโ [email protected]
$ npx resume export --theme jsonresume-theme-even resume.pdf
Done! Find your new .pdf resume at:
/Users/jesse/src/json-resume/resume.pdf
I believe the changes to use microbundle
in v0.14.0
may have broken this.
2. CSS elements cut off or huge gaps
When printing the exported resume HTML using Chrome, elements can be split over page breaks:
![image](https://user-images.githubusercontent.com/1694586/166809485-049d379c-1d49-4122-a678-255b57377bbf.png)
In Firefox, it seems to want to keep entire sections together, so leaves huge breaks between:
![image](https://user-images.githubusercontent.com/1694586/166809966-3d54d97b-6405-4a9e-bf3d-6737b96556e2.png)
I assume this needs some changes to to print media CSS, however that's not my expertise.