Please Help Me Clean Up This Code
Hi,
Recently re-installed Windows on my PC. For converting to PDF...before I used some code to get custom headers. I lost the code I had used and I'm trying to re-create it now.
In the PDF output dialog box there are two fields for custom headers and footers. Please can you help me to clean up this code I found so I can enter it correctly?
I used to have the terms to enter there exactly as they should be entered, but since the Windows reinstall the only code left I could find is below - but it seems mixed with HTML.
If I want to clean up the terms so that the unnecessary HTML is excised, what would it look like?
HEADER:
pdf_header_template: u'<header style="justify-content: flex-end; color: gray; font-size: x-small">\n <div class="even-page">_AUTHOR_</div>\n <div class="odd-page"><i>_SECTION_</i></div>\n</header>'
pdf_footer_template: u'<p style="text-align:center; color: gray; font-size: x-small"> _PAGENUM_</p>'
Going in these two fields here: ibb.co/3k40sdg
I'm working with 3.48 on 64 bit Windows machine.
Thanks!
Blaine
Last edited by Blaineoreski; 04-05-2021 at 07:12 AM.
|