Using the WordToPDF feature to convert DOCX files into PDFs.
We are running on a web server that converts the documents and stores them.
Run good when testing on local machine.
When we publish to an Azure Web Site we get the following error:
Exception:
Message: docx conversion failed: Cannot load font, and cannot find any fallback fonts.
Conditional expression:
Filename : FlowToPDFConversion.cpp
Function : PDF::DocxConversion::Convert()
Linenumber : 95
Any suggestions on next steps. Do i need to upload fonts to azure web site? if so, are there a set of fonts that would cover use in most cases for the font/fallback fonts.
so i added this directory and set my WordToPDFOptions.SetLayoutResourcesPluginPath() and .SetSmartSubstitutionPluginPath() to this resources directory.
It worked.
So what are this .plugin files and do i need to create them to deploy to my azure web site?