Differences between CreateText and CreateFreeText in PDFContentEditor

What are the differences between the CreateText and CreateFreeText methods in the PDF.Kit.PdfContentEditor class?

Hi,

Thank you for considering Aspose.

CreateText function adds a note to the pdf file where as CreateFreeText ads a text box to the pdf file. Please have a look at the attached sample for clarification.

Thanks.

Adeel Ahmad
Support Developer
Aspose Changsha Team
http://www.aspose.com/Wiki/default.aspx/Aspose.Corporate/ContactChangsha.html

I am looking to open an existing PDF file and add a text frame on each page. The text on each page may be different and I would like the text frame to be shaded and have a border. How can I do this?

Hi,

You can use PdfFileMend.AddText Method for adding text. But that still leaves the problem of border and shading. I will discuss this with the developers and let you know.

Thanks.

Adeel Ahmad
Support Developer
Aspose Changsha Team
http://www.aspose.com/Wiki/default.aspx/Aspose.Corporate/ContactChangsha.html

How?

Does it have to be done with a separate DrawPoly and AddText or is there a single way to add a text frame and control all the properties (shading, border, position, size, text).

CreateFreeText in PDFContentEditor maybe fill your requirement. It can add text with border but can’t shaded. Please reference the attachment.