Hello,
I m trying to send html format in my placeholder and then generate a pdf and it s working as expected .
Now i want that what i send in html will be formated with the right size and format policy of the appropriate placeholder in my template .
I need your help please!
Don’t hesitate if you node more clarifications !
Thanks in advance.
Yes that’s the part of code that we implement when we insert html tags 
But now my objectif is not to set manually the policy in the style of balise html , but i want to set it in the code when i insertHtml (means that want to insert html with the font size that i have in the placeholder (MAIN_TEXT_BODY) mentionned in my document ) and send it to Aspose .
Thanks!
I have this code as fillPlaceholder :
If i add this : `template.setAutomaticallyUpdateStyles(true);` to the line 6 it will fix the issue ?
Is there someone who can suggest something ? wthe need is quite urgent please!
@MDAKNOU You can specify HtmlInsertOptions.USE_BUILDER_FORMATTING
option. In this case font and paragraph formatting specified in DocumentBuilder
will be used as base formatting for text inserted from HTML.
builder.insertHtml((String)args.getFieldValue(), HtmlInsertOptions.USE_BUILDER_FORMATTING);
Hello @alexey.noskov
Yes i use this option of use builder , it functionne but for examle when i put in my html a part with balise b code and if the format policy placeholder in my document is not defined as bold format , i get “code” not in bold format .
@MDAKNOU Could you please create a sample template, provide sample input data and attach current and expected output documents? We will check the issue and provide you more information.
Hello @alexey.noskov ,
yes it s working now for me ! Thanks for your reply!
1 Like