Product Version: PDFTron.NET.x64 (10.0.0)
Please give a brief summary of your issue:
How to plot Free Text annotation over the PDF using customized model in .NET Core along with Font size, Font Color, Font Style ?
Please describe your issue and provide steps to reproduce it:
Step 1: A Customized model holds the details of the free text annotation.
Step 2: The Customized model has CoOrdinates, Content, Author, Font Style, Font Color, Font Size, Height, and Width.
Step 3: Above stated details needs to plotted over the PDF as Free Text.
Step 4: But unable to find the Default method for plotting the Font Style, Font Color, Font Size.
Please provide a link to a minimal sample where the issue is reproducible:
We have an annotation sample for .NET Core that includes code for writing free text annotation and setting a lot of the information you want:
The following is some of the documentation for the options you would need to set for your customized model:
Font Colour: Class FreeText
Font Size: Class FreeText
To change the Font itself, you need to change the default appearance of the font. This post goes over how to do that:
Let me know how this works for you and if you have any other questions.
Thank you for the reply. We could able to plot Font Color and Font Size. But is there anyway to plot the Text Decoration in .NET Core ?
Below image produces the Text Decoration properties through XFDF. Similarly in our case we have these properties in customized JSON. So, How to plot those text decorations in .NET Core?