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

Free Support Forum - aspose.com

ASPOSE.WORDS unable generate checkbox in PDF on Azure

Hi,

We are working on a project which generate PDF using ASPOSE.WORDS. On Local it’s working the PDF generation is working fine. But as we publish the website on azure the check boxes in the PDF comes circular with white dot. We not sure but this seems to be a font-issue and we tried setting the font with FontSettings.SetFontsFolder(@“C:\MyFonts”, false); with this all check boxes uncheck including the checked ones.

The help on this is pretty urgent and will be appreciated!

Thanks
Sanjay Varma

Hi Sanjay,

Thanks for your inquiry and sorry for the delayed response. In case the required fonts are not present on your remote machine, please install those fonts as Aspose.Words requires TrueType fonts when rendering documents to fixed-page formats (PDF, XPS or SWF). Please read the following articles for more details:

https://docs.aspose.com/words/net/using-truetype-fonts/

https://docs.aspose.com/words/net/specifying-truetype-fonts-location/

Please let me know if I can be of any further assistance.

Best Regards,

Hi,

I have added wingding.ttf WINGDNG2.TTF WINGDNG3.TTF in fonts folder but I am getting all checkboxes unchecked in local environment using FontSettings.SetFontsFolder(@“C:\MyFonts”, false);

Also is there any mechanism to add font on Azure?

Hi Sanjay,

Thanks for your inquiry. Could you please attach your input Word document and code here for testing? I will investigate the issue on my side and provide you more information.

Best Regards,

Hi Awais,

Thanks for your quick reply. As per your last reply I am sending you the sample project for your demonstration as below.
http://uploading.com/folders/get/2md673b7/Aspose

If you require further clarification do let me know.

Regards,
Sanjay Varma

Hi Sanjay,

Thanks for the additional information and sorry for the delayed response. We’re working over your query and will get back to you soon.

Best Regards,

Hi Awais,

We have converted the website to webrole and now running it under full trust the checkboxes are coming checked in the generated PDF.

We appreciate your reply and co-ordination on this forum posts.

Thanks again!

Regards,
Sanjay Varma

Hi Sanjay,

Thanks for the additional information. It is perfect that you managed to resolve the problem on your side. Please let us know any time you have any further queries.

Best Regards,