- Posts: 45
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Windows 8.1, 10, WindowsPhone, Windows UWP
Unable to set PDFAnnot property
10 years 6 months ago #9573
by Pja
Unable to set PDFAnnot property was created by Pja
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?
But i am unable to set that property.
Can you give me a possible solution for the same?
10 years 6 months ago #9605
by support
Replied by support on topic Unable to set PDFAnnot property
To set annotation line width and color, please refer to following properties in PDFView classs:
Code:
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;
10 years 6 months ago #9609
by Pja
Replied by Pja on topic Unable to set PDFAnnot property
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.
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.
10 years 6 months ago - 10 years 6 months ago #9618
by support
Replied by support on topic Unable to set PDFAnnot property
I think you're using
.
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?
Code:
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?
Last edit: 10 years 6 months ago by support.
10 years 6 months ago #9620
by Pja
Replied by Pja on topic Unable to set PDFAnnot property
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.
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.
10 years 6 months ago #9649
by support
Replied by support on topic Unable to set PDFAnnot property
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?
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?
Time to create page: 0.430 seconds