Good evening,
i would like to know if there is a way to add a shape in the loaded document and see it without needing to save and reload the document. I tried also with annotation but i can't see annotation too.
Thank You in advan
Hi Marco,
We can draw the shape annotations in the PDF pages directly using PDF Viewer UI without the need of saving and reloading the document. From the toolbar, select the required shape and draw it in the document which is loaded. Please refer the below video link for an overview about PDF Viewer which also shows how to add annotations in the PDF pages.
Also, please refer the below UG link for more details about adding shape annotation in the document,
https://help.syncfusion.com/wpf/pdf-viewer/working-with-annotations/shape-annotations
Please let us know if you need any further assistance on this.
Regards,
Raja Vignesh.
Good morning,
thank You for Your answer. I would like to add shapes or annotation by code. I found some example for doing this but to see what i added i have to reload the document . Looking at the following thread:
https://www.syncfusion.com/forums/138111/re-rendering-a-changing-document-using-pdfdocumentview
i use stream as follow but also in this case i have to reload the document and this require for a little bit of time anytime i want to add a shape
PDFViewContr.LoadedDocument.Pages(60).Graphics.DrawEllipse(New PdfSolidBrush(DammiColore(5)), New System.Drawing.RectangleF(100, 100, 27, 27))
Dim Stream As New MemoryStream
PDFViewContr.LoadedDocument.Save(Stream)
PDFViewContr.LoadedDocument.Close()
PDFViewContr.LoadedDocument.Dispose()
PDFViewContr.Load(Stream)
I have the same problem with annotation.
Thank Yo
Hi Marco,
We have already logged a feature request for the support to "Create annotations programmatically in the runtime using PDF Viewer". At present, we do not have any immediate plans to implement this feature. At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision, technological feasibility, and customer interest.
You can track the status of this feature implementation in the below feedback link,
Hi,
I just would like to add that in my case there is also a strong need for doing things programmatically at the run-time such as: drawing a border, adding annotations, drawing free text (strings). And in almost all these cases the document has to be reloaded. Avoiding a reload if possible would great!
Hi Alexander,
Currently, we do not have support to “Create annotations programmatically in the runtime using PDF Viewer”. At present, we do not have any immediate plans for this. Meanwhile, we can achieve this requirement by the feature “Programmatic support for manipulating annotations based on the changes in loadedDocument property of PDFViewer”.In this feature, we can add, remove and change the properties for the annotation in the LoadedDocument object, which will be reflected back in the PDFViewer. Currently, we are working on this feature implementation which is expected to be available in our upcoming release. We will update you once the feature is rolled out.
You can track the status of this feature request here:https://www.syncfusion.com/feedback/34672/programmatic-support-for-manipulating-annotations-based-on-the-changes-in
Regards,
Krithika