Skip to content

Instantly share code, notes, and snippets.

@themadsens
Last active October 4, 2017 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save themadsens/7e08e4e691eac26074f0935b4a025d91 to your computer and use it in GitHub Desktop.
Save themadsens/7e08e4e691eac26074f0935b4a025d91 to your computer and use it in GitHub Desktop.
How to create a PDF of the node documentation

Created as follows

  1. Open in Chrome as "One big page"
  2. Save as "Webpage - complete"
  3. Open .htm file in editor and delete sidebar (The "column2" div)
  4. Then replace all "https://#" with "#" globally (just the unqualified anchors).
  5. Open ..._files/style.css and change to "font-size: 50%;" in body class
  6. Open result in Chrome and do "Select all" + "Copy"
  7. Start "OpenOffice Writer". Edit page style to taste (margins etc.) and do a "Paste"
  8. Export the result as PDF
  9. Voila! Bob is your uncle.
This file has been truncated, but you can view the full file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment