Skip to content

Embedded CSS doesn't seem to get used #27

@marcscheuner-bfh

Description

@marcscheuner-bfh

I'm experimenting with creating PDF's from HTML. I have a HTML template which contains a bunch of CSS styles in its section - and those seems to be totally ignored by HTML-to-QuestPDF.

`

<style> body { font-family: "Lucida Sans Unicode"; background-color: white; font-size: 22px; line-height: 1.8; letter-spacing: -0.5px; }
    b {
        font-weight: 700;
    }

    .header {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: -20px;
    }

......`

Is that the case? How can I solve this? Can I provide a separate, standalone CSS string to the conversion, that will be respected and used?

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