iainc / iA-Writer-Templates

Preview, create PDFs, and print documents in your own style with templates in iA Writer.
https://ia.net/writer/templates
1.03k stars 185 forks source link

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

Closed mb21 closed 8 years ago

mb21 commented 8 years ago

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...

antons commented 8 years ago

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.

mb21 commented 8 years ago

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...?

antons commented 8 years ago

You’re welcome. We prefer a pragmatic approach.