LinuxBozo / jsonresume-theme-kendall

A theme for jsonresume
MIT License
54 stars 78 forks source link

`export` and `serve` create different looking outputs #37

Open gregdan3 opened 3 years ago

gregdan3 commented 3 years ago

See the issue here.

make init to set up, then make build and check the PDF. It outputs the one column version of this resume theme, but make serve produces the two column version of this theme (unless your window is very narrow).

Is there a way to control this behavior? I would prefer to have two column pdf.

paskal commented 3 years ago

Could you please attach PDF produced by resume-cli and the PDF made by your browser from served version, so it would be clear what the difference is?

gregdan3 commented 3 years ago

My bad:

Print to pdf nukes the colors in the html built resume, but the formatting is the same. It uses the two column format, but rendering to a pdf produces a one column output.

Here's the source html (which github forced me to upload as a txt): gregdan3-resume.txt

paskal commented 3 years ago

html_built_resume is the version author intended to have printed and exported as a PDF as far as I know. pdf_built versions definitely look strange, I hope the author will help you make it work properly.

In the meantime, you can use something like this to print the same pdf as html_built_resume.pdf you attached:

version: '2'
services:
    build-pdf:
        image: pink33n/html-to-pdf
        command: --url https://terrty.net/cv/verhoturov.html --pdf verhoturov.pdf --scale 1.0
        privileged: true
        volumes:
            - ./:/workspace

Scale can be adjusted to make it into the number of pages you desire to have.