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

Free Support Forum - aspose.com

Reading Font size of Merge Field

Hello there,

I am Raja from Bangalore. I need a quick help on this, so could you please answer this Q

I have a word document with merge fields such as FirstName , LastName, Barcode that are need to be merged and converted into PDF via Aspose Words.

Here we are generating an image for Barcode merge field. if the user changing the font size of Barcode merge field that needs to be reflected in image size also, so we want to read the fon’t size of Barcode merge field.

For instance if the merge field font size is 10 then the image size would be 10*10

so, how do I achieve this . Please let me know.Thanks in Advance

Raja.s

FYI,

I am using these code in order to insert an image.
docBuilder.MoveToMergeField(MailMergeConstants.BARCODE);
docBuilder.InsertImage(BarcodeImage); //Here I want to add size of image based on merge field font size.

Please help me out.

Thanks,

Hi Raja,


Thanks for your inquiry. Please attach your input Word document containing the barcode mergefield here for testing. We will investigate the issue on our end and provide you more information.

Best regards,