2

Can anyone recommend a simple tool or commonly-used script that can be used to go through all of the issues tracked in a bitbucket repo and convert each into a PDF for local storage?

I have access to ubunutu 16.04 and windows 10. As for paying, if there is nothing free and opensource, I'll probably just use google chrome's print feature to convert each issue page to pdf.

1
  • 2
    If you can find a set of options to wget so that it downloads all the issues for you, you can then convert the HTML page for each issue to a PDF with WeasyPrint. Commented Jan 17, 2018 at 18:52

1 Answer 1

1

You can achieve your requirements by using the following steps.

  1. Get all the issue ids using the REST api of GitHub or Bitbucket.
    GitHub: https://developer.github.com/v3/issues/
    Bitbucket: https://confluence.atlassian.com/bitbucket/issues-resource-296095191.html
  2. With the ids you may recursively convert the URL of an issue to PDF by using the Syncfusion HTML to PDF converter.
    GitHub: https://github.com/{{user_name}}/{{repository_name}}/issues/{{issue_id}}
    Bitbucket: https://{{site}}.bitbucket.org/site/master/issues/{{issue_id}}

More details about the Syncfusion HTML to PDF can be get through the below link. https://www.syncfusion.com/products/file-formats/pdf/html-to-pdf

If the issues are protected, then get the details of the issues through the above api and create the PDF from scratch. Refer the below link to create the PDF from scratch. https://help.syncfusion.com/file-formats/pdf/getting-started

The whole suite of controls is available for free (commercial applications also) through the community license program if you qualify (less than 1 million US Dollars in revenue). The community license is the full product with no limitations or watermarks.

Note: I work for Syncfusion.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.