threat-dragon icon indicating copy to clipboard operation
threat-dragon copied to clipboard

PDF report has sliders around diagram

Open elouet opened this issue 4 years ago • 6 comments

I have a diagram that spans the entire input window on the application. When the report is presented as HTML inside the application there is no problem. When I create a PDF, however, the diagram is cut and surrounded by sliders (not operative of course), as shown below :

report

elouet avatar Nov 17 '20 14:11 elouet

See https://github.com/OWASP/threat-dragon-core/issues/61

I found that if I print and then save as PDF that did a better job. I was using Power PDF when I did print to PDF but I would expect the same from the default print to PDF option in Windows.

adampurkiss avatar Nov 17 '20 14:11 adampurkiss

Thanks @elouet for this bug report, is this running on a Windows desktop version of Threat Dragon?

jgadsden avatar Nov 18 '20 08:11 jgadsden

Thanks @adampurkiss for helping here - is this something you could look into and see if there are any functional changes needed to Threat Dragon? I myself am at a disadvantage here as I run Linux and MacOS ... I have an ancient Windows 10 machine but it is very cranky, so if you can investigate that would be great

jgadsden avatar Nov 18 '20 08:11 jgadsden

I have tried both Windows and Linux versions of the app, same behaviour. Also printing to PDF doesn't help unless I switch to landscape. Anyway PDF output is probably never going to be satisfactory because it leads to diagrams being split across pages, and we have very little control over the layout. It would be nice to be able to export to some other intermediate format (maybe just HTML) so that the output of the tool can be edited for better layout.

elouet avatar Nov 18 '20 09:11 elouet

Hello @elouet - good idea to export to different formats:

Anyway PDF output is probably never going to be satisfactory because it leads to diagrams being split across pages, and we have very little control over the layout. It would be nice to be able to export to some other intermediate format (maybe just HTML) so that the output of the tool can be edited for better layout.

I have raised a separate issue for this OWASP/threat-dragon#125

jgadsden avatar Nov 23 '20 05:11 jgadsden

Hi all, I have the same issue. Using Mac version of the application. DFD Print bug

lukfe85 avatar Mar 17 '21 10:03 lukfe85

Closing this because it is fixed in version 2.0

jgadsden avatar Jan 17 '23 06:01 jgadsden