# Generate PDF Report

**URL:** <https://community.sonarsource.com/t/generate-pdf-report/28158>\
**Category:** SonarQube Server / Community Build\
**Tags:** pdf\_report\
**Created:** [July 15, 2020, 12:44pm UTC](https://community.sonarsource.com/t/generate-pdf-report/28158 "2020-07-15T12:44:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pranjal\_Agarwal](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/pranjal_agarwal/32/13390_2.png) [@Pranjal\_Agarwal](https://community.sonarsource.com/u/Pranjal_Agarwal)\
**Post date:** [July 15, 2020, 12:44pm UTC](https://community.sonarsource.com/t/generate-pdf-report/28158/1 "2020-07-15T12:44:49Z")

</div>

Hi,

I am new to the community. Please help me to generate a report of all bugs and issues in my project as pdf. What I want is to get the analysis done by sonarqube as a report.

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![anon67236913](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@anon67236913](https://community.sonarsource.com/u/anon67236913)\
**Post date:** [July 15, 2020, 6:40pm UTC](https://community.sonarsource.com/t/generate-pdf-report/28158/2 "2020-07-15T18:40:20Z")

</div>

Hi,

you’ve already asked the same question here

> [@Unable to generate pdf report](https://community.sonarsource.com/t/unable-to-generate-pdf-report/28073/):
>
> I am unable to add generate report. According to the docs - [https://docs.sonarqube.org/latest/project-administration/managing-portfolios/#header-2](https://docs.sonarqube.org/latest/project-administration/managing-portfolios/#header-2) in " Adding Projects to a Portfolio" it says - " To add projects directly to a Portfolio or standard sub-Portfolio first make sure the correct item is selected, then choose the Project selection mode :" I am unable to select the project and unable to find the Project selection mode. Any help would be appreciated.

If you don’t like the portfolios pdf reports, you’re on your own.  
Get used with the Sonarqube web api, then use the json response for creation of pdf.  
I recommend to use your browser dev tools with the Sonarqube web ui.

You may also check the sources of this plugin which has great potential but is not polished yet

> **[GitHub - cnescatlab/sonar-cnes-report: Generates analysis reports from...](https://github.com/cnescatlab/sonar-cnes-report)**
>
> Generates analysis reports from SonarQube web API. - GitHub - cnescatlab/sonar-cnes-report: Generates analysis reports from SonarQube web API.

Otherwise create a feature request for portfolios (governance plugin).  
IMO the portfolio pdf reports have worsened, they should be more configurable.

Gilbert

---

<div class="post-metadata">

**Author:** ![Pranjal\_Agarwal](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/pranjal_agarwal/32/13390_2.png) [@Pranjal\_Agarwal](https://community.sonarsource.com/u/Pranjal_Agarwal)\
**Post date:** [July 16, 2020, 6:17am UTC](https://community.sonarsource.com/t/generate-pdf-report/28158/3 "2020-07-16T06:17:33Z")

</div>

In other tools that I have used like fortify, you get a output as pdf for reference. In sonarqube, the only place to see output is the is localhost:9000/projects? Shouldn’t there be an option to get the result of the page in form of a pdf?

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [July 16, 2020, 1:57pm UTC](https://community.sonarsource.com/t/generate-pdf-report/28158/4 "2020-07-16T13:57:01Z")

</div>

Hi,

> [@Pranjal\_Agarwal](#):
>
> In other tools that I have used like fortify, you get a output as pdf for reference.

I’m curious what you do with that PDF. Would you mind sharing?

In SonarQube the only built-in way is via the interface, which is intended to be a centralized focus to bring the team together around a shared vision of Code Quality and Security. Your citation of `localhost` makes me wonder if you’re running this on your local machine & that’s why you want a PDF - so you have some way to communicate the findings to the rest of your team. Instead, SonarQube is intended to be installed on a centralized server where any stakeholder (yes, the developers on your team, but also the tech leads, managers, suits, &etc) can go see the status of your code at any time.

Maybe this helps…?

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![livelace](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/livelace/32/25734_2.png) [@livelace](https://community.sonarsource.com/u/livelace)\
**Post date:** [September 16, 2021, 8:16am UTC](https://community.sonarsource.com/t/generate-pdf-report/28158/5 "2021-09-16T08:16:13Z")

</div>

It’s quite obvious. With PDF report you don’t need access to work network, you can work with PDF anywhere, it’s especially useful to export initial projects and meditate on them and refactor some code on laptop without clicks-clucks on web ui.
