Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
Dynamic annotations position change |
Post Reply ![]() |
Author | |
sdhanaraj7 ![]() Beginner ![]() ![]() Joined: 27 Sep 13 Location: chennai Status: Offline Points: 10 |
![]() ![]() ![]() ![]() ![]() Posted: 27 Sep 13 at 1:59PM |
Hi friends,
I want to change the position of the newly added annotation and save into the database. I want to create as many annotations and change the position (top, left) of any annotation. I am using asp.net with c#. Waiting for your reply. Need urgent |
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
Can you try using
QP.SetAnnotDblProperty(annotID, 105, left); QP.SetAnnotDblProperty(annotID, 106, top); Andrew. |
|
![]() |
|
sdhanaraj7 ![]() Beginner ![]() ![]() Joined: 27 Sep 13 Location: chennai Status: Offline Points: 10 |
![]() ![]() ![]() ![]() ![]() |
Hi Andrew,
Thanks for reply. But I don't want to set the top and left positions statically: i.e. QP.SetAnnotDblProperty( When i move the annotation, get the new top and left position and save into the database. Is there any function to get the new coordinates. Waiting for your reply. Regards, Dhanaraj.s
|
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
More information is needed. Are you saying when the user moves the annotation around with the mouse that you want to get the coordinates of the Annotation that was just moved ? What database are you talking about ? QP.GetAnnotDblProperty( Debenu Quick PDF Library does not have and GUI functionality to work with Windows or ASP.NET. Andrew.
|
|
![]() |
|
sdhanaraj7 ![]() Beginner ![]() ![]() Joined: 27 Sep 13 Location: chennai Status: Offline Points: 10 |
![]() ![]() ![]() ![]() ![]() |
Hi Andrew,
When a pdf file with annotations is opened/ newly created, if i move the annotation to a new place in the document and now i want to save the pdf file using my gui. When i again opened the pdf file, the annotation should be displayed in the new place(where i moved the annotation). Actually my requirement is user can add the annotation and user can change the annotation position and the user can save the annotation. Regards, Dhanaraj. S
|
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
Dhanara,
a. Do you have an application working with Debenu Quick PDF Library already ? I can assume then that you have QPL code to read the positons of the annotations and your create graphics nodes in a special ASP.NET Graphics library which supports moving, resizing, panning, zooming. What annotation types do you need to support ? Text, Note, Markup ? or b. Are you in the process of developing this new functionality and looking for a simple component to do all the moving, editing for you ? Andrew. |
|
![]() |
|
sdhanaraj7 ![]() Beginner ![]() ![]() Joined: 27 Sep 13 Location: chennai Status: Offline Points: 10 |
![]() ![]() ![]() ![]() ![]() |
Andrew,
Thanks for your reply a ) I need to support Annotation type for "Note". I am developing a new component in asp.net/c# to move, edit and locking an annotation for a user specific. I want sample code for reading a dynamic annotation position. I dont have QPL code to read the positions waiting for your reply. regards, Dhanaraj. S
|
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
Here is some sample code to extract the Annotation properties.
QP.LoadFromFile("annots.pdf", ""); for (int i = 1; i <= QP.AnnotationCount(); i++) { if (QP.GetAnnotStrProperty(i, 101) == "Popup") // Note type annotation. { string name = QP.GetAnnotStrProperty(i, 103); double left = QP.GetAnnotDblProperty(i, 105); double top = QP.GetAnnotDblProperty(i, 106); } } |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store