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.

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

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;
    }
}
|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.