Hi,
how can I write a text in a box?
I mean that if the text reach the end of the box, should start automatically a new line.
Regards
Currently, the best way to add text to a rectangular area, and wrap when needed, is to use the ContentReplacer class.
See the AddText function.
http://www.pdftron.com/pdfnet/samplecode.html#ContentReplacer
Thank you for your reply.
How can I use ContentReplacer with a font like Arial?
I need to handle also Hebrew chars.
Regards
Il giorno martedì 23 febbraio 2016 00:15:30 UTC+1, Ryan ha scritto:
Currently, the best way to add text to a rectangular area, and wrap when needed, is to use the ContentReplacer class.
See the AddText function.
http://www.pdftron.com/pdfnet/samplecode.html#ContentReplacer
Thank you for your reply.
With
ContentReplacer
ho can I use a specific font?
I also need to write Hebrew chars.
Regards
Il giorno martedì 23 febbraio 2016 00:15:30 UTC+1, Ryan ha scritto:
Currently, the best way to add text to a rectangular area, and wrap when needed, is to use the ContentReplacer class.
See the AddText function.
http://www.pdftron.com/pdfnet/samplecode.html#ContentReplacer
You can use the ElementBuilder class to add text with the appropriate font, using placehold/dummy, text. Place this text inside the target rectangle area. Then when you run ContentReplacer on that area, it will detect the font, and load it for replacement.
https://www.pdftron.com/pdfnet/samplecode.html#ElementBuilder
If there are any issues loading the font, use the PDFNet.AddFontSubst function to control this.
http://www.pdftron.com/pdfnet/docs/PDFNet/?topic=html/M_pdftron_PDFNet_AddFontSubst_1.htm