AnnotationViewer with multiple pages
Posted: Fri Jun 14, 2019 2:39 pm
Hi,
maybe i'm just too dumb, but how can i programmatically add annotations inside a WpfAnnotationViewer on multiple pages?
I've got an instance of PdfDocument and extract an ImageCollection with the PdfPage.Render() funktion on each page. I've assigned this ImageCollection to the Images property of the WpfAnnotationViewer and set the DisplayMode Property to SingleContinuousColumn.
Now i've created an instance of RectangleAnnotationData and set it up like i want.
After doing that, i add this annotation like so:
I can't see any way to tell on what page/image the annotation should be
maybe i'm just too dumb, but how can i programmatically add annotations inside a WpfAnnotationViewer on multiple pages?
I've got an instance of PdfDocument and extract an ImageCollection with the PdfPage.Render() funktion on each page. I've assigned this ImageCollection to the Images property of the WpfAnnotationViewer and set the DisplayMode Property to SingleContinuousColumn.
Now i've created an instance of RectangleAnnotationData and set it up like i want.
After doing that, i add this annotation like so:
Code: Select all
annotationViewer.AnnotationDataCollection.Add(annotationData);