We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Save content to PDF become unreadable

Hi,


I have a word template (IssueDoc.docx in attached), after I populate data from Asp.net resource file (Sinhala) and then save to “docx” and “pdf” file, I found only “docx” file is readable, “pdf” file display square box only.

Please advise. Thanks!

Hi Envy,

Thanks for your inquiry. Please note that Aspose.Words requires TrueType fonts when
rendering documents to fixed-page formats (PDF, XPS or SWF). Make sure
you have all the Fonts installed on your machine you’re using to convert
Word document to PDF format. I would suggest you please read the
following articles:
http://www.aspose.com/docs/display/wordsnet/How+Aspose.Words+Uses+True+Type+Fonts

If you still face problem, please share following detail for investigation purposes.

  • Please attach your input Word document. The mail merge field’s font is Arial in IssueDoc.docx. However, the output document have ‘Iskoola Pota’ font.
  • Please

    create a standalone/runnable simple application (for example a Console
    Application Project
    ) that demonstrates the code (Aspose.Words code) you used to generate
    your output document


As soon as you get these pieces of information to
us we’ll start our investigation into your issue.