Skip to content

Issue with the header and footer options #32

Description

@cpchan718

Hi,

I am having an issue with the header and footer option. When I place an attribute into a html tag like style='some css'. The header and footer does not show. I think there is an issue with the quotations within quotations. Like so:

'header': {
                    'height': '1cm',
                    'contents': "<span style='text-align:center'><small>" + titleheader + "</small></span>"
},
'footer': {
                    'height': '1cm',
                    'contents': '<span style="text-align:right"><small>{currentPage}</small></span>'
}

Thou, it does work without the attributes. Like so:

'header': {
                    'height': '1cm',
                    'contents': "<center><small>" + titleheader + "</small></center>" 
},
'footer': {
                    'height': '1cm',
                    'contents': '<span><center><small>{currentPage}</small></center></span>'
}

It will be great if I can align the footer page numbers to the right of the PDF.

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions