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

Free Support Forum - aspose.com

Aspose PDF - combined fixed and free-flowing formatting

I am looking to use Aspose PDF to dynamically create a PDF, part of which will be fixed - text and lines in precisely defined positions, and part as free-flowing rich text. Is this possible?

Hi Bartek,


Thanks for contacting support.

We are pleased to share that Aspose.Pdf for .NET supports the feature to add Text, Line annotations in PDF document and you can place them at particular page region. It also offers the feature to add Rich text by adding HTML string (containing text formatting) or by placing a formatted text inside PDF file and contents are placed in flow layout (Top-Left to Bottom-Right) and if it cannot be accommodated over a single page, the contents flow to subsequent page. For further details, please visit


In order to add line, you may consider using following code snippet.

[C#]

PdfContentEditor editor = new PdfContentEditor();<o:p></o:p>

editor.BindPdf("example.pdf");

editor.CreateLine(new System.Drawing.Rectangle(0, 0, 100, 100), "Welcome to Aspose", 0, 0, 100, 100,

1, 1, System.Drawing.Color.Red, "D", new int[] { 2, 3 }, new string[] { "OpenArrow", "ClosedArrow" });

editor.Save("example_out.pdf");