Hi,
We have a program that creates a word document from scratch on a web server, converts the document to a PDF and sends it to the user for download. Syncfusion works really well for this task, as we never have to store the document or any templates on the server.
The client has asked that we produce the report using their corporate fonts, and I can't currently see a way to do this. We can't install the font on the web server as we don't have permissions, but the file can be included in our program, but I can't see a way to reference this font in the document?
For example, we currently set the formatting using:
WCharacterFormat arial = SetCharFormat(wordDocument, "Arial", fontSize, false);
but I think SetCharFormat accepts string fontname rather than a font object. Is there a way to use a custom font in DocIO without installing?
Once the font is used in the word document I assume that setting the embed fonts to true will mean they are used in the PDF too like below:
DocToPDFConverter converter = new DocToPDFConverter();
//Sets true to embed TrueType fonts
converter.Settings.EmbedFonts = true;
Thanks for your help,
Rob