This is an archived forum post. The information may be outdated. Contact us if you have any questions.
pdfcrowd.Client client = new pdfcrowd.Client("***", "***"); string footer = @"<table cellspacing='0' style='margin:0;width:100%'> <tr><td>quote</td><td style='text-align:right'>%p/%n</td></tr> </table>"; string html = @" <html> <head> <style> @font-face { font-family: 'Bookman Old Style'; src: url('http://server.com/BOOKOS.TTF') format('truetype'); } body { font-family: 'Bookman Old Style', serif; } </style> </head> <body> Bookman Old Style </body> </html> "; fileStream = new FileStream("file.pdf", FileMode.CreateNew); client.setFooterHtml(footer); client.convertHtml(html, fileStream); fileStream.Close();
<html> <head> <style> @font-face { font-family: 'MANGAL'; src: url('http://software.agraneeh.com/MANGALB.TTF') format('truetype'); } body { font-family: 'MANGAL', serif; } </style> </head> <body> Bookman Old Style </body> </html>