awesome5team/General-Resources-Box

How to Convert Issue Page to PDF

Opened this issue · 0 comments

We write documents as Github Issue, but in some case we may want to share it with people who cannot visit our repo, then you can convert the Issue content to a PDF file.

  1. Open issue link in browser, for example
    https://github.com/awesome5team/General-Resources-Box/issues/2.
  2. In browser inspect element and copy whole html dom and save as local html file, for example issue2.html.
  3. Open issue2.html with your editor such as Sublime Text, search the div with class edit-comment-hide, remove rest content in body except div.edit-comment-hide, save change.
  4. Open issue.html in browser and make adjust on browser, make sure everything is ok on browser, otherwise you may need to add some style. We recommend to limit the body width to prevent the pdf font-size too small:
<body style="
    width: 740px;
    margin: 0 auto;
">
  1. Copy the adjust change from browser to Sublime Text, save change.
  2. Open http://pdfcrowd.com/#convert_by_upload, choose the html you wanna to paste, and once the PDF produced it would be loaded.

End