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!
Fabio de Rose
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?
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.
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.
Have you made sure to update your version to our latest release? https://www.gdpicture.com/download-gdpicture/
You need to specify ClipAnnotsToPageBounds and set it to "true". You should not need to do this however since this is the default behavior.
You can directly test this in our annotations demo found here: C:\GdPicture.NET 14\Samples\Bin
Feel free to zoom out on the document you have loaded and try to drag an annotation outside of the displayed page. This is not possible.
I thought I was on the latest but I will check again. I did just try the annotation demo on your website and it allowed me to drag the annotation outside the bounds. Are the demos automatically updated with the latest version?
The demos on our website are automatically updated with each internal change we do.
If you tested out our Docuvieware annotations demo, you are right in pointing out you can draw outside the displayed page.
In our GdPicture demos however, the default behavior is what I mentioned previously and you should have no trouble doing what I mentioned in my previous reply.
Who is online
Users browsing this forum: No registered users and 1 guest