How to Convert Issue Page to PDF
Opened this issue · 0 comments
tangyefei commented
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.
- Open issue link in browser, for example
https://github.com/awesome5team/General-Resources-Box/issues/2. - In browser inspect element and copy whole html dom and save as local html file, for example issue2.html.
- Open issue2.html with your editor such as Sublime Text, search the div with class
edit-comment-hide
, remove rest content in body exceptdiv.edit-comment-hide
, save change. - 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;
">
- Copy the adjust change from browser to Sublime Text, save change.
- Open http://pdfcrowd.com/#convert_by_upload, choose the html you wanna to paste, and once the PDF produced it would be loaded.
End