0

I have one visual force email template which sends an attachment in PDF format. I have given style class for fields in the PDF, but the given CSS does not works for the PDF.

Please help me out.

1
  • 1
    PDF is rendered with Flying Saucer. Not all CSS styles are supported. How are you implementing the CSS?
    – sfdcfox
    Apr 3, 2015 at 6:43

1 Answer 1

1

You will need to give inline-css style not the selector way of provide class.

If using CSS class then you must specify the media type for css. Example:

@media print {
    p {
        font-family: georgia, serif;
        font-size: 14px;
        color: blue;
    }
}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .