toobigtoignore / issf

A global, open-source collaborative database of information on small-scale fisheries.
https://issfcloud.toobigtoignore.net
6 stars 3 forks source link

Increase real-estate on PDF report #132

Open ranguli opened 5 years ago

ranguli commented 5 years ago

I'm noticing that (at least on my end) most PDF reports end up running over onto a second page, but only by a few lines. For lengthy reports this is unavoidable, but most of them can certainly be fit into a single page. The two logos can definitely be made much smaller.

pdf

As well, we can save some space by bringing the chart up closer to the header text seen below. If the chart is hard to work with because it's javascript, we should be able to reduce the padding/margin around the header text.

pdf2

We can also largely reduce the size of the side margins, as increasing the line limit of the text will reduce the amount of vertical spaze those elements occupy.

pdf3

jackharrhy commented 5 years ago

Partial problems are found with https://github.com/loftylabs/django-hardcopy , since it does not seem to permit us to mess around with the chrome print settings very easily.

Other CSS issues can be fixed, most of this was due to trying to match the style of the original document, now I can change it to be more print friendly.

ranguli commented 5 years ago

Although this is low priority, the second page is now entirely empty save for the footer print information. if this can be hidden with CSS it should compress the report to one page.