HTML to PDF / DOCX / RTF Java converter library Forums PD4ML v3 Archived Forums (Read Only) HTML/CSS rendering issues Can I reference a style sheet in the header and footer html?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #27143

    I have successfully implemented headers and footers using hard coded style= attributes. Now I need the styles to be dynamic.

    Can I reference a style sheet in the header and footer html? If so how?

    #30034

    If you define headers/footers via API, try to define not only HTML snippet, but a valid HTML doc:

    [language=xml:1yqlfbz1]header.setHtmlTemplate(“” +
    “page $[page] of $[total]“)[/language:1yqlfbz1]

    #30035

    Oh, thank-you.

    I don’t know where I got the idea that headers and footers had to begin with a tag. I will enhance them to be a full HTML document and see if that fixes my problems. I will reply with my results.

    #30033

    > I don’t know where I got the idea that headers and footers had to begin with a tag.

    PD4ML supports two ways to define headers/footers, and it can be confusing.

    Other approach allows you to define headers/footers inline with tag. In this case a header or footer respects the main document stylesheets.

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘HTML/CSS rendering issues’ is closed to new topics and replies.