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

Free Support Forum - aspose.com

Chek march dispaly issue

please help, i am unable to insert check marck in pdf or doc, i am using below code

Document doc = new Document(); 
DocumentBuilder builder = new DocumentBuilder(doc); 
builder.pushFont();
builder.getFont().setName("wingdings");
builder.getFont().setSize(20);
builder.writeln("0x20");
// builder.popFont();
doc.save("C:\Users/user/Desktop/practice/Out.pdf");

and o/p is 0x20

Hi Rajendra,

Thanks for your inquiry. Please use following code example to achieve your requirements. Hope this helps you. Please let us know if you have any more queries.

Document doc = new Document(); 
DocumentBuilder builder = new DocumentBuilder(doc); 
builder.pushFont(); 
builder.getFont().setName("Wingdings 2"); 
builder.getFont().setSize(20);
builder.writeln("" + (char)0x51); 
builder.writeln("" + (char)0x52);
doc.save(*MyDir* + "Out.pdf");

Hi Tahi,
issue resolved Many Many Thanks.
i modified your code as per my requirement, please see below code

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.pushFont();
builder.getFont().setName("Wingdings");
builder.getFont().setSize(20);
builder.writeln("" + (char)252);
// builder.writeln("" + (char)0x52);
doc.save("C:\Users/user/Desktop/practice/" +"Out.pdf");

Hi Rajendra,

Thanks for your feedback. Yes, you code is correct. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.