Editing PDF Reports

I have a report that I want to run the download PDF function on. Download works but I want to add header information to the report. For example, what criteria was selected? I would also like to add column headers to the data. The report is pulling data from the calls module.

What file controls what is written to the downloaded PDF report?

Looks like it’s

modules/AOR_Reports/AOR_Report.php

but I swear I don’t know the answer to your next question, which I bet is something like “where, inside that file?” or even “how can I edit that file to get what I want?”

Good luck :slight_smile:

I was looking at AOR_Report.php but I thought it only generated the webpage report not the PDF export of the report. Maybe it does both, I will have to take a second look.

Interestingly the column headers are in the pdf file, but they are white text on a white background so I could not see them without editing the pdf. If I change my theme from from Suite P to Suite R then the text is black and is visible.

That color thing sounds like a bug… which you can report at Github, if you don’t find anything similar already reported:

https://github.com/salesagility/SuiteCRM/issues