function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
DannyK88DannyK88 

Cursive font in PDF generated from Visualforce

Hi Everyone,

I have found muliple articles about this but nothing seems to work for me. I have a requriement to create a PDF form that has cursive writing on it. I have been tooling around with adding style sheets and inline style classes and even inline style attributes. Nothing I try seems to work. The font styles work on a regular visualforce page but as soon as I try to render the page as a PDF the font styles go away. I can't seem to get them to stay on the page when the visualforce page is set to render as a PDF. Is there a trick that will allow me to generate a PDF from the system and customize the font style. I guess it does not have to be a visualforce page but that's what I have tried so far. I have not looked into any other way to get this requirerment done. I have run up against a brick wall and can't seem to get around it.

Thanks for the help,
Danny
Vijay AdusumilliVijay Adusumilli
As per http://www.salesforce.com/us/developer/docs/pages/Content/pages_output_pdf_supported_fonts.htm
"Visualforce PDF rendering supports a limited set of fonts."

Please read the article for more information.
DannyK88DannyK88
Hi Vijay,

So there is no hack or trick that will allow me to add support for different fonts? I think I have seem articles saying that the Visualforce PDF rendering tool is based on an engine called Flying Saucer. Here is a link to the article stating that the PDF rendering enginge is base on flying saucer: http://salesforce.stackexchange.com/questions/38522/setting-font-face-for-visualforce-email-pdf-attachments-messagingattachment

Thanks,
Danny