Skip to content
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

export and serve create different looking outputs #37

Open
gregdan3 opened this issue Sep 8, 2021 · 3 comments
Open

export and serve create different looking outputs #37

gregdan3 opened this issue Sep 8, 2021 · 3 comments

Comments

@gregdan3
Copy link

gregdan3 commented Sep 8, 2021

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.

@gregdan3 gregdan3 changed the title export and serve have different results export and serve create different looking outputs Sep 8, 2021
@paskal
Copy link

paskal commented Sep 16, 2021

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
Copy link
Author

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
Copy link

paskal commented Sep 16, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants