Page 1 of 1

Annotations with the bounds displayed image?

Posted: Tue Sep 15, 2020 3:57 pm
by MStein
is it possible to rescrict annotations to only be placed with in the displayed image?
if so how to do so in WPF? monster

Re: Annotations with the bounds displayed image?

Posted: Wed Sep 16, 2020 5:34 pm
by Fabio
Hello there,

What do you mean by restrict?

At the moment, our application let the user draw outside the document, but if you save this document and open it with another editor/viewer, you will not see the outside annotations!

Best regards,
Fabio de Rose
Solution Engineer

Re: Annotations with the bounds displayed image?

Posted: Thu Sep 17, 2020 3:20 pm
by MStein
Yes that is what i want to avoid. it should be impossible to annotate a document outside its bounds. is there a way to limit the annotation area beforehand?

Re: Annotations with the bounds displayed image?

Posted: Tue Oct 06, 2020 4:15 pm
by Hugo
Hi MStein,

Thank you for your request. We currently have this feature on our to-do list.

We will consider implementing this. How is this causing issues for you as you can simply avoid drawing annotations outside the page boundaries?
Additionally you can fit the page size to the viewer which would prevent you from drawing annotations outside the page boundaries if you are using the interactive methods for drawing annotations.

Feel free to let me know why you would need this?

Regards,

Re: Annotations with the bounds displayed image?

Posted: Thu Oct 15, 2020 4:15 pm
by MStein
Hey Hugo

i've found a way to ristrict that annotation area, after annotations is placed however it is not the ideal solution.
the reason is when you annotate a picture or a pdf and then burn the annotation and then export the file, the part of the annotation that was outside the bounds of the file is not there anymore ofc.

then i simply wanted a boolean to limit the area to only allow annotation inside picture or pdf bounds, and still keep the responsiveness by fitting content to viewer.

Re: Annotations with the bounds displayed image?

Posted: Fri Oct 16, 2020 1:54 am
by Jojoshua
We ran into this as well and would like a solution

Re: Annotations with the bounds displayed image?

Posted: Sat Oct 31, 2020 6:04 pm
by JasJ21
Good to know that the feature is coming in the future! It's so far the only issue I ever had with GdPicture, I'm entirely satisfied with everything else and adding it will make a lot of happy customers.

Re: Annotations with the bounds displayed image?

Posted: Sun Nov 01, 2020 6:33 pm
by Loïc
Should be available within one or two weeks guys!

Re: Annotations with the bounds displayed image?

Posted: Thu Nov 05, 2020 1:25 pm
by Fabio
Hello,

This feature is now available!

It is managed with the boolean property ClipAnnotsToPageBounds.
You will find the documentation here: https://guides.gdpicture.com/content/Gd ... ounds.html

For your information, the default value of this parameter if you don't set it in the code, is "true".

Please, let us know if this new feature is addressing your need or if you need further evolution.

Best regards,
Fabio