Page Break for PDF

I’ve just started using Agenda, and it’s been great. I want to use of the PDF export feature to send lesson agenda notes to students. However, in testing the feature, sometimes after exporting to PDF a second page is created with only one line of text on it. Sometimes the second page is just blank. Then I have to either edit my note to hopefully fit it on one page or go in with a PDF editor and try to delete a blank page—extra steps. It would be great to be able to manipulate the page break before exporting to PDF. Maybe a page break indicator could look similar to an unobtrusive horizonal rule (dotted?). It could be vertically movable within a note from the standard letter height breakpoint to wherever the user chooses to place it. It could be toggle-able as well.

2 Likes

This starts to get a bit messy, I’m afraid. Agenda is not a WYSIWYG editor like Microsoft Word. The same note looks completely different on different devices. So trying to introduce pagination would be very difficult.

I think the best bet is if we simply try to make the PDF generation smarter.

Does this just happen if the text is almost the size of a single page? I assume it is just when it spills over to the next page. Correct?

I figured that pagination would be a feat. I have found print preview on desktop to be somewhat helpful before exporting–still hit or miss though.

“I think the best bet is if we simply try to make the PDF generation smarter.” –That sounds like a good option.

“Does this just happen if the text is almost the size of a single page? I assume it is just when it spills over to the next page. Correct?” –That is correct. When the content is near or just past the size of a standard letter size page, either a single line of text is pushed onto an additional page, or an additional blank page is generated.

I miss this option too. Regularly i create dokumentations for Work with text and pictures, often i need much time to prepare the dokument for exporting to PDF, so that the PDF looks clear and structured for the client. The option “page break” would be perfect for those tasks.

I reported this problem in June 2020. Drew investigated the issue at the time, and I was told that it would be addressed down the road. It was suggested that I open the file in Preview and delete the blank page. That solution did not work for me. I guess this is why I gave up trying to email PDFs from directly from agenda. If this was fixed, I would be appreciative.

We have since changed our PDF generation to use Apple’s native generation. So we have less control over this now, but hopefully something that works more like one of Apple’s apps.

I guess this problem is simply that you get an empty page if the content is just a little bit bigger than the available space, right? What is your proposed solution? Exclude the page somehow if we can somehow determine it is empty? Or introduce some sort of orphan detection so that the whole last paragraph moves to the next page?

Drew

If a single line appears on the last page - I do not have a problem with this. If the last page is going to be blank, do not include it in the PDF. At first I thought that I must have a series of newlines at the end of a document. But this was not the issue.

Fred

. . Stay safe and be kind