code4recovery / pdf

Meeting schedule PDF generation service
https://pdf.code4recovery.org
MIT License
3 stars 2 forks source link

Reduce line spacing to generate fewer pages and reducing printing costs #33

Closed meetings03 closed 1 year ago

meetings03 commented 1 year ago

Is it possible to reduce the line spacing between the region name and first line of the first meeting listed for that region, the last line of the last meeting listed in a region and the next region, and the space between each meeting listing within a region by around 50%. We have over 2800 meetings in our TSML and when generating a pdf for our print version the current line spacing generates 148 pages for a 5.5 x 8.5 pdf for print. by reducing the line spacing, we could save around 25% or 35-40 pages. This would greatly reduce the printing costs for us and for anyone utilizing the pdf generator to make printed lists of any size. I have attached a pdf to help show as an example. Less Space Example.pdf

joshreisner commented 1 year ago

hi, i tried making these changes, but it doesnt seem like it saves much room, only about 10%

here's an example. i couldn't get your list to work locally so i used puget sound's. they have 730 meetings. halving those margins reduces the pages from 42 to 39.

by those numbers i'd estimate this saves you 12 pages. it doesn't look much worse than before, but lmk if this is still a desired change

meetings03 commented 1 year ago

Josh, Any space savings will help a lot. It looks like if you reduce the space between the region name and the last meeting entry of each region, it will gain even more space. Maybe give that a try and see where we're at.

Thank You for being of service, Greg S. Area 03 Meeting List Coordinator

On 3/10/2023 9:20 AM, Josh Reisner wrote:

hi, i tried making these changes, but it doesnt seem like it saves much room, only about 10%

here's an example. i couldn't get your list to work locally so i used puget sound's. they have 730 meetings. halving those margins reduces the pages from 42 to 39.

* puget-sound.pdf
  <https://github.com/code4recovery/pdf/files/10943907/puget-sound.pdf>
* puget-sound-condensed.pdf
  <https://github.com/code4recovery/pdf/files/10943906/puget-sound-condensed.pdf>

by those numbers i'd estimate this saves you 12 pages. it doesn't look much worse than before, but lmk if this is still a desired change

— Reply to this email directly, view it on GitHub https://github.com/code4recovery/pdf/issues/33#issuecomment-1464047659, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYV37EOVJOACEIDCID6YEFDW3NIE5ANCNFSM6AAAAAAVVRJYTA. You are receiving this because you authored the thread.Message ID: @.***>

meetings03 commented 1 year ago

Josh, As a followup, I've attached a pdf that I went ahead and did a manual estimated line space reduction for the whole page and it looks like it can save around 25%, +or-. Every little bit will help over the course of 140+ pages.

Thank You for being of service, Greg S. Area 03 Meeting List Coordinator

On 3/10/2023 9:20 AM, Josh Reisner wrote:

hi, i tried making these changes, but it doesnt seem like it saves much room, only about 10%

here's an example. i couldn't get your list to work locally so i used puget sound's. they have 730 meetings. halving those margins reduces the pages from 42 to 39.

* puget-sound.pdf
  <https://github.com/code4recovery/pdf/files/10943907/puget-sound.pdf>
* puget-sound-condensed.pdf
  <https://github.com/code4recovery/pdf/files/10943906/puget-sound-condensed.pdf>

by those numbers i'd estimate this saves you 12 pages. it doesn't look much worse than before, but lmk if this is still a desired change

— Reply to this email directly, view it on GitHub https://github.com/code4recovery/pdf/issues/33#issuecomment-1464047659, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYV37EOVJOACEIDCID6YEFDW3NIE5ANCNFSM6AAAAAAVVRJYTA. You are receiving this because you authored the thread.Message ID: @.***>

joshreisner commented 1 year ago

attachments over email dont get uploaded to github 😦 can you upload on the website?

meetings03 commented 1 year ago

Here's the example pdf Less Space Condensed.pdf

joshreisner commented 1 year ago

ok, i've reduced the margins now. you're down to from 148 to 126

meetings03 commented 1 year ago

I'm getting the 500 server error again when trying to generate a pdf?

Thank You for being of service, Greg S. Area 03 Meeting List Coordinator

On 3/10/2023 10:43 PM, Josh Reisner wrote:

ok, i've reduced the margins now. you're down to from 148 to 126

* before-148.pdf
  <https://github.com/code4recovery/pdf/files/10947727/before-148.pdf>
* after-126.pdf
  <https://github.com/code4recovery/pdf/files/10947726/after-126.pdf>

— Reply to this email directly, view it on GitHub https://github.com/code4recovery/pdf/issues/33#issuecomment-1464833943, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYV37EPUSUSXD7KPKWHC2QDW3QGIBANCNFSM6AAAAAAVVRJYTA. You are receiving this because you authored the thread.Message ID: @.***>

joshreisner commented 1 year ago

looks like it's working for other feeds but throwing a fast 500 on your feed. i'm not seeing anything in sentry (where it normally reports errors)

i'll try to look at it tonight to see if i can learn anything. if not i'll create a new issue