View Single Post
Old 04-04-2021, 11:52 AM   #1
Blaineoreski
Zealot
Blaineoreski exercises by bench pressing the entire Harry Potter series in hardcoverBlaineoreski exercises by bench pressing the entire Harry Potter series in hardcoverBlaineoreski exercises by bench pressing the entire Harry Potter series in hardcoverBlaineoreski exercises by bench pressing the entire Harry Potter series in hardcoverBlaineoreski exercises by bench pressing the entire Harry Potter series in hardcoverBlaineoreski exercises by bench pressing the entire Harry Potter series in hardcoverBlaineoreski exercises by bench pressing the entire Harry Potter series in hardcoverBlaineoreski exercises by bench pressing the entire Harry Potter series in hardcoverBlaineoreski exercises by bench pressing the entire Harry Potter series in hardcoverBlaineoreski exercises by bench pressing the entire Harry Potter series in hardcoverBlaineoreski exercises by bench pressing the entire Harry Potter series in hardcover
 
Blaineoreski's Avatar
 
Posts: 119
Karma: 16268
Join Date: Apr 2020
Device: none
Question 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.
Blaineoreski is offline   Reply With Quote