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.
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityI 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.
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;
}
}