Unable to set PDFAnnot property - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Windows 8.1, 10, WindowsPhone, Windows UWP
  • Page:
  • 1
  • 2

TOPIC: Unable to set PDFAnnot property

Unable to set PDFAnnot property 3 years 3 months ago #9573

  • Pja
  • Pja's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 45
  • Thank you received: 0
I want to set the StrokeColor and strokeWidth property of PDFAnnot class of the library.
But i am unable to set that property.
Can you give me a possible solution for the same?

Please Log in or Create an account to join the conversation.

Unable to set PDFAnnot property 3 years 2 months ago #9605

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 571
  • Karma: 6
  • Thank you received: 46
To set annotation line width and color, please refer to following properties in PDFView classs:
static public float ovalWidth = 2;
            static public uint ovalColor = 0xFF0000FF;
            static public float rectWidth = 2;
            static public uint rectColor = 0xFFFF0000;
            static public float inkWidth = 3;
            static public uint inkColor = 0xFFFF0000;
            static public float lineWidth = 2;
            static public uint lineColor = 0xFFFF0000;

Please Log in or Create an account to join the conversation.

Unable to set PDFAnnot property 3 years 2 months ago #9609

  • Pja
  • Pja's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 45
  • Thank you received: 0
I am not using the ink annotation provided by Radaee PDF. I have my own canvas on which i am drawing using inkManager.
I just want to set the StrokeColor and StrokeWidth property of PDFAnnot to the color and width of the ink used on the canvas.
It is not giving me any error while setting the property, but i am unable to set these properties.
what is the solution to this?
I am using it for windows platform.

Please Log in or Create an account to join the conversation.

Unable to set PDFAnnot property 3 years 2 months ago #9618

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 571
  • Karma: 6
  • Thank you received: 46
I think you're using
AddAnnotLine()
.
You should set color during annotation creation.
Are you investigating how to set and re-set color and width after line creation?

May you provide your take of code when creating/altering the annotation?

Please Log in or Create an account to join the conversation.

Last edit: by support.

Unable to set PDFAnnot property 3 years 2 months ago #9620

  • Pja
  • Pja's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 45
  • Thank you received: 0
I am using AddAnnotTextNote to add note and that annotation pop up is a canvas where i am drawing and saving the drawing to my database.
When i save the annotation i want to set the PDFAnnot properties StrokeColor and StrokeWidth to the ink color drawn on the canvas.
But i am unable to set these properties. I dont know the reason behind it...
I want to set the property just like the PopUpContent property is set in your demo project.

Please Log in or Create an account to join the conversation.

Unable to set PDFAnnot property 3 years 2 months ago #9649

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 571
  • Karma: 6
  • Thank you received: 46
Sorry for late reply.
Double check.
You're:
- adding the note,
- setting stroke and color within your requester
- setting the text and trying to set note color

If you're following this path it' wrong. You should do:
- open your own canvas
- setting strict and color
- adding the note

May you provide me your code snippet, please?

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Powered by Kunena Forum