smicallef / spiderfoot

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
http://www.spiderfoot.net
MIT License
13.1k stars 2.27k forks source link

Add PDF export functionality #247

Open bcoles opened 5 years ago

bcoles commented 5 years ago

Add PDF export functionality.

A report document, rather than an export, would be awesome.

Report should include the bar chart from the Status tab and events table from the Browse tab, with a full export of events available in an appendix.

Adding the Graph may or may not be a good idea, as it's kind of useless without the labels and interactivity.

Edit: Spiderfoot currently packages PyPDF2 and uses the library for reading PDFs. It would make sense to use this library for generating PDFs, if possible.

Dr-Flay commented 5 years ago

That is a bit different than formatting text. It needs a postscript engine of some sort. Perhaps using the browser engine an mhtml file would be a reasonable container format for portability.

aress31 commented 5 years ago

I would be happy to see such feature too!

This way, it would be possible and trivial (a matter of a few clicks) to provide clients with a branded OSINT report containing the details of what they expose to the Internet.

Rb64 commented 2 years ago

I looked into how I would go about doing this and I had to realize that (as stated here) PyPDF2 might not be the best way of doing this. The library seems to be meant more for reading pdfs than writing them. After looking into it some more I believe it would be best to do this using JavaScript. I was thinking of something on the lines of these approaches.