prat0318 / json_resume

Generates pretty HTML, LaTeX, markdown, with biodata feeded as input in JSON
http://prat0318.github.io/json_resume
MIT License
1.36k stars 116 forks source link

Grey margin for html_pdf #18

Closed Xuefeng-Zhu closed 10 years ago

Xuefeng-Zhu commented 10 years ago

I try to make the font-size smaller, but it will leave margin on both side of page.

prat0318 commented 10 years ago

How did you try to change the font-size?

Anyways you can play with the margin in bin/json_resume:

      pdf_options = {
        :margin_top => 2.0,
        :margin_left=> 0.0,
        :margin_right => 0.0,
        :margin_bottom => 4.0,
        :page_size => 'Letter'
      }
Xuefeng-Zhu commented 10 years ago

I change following code in screen.css html>body { font-size:16px; } into html>body { font-size:13px; }

I have tried to change the pdf_options, but it cannot remove the grey margin.

prat0318 commented 10 years ago

Try editing json_resume/extras/resume_html/core-page.html:

        <div id="site" style="margin: 0.0em auto 0.0em auto; max-width: 52em;">

to

        <div id="site" style="margin: 0.0em auto 0.0em auto; max-width: 64em;">

Which is basically 16/13*52 and try to reconvert

Xuefeng-Zhu commented 10 years ago

It works. Thank you very much