stats4sd / aec_portfolio

A proof of concept for the AEC Consortium Project Management / Assessment System
GNU General Public License v3.0
0 stars 0 forks source link

Pdf printing #132

Closed dave-mills closed 1 year ago

dave-mills commented 1 year ago

This PR fixes the pdf print for the initiatives page (fixes #78, fixes #109). It also updates the print formatting for that page.

There is still an issue where we cannot modify the pdf file in the ways that we should with Browsershot and Puppeteer - e.g. page orientation, page margins etc. But that is less of a concern now.

TODO:

dan-tang-ssd commented 1 year ago

Got latest code and performed testing in local env. I manually created the "prints" folder in C:\public\aec\storage\app\prints. PDF file has been generated with visible content. But browser returns error 404, while the pdf file is existed.

Screen shots:

Click Generate PDF button image

Error occured image

I manually created the "prints" folder in C:\public\aec\storage\app\prints image

Try again image

Returns error 404 image

PDF file is generated image

PDF file content is visible, it also shows the radar chart now image

dave-mills commented 1 year ago

Returns error 404

Fixed :)

dan-tang-ssd commented 1 year ago

It works now, looks very nice.