iainc / iA-Writer-Templates

Preview, create PDFs, and print documents in your own style with templates in iA Writer.

Home Page:https://ia.net/writer/templates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Content to the left or right of the document text on each page

mb21 opened this issue · comments

Is there a way to display something on the left or right of the document text on each page?

Ideally, iA Writer Templates would support the Paged Media CSS module, where I could use the @left and @right selectors. Paged Media is implemented in PrinceXML and WeasyPrint among others...

Currently, there’s no way to do this in iA Writer. While we cannot promise to implement the full Paged Media CSS module (this a job for WebKit), we will definitely consider adding ability to position content to the left or right of the document page for a future update.

Thanks for the prompt reply!

oh well, that bug report is from 2007 and still not fixed, so I'm not holding my breath.

I guess you're stuck with webkit because you are using the iOS/macOS built-in webview? This seems to make a lot of sense for the preview, but not so much for the PDF/print generation... In fact, I'm wondering how you got webkit to do the headers and footers, since position: fixed doesn't work for that any more, if I'm not mistaken...?

You’re welcome. We prefer a pragmatic approach.