Use case or problem
When I export to PDF natively via the Obsidian menu. I would like to have the pages breaking at the correct point of the content. Not during a paragraph or item.
Insert a char for page breaks that the export to pdf feature adheres to.
Current workaround (optional)
For now, you can add this to add a page break - before a heading or something.
<div style="page-break-after: always;"></div>
thanks @ottovanluchene - that works.
I wish there was a native solution for this. Filling a long note with HTML code for every page break doesnt seem like a solution.
Hmm. What am I doing wrong? Here is a snapshot of my pdf with no page breaks.
Don’t add it in a code block.
It will not show up in preview mode.
OK. But it’s so boilerplate - i.e. constant - that you ought to be able to automate it.
I think best solution for this is to get a preview of the final output (being it pdf or MS Word etc) and making some final adjustments. Markdown and paged format documents are fundamentally different in this regard and should remain so. it is only a problem of conversion. apps like PanWriter are helpful for providing that preview before conversion.
Could a CSS snippet solve this? --PB-- → Page break here
I have it in my Text Expander as
For quickly adding the above page break trick