# Export a resume as a PDF

**URL:** https://discourse.gohugo.io/t/export-a-resume-as-a-pdf/4138
**Category:** support
**Created:** [September 21, 2016, 4:00pm UTC](https://discourse.gohugo.io/t/export-a-resume-as-a-pdf/4138 "2016-09-21T16:00:56Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![freebsd](https://avatars.discourse-cdn.com/v4/letter/f/8797f3/32.png) [@freebsd](https://discourse.gohugo.io/u/freebsd)
#### Post date: [September 21, 2016, 4:00pm UTC](https://discourse.gohugo.io/t/export-a-resume-as-a-pdf/4138/1 "2016-09-21T16:00:56Z")

</div>

As my 1st project with Hugo I’d like to remake the resume. Now the academic template appears to be a good starting point and the discussion has 1 reference to making a book but if someone has pointers they’d like to share I’d love to read them.

---

<div class="post-metadata">

### Author: ![langhorst](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/langhorst/32/4058_2.png) [@langhorst](https://discourse.gohugo.io/u/langhorst)
#### Post date: [September 26, 2016, 3:54pm UTC](https://discourse.gohugo.io/t/export-a-resume-as-a-pdf/4138/2 "2016-09-26T15:54:36Z")

</div>

If your goal is to have a single source that can be generated to both HTML and PDF, I’m not sure Hugo is the best choice (maybe try [Pandoc](http://pandoc.org/) in combination with LaTeX). BUT, you could use Hugo to generate the HTML and then [wkhtmltopdf](http://wkhtmltopdf.org/) to generate the PDF from the HTML/CSS source. I’m not entirely sure you will be able to garner the results that I’m guessing you’re after, but I don’t know the wkhtmltopdf tool well enough to give a definitive answer.

---

<div class="post-metadata">

### Author: ![labuve](https://avatars.discourse-cdn.com/v4/letter/l/ba9def/32.png) [@labuve](https://discourse.gohugo.io/u/labuve)
#### Post date: [August 13, 2019, 11:52am UTC](https://discourse.gohugo.io/t/export-a-resume-as-a-pdf/4138/3 "2019-08-13T11:52:52Z")

</div>

Hi! I am trying to do something similar and was wondering if you managed to get somewhere with your project?

---

<div class="post-metadata">

### Author: ![ju52](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ju52/32/6749_2.png) [@ju52](https://discourse.gohugo.io/u/ju52)
#### Post date: [August 13, 2019, 12:37pm UTC](https://discourse.gohugo.io/t/export-a-resume-as-a-pdf/4138/4 "2019-08-13T12:37:48Z")

</div>

I tryed another way, using CSS for media=“print”. Works now only for single pages.  
Using a pdf-printer is the solution for me.

Hugo could generate a book from a single page with the right hacked template.  
Has anyone realized a output to LaTeX?

---

<div class="post-metadata">

### Author: ![Grob](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@Grob](https://discourse.gohugo.io/u/Grob)
#### Post date: [August 13, 2019, 2:45pm UTC](https://discourse.gohugo.io/t/export-a-resume-as-a-pdf/4138/5 "2019-08-13T14:45:32Z")

</div>

Using Pandoc to generate LaTeX and then a PDF is a handy way.

In your deploy script you can use:

```auto
cd static && pandoc ../content/cv.md -t latex-smart -o cv.pdf

```

This is a more elaborate example you can adjust to your needs:

```auto
cd static && pandoc -r markdown-smart+pipe_tables+table_captions+yaml_metadata_block --pdf-engine=lualatex --top-level-division=chapter --template=$HOME/templates/pandoc.template ../content/cv.md -t latex-smart -o cv.pdf

```

Another way is using Asciidoctor which supports PDF.

This only works locally, of course. I don’t think Netlify et al. support Pandoc(?).

---

<div class="post-metadata">

### Author: ![zwbetz](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/zwbetz/32/16088_2.png) [@zwbetz](https://discourse.gohugo.io/u/zwbetz)
#### Post date: [August 13, 2019, 2:55pm UTC](https://discourse.gohugo.io/t/export-a-resume-as-a-pdf/4138/6 "2019-08-13T14:55:42Z")

</div>

> [@Grob](#):
>
> This only works locally, of course. I don’t think Netlify et al. support Pandoc(?).

You could download pandoc and unzip it as part of your Netlify build command.

---

<div class="post-metadata">

### Author: ![Grob](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@Grob](https://discourse.gohugo.io/u/Grob)
#### Post date: [August 13, 2019, 2:57pm UTC](https://discourse.gohugo.io/t/export-a-resume-as-a-pdf/4138/7 "2019-08-13T14:57:51Z")

</div>

> [@zwbetz](#):
>
> You could download pandoc and unzip it as part of your Netlify build command.

Oh wow! I did not know that. Thanks, @zwbetz.
