How to print an annotation

Hi,

We would like to print an annotation added through Aspose in a PDF as if PDF content. Otherwise we would liek to treat the added annotation as PDF content itself so that when it gets printed out the annotation also would come in the print. Could you please let me know how we can achieve this?

Document pdfDocument = new Document("test.pdf");<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

PdfContentEditor editor = new PdfContentEditor(pdfDocument);

System.Drawing.Rectangle rect = new System.Drawing.Rectangle(100, 100, 120, 120);

rect.X = 1;

rect.Y = 1;

editor.CreateFreeText(rect, "This is my free text annotation and this is vry fine", 1);

this is how we are creating an annotation. Once we take a printout of this PDF ,these annotations are not gettnig print out.

Hi,

Thanks for your interest in our products.

We have a enumeration named AnnotationFlags present under Aspose.Pdf.InteractiveFeatures.Annotations namespace which provides the capability to allow or disallow the annotation printing. For more details, please visit: [AnnotationFlags Enumeration](http://docs.aspose.com/display/pdfnet/AnnotationFlags+Enumeration)

Please feel free to contact support in case you need any further assistance.

Thanks & Regards,

Could you please share me sample code snippet where we can set the falg property to true? Appreciate your quick help here

Hi,

Thanks for your feedback, kindly check the following documentation link for code snippet as per your requirement.

[SetFieldAppearance Method ](http://docs.aspose.com/display/pdfnet/SetFieldAppearance+Method)

Please do let us know if you required any further assistance.

Thanks & Regards,

I am still not clear on ,how to use this method. I am using following code to add annotation

Document pdfDocument = new Document("test.pdf");<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

PdfContentEditor editor = new PdfContentEditor(pdfDocument);

System.Drawing.Rectangle rect = new System.Drawing.Rectangle(100, 100, 120, 120);

rect.X = 1;

rect.Y = 1;

editor.CreateFreeText(rect, "This is my free text annotation and this is vry fine", 1);

Now how to set the property to print here? Could you please advice here. Is there any other way we can add a free text and set teh "print" funtion to true.

Hi,

Thanks for sharing the details and sample source code. I am very sorry for the inconvenience caused due to this issue. However, I managed to reproduce this issue on my side. For the sake of correction, I have logged this issue as PDFNEWNET-33428 in our bug tracking system. Your request has also linked to the appropriate issue and you will be notified as soon as it is resolved.

We apologize for your inconvenience.

Thanks & Regards,

Any updates on this defect as it is stopping us from moving to production. If someone can atleast tell us ETA, it will help us make decision.


Thanks.
Akesh Gupta

Hi Akesh,

Thanks for your patience.

I have verified the status of this issue from our issue tracking system and regret to share that this issue is still unresolved. Currently it is pending for analysis and is in the queue. Also, at the moment we can't provide you the ETA for this issue. However, I have requested the development team to share the ETA regarding its resolution. As soon as we get required information, we will be more than happy to update you with the status of correction. Please be patient and spare us little time.

We apologize for your inconvenience.

Thanks & Regards,

Hi Akesh,

Thank you for your patience.

I am very pleased to inform you that the issue is resolved by the development team and this issue will be a part of Aspose.Pdf for .NET v7.0 (to be released in May as per our monthly release plan) after following the complete testing and release cycle. Please be patient and we will notify you once the version is available for download.

We apologize for your inconvenience.

Thanks & Regards,

The issues you have found earlier (filed as PDFNEWNET-33428) have been fixed in Aspose.Pdf for .NET 7.0.0.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(3)