I'm trying to figure out a way to pull the page title, just the first 5 characters of the page title, date (included as a macro on the page), and the status of the page and include it in the header during PDF Export.
I have written the following HTML in the header section to get this:
<table>
<tr>
<td style="color: #663399;"><b>Company Name</b></td>
<td><b>First 5 characters of Page Title</b></td>
<td><b>Date Macro from Page</b></td>
<td><b>Page Status</b></td>
</tr>
<tr>
<td colspan="4">Page Title</td>
</tr>
</table>

I've just hard-coded the information, but I would like to have the pdf export inherit this information from the page, so that I do not need to modify the HTML every time I export a pdf.
Has anyone been able to do something similar?