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

Free Support Forum - aspose.com

Aspose PDF Annotations

This is the third time I am putting in the request for more information re Annotations on PDF documents.
We need to know the possibility to add shapes/arrows/text on PDF documents using Aspose.PDF for web platform.
If I ask in a simple way - Does Aspose PDF support adding annotations the the documents?
Directing to your documentation page for annotation does not help alot as there is not enough information available there for our developers to figure out how to add shapes (Rectangle, circle etc) with arrows, callouts on PDF docs.
If Aspose does not have this feature can we get a clarity with a yes or no?
Again - We want to use it in our web application, we already have the temporary license and we are in the process of purchasing it.


Would you please share the other forum threads where you have posted your similar inquiry.

We would like to share with you that Aspose.PDF for .NET offers the feature to add annotations as well as draw basic shapes using graphs inside the PDF. For example, please check following code snippet to draw a rectangle:

Document mRes = new Document();
Page page = mRes.Pages[1];
page.PageInfo.Margin = new MarginInfo(0, 0, 0, 0);
// Draw canvas according to page height/widht where shapes will be added
var canvas = new Aspose.Pdf.Drawing.Graph((float)mRes.PageInfo.Width, (float)mRes.PageInfo.Height);
Aspose.Pdf.Drawing.Rectangle myRec = new Aspose.Pdf.Drawing.Rectangle(0, 738, 180, 100);
var c = ColorTranslator.FromHtml("#0099ff");
myRec.GraphInfo.Color = Aspose.Pdf.Color.FromRgb(c);
myRec.Text = new TextFragment("Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum");
myRec.Text.TextState.ForegroundColor = Aspose.Pdf.Color.FromRgb(c);
mRes.Save(dataDir + "Rectangle.pdf");

Furthermore, the API mimics the behavior of Adobe Reader and if there is something which Adobe Reader supports and it is not present in the API feature set, we will investigate its feasibility and plan to add it to the API. Could you please list all type of annotations which you want to add using the API. We will check relevant details at our end and share our feedback with you accordingly.