Please note: PDF generation is a little buggy in that the results vary greatly from computer to computer depending on the exact setup of the individual machine. You might get a perfect PDF or you might not! For example, some Macs the header and margins are not rendered correctly while on others it turns out just fine.
The Linux version uses a very small font and doesn't respect our theme's fonts. This is also true of GitBook's online PDF generator unfortunately.
At the moment we have opted to use the online generator for Foundation created Sushi Cards as it is not machine dependent.
If you wish to try generating a PDF locally, the steps to do so are as follows:
Setting up for PDF generation (Only have to do this the first time)
Go to nodejs.org and choose the download "recommended for most users" and install it.
Open your command line(Terminal on Mac or Linux, Command Prompt on Windows) and run the command npm install gitbook-cli -g
Go to gitbook.com/editor to download and install the GitBook desktop editor.
Open the GitBook desktop editor and log-in to your GitBook account.
Open the GitBook editor.
If you are not already signed into your GitBook account in the editor, sign-in.
The editor will present you a list of all your books on gitbook.com. Click on the one you wish to create a PDF of.
The editor will download and open your book. You're now done with the GitBook editor and can close it.
Next, you'll need to open your command line (Terminal on Mac or Linux, Command Prompt on Windows) and navigate (using the cd command) to the directory GitBook is storing the book in.
On a Mac or Linux machine, this is ~/GitBook/Library/[name of account]/[name of the book]
On Windows it's C:\Users\[name of user]\GitBook\Library\[name of account]\[name of book]
Now run the following command
On a Mac or Linux machine gitbook pdf ./ ./[name of your pdf].pdf
On a Windows machine gitbook pdf . .\[name of your pdf].pdf
- You should now have a PDF file of the book in the same directory as the book itself.