Maybe this will help for custom modifyable content, you must change some things due to new Confluence version: https://www.scandio.de/2011/03/confluence-pdf-export-titelseite-mit-dokument-daten/
This document is a good start: http://www.antennahouse.com/CSSInfo/CSS-Page-Tutorial-en.pdf
The Atlassian documentation (https://confluence.atlassian.com/doc/customise-exports-to-pdf-190480945.html) is not really helpful becauses it hides all comments from the last years.
With the mobile interface you can read those comments
=> If these variables need to be dynamic you must create your own user macro for this.
=> content: counter(page) " of " counter(pages);
=> upload font file to a page, define the font in CSS with @font-face and then reference it like any other font
=> can you explain in more detail: what did you do? what did you expect? what did really happen?
You can easily add all of these to your header or footer using Content Exporter for Confluence addon. Here's a sample screenshot:
You can try out how it works online by exporting the documentation itself from its support site:
Hi my Community friends! For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs