Programmatically set thickness of drawing tool
I am using Adobe Embed API and I would like to change the thickness (and also the color) of the output of the drawing tool. Using a SET_USER_SETTINGS_API callback, I received an object
I am using Adobe Embed API and I would like to change the thickness (and also the color) of the output of the drawing tool. Using a SET_USER_SETTINGS_API callback, I received an object
Thanks for using PDF Embed API. Currently, it is not possible to change the thickness of the drawing tool programmatically. But it is possible to store the user's color preferences for each annotation tool. Same are stored with below key in object return/expected by SET_USER_SETTING_API and GET_USER_SETTING_API
"previewAnnotationColorMap": {
"freetext": "#16EC83",
"note": "#16EC83",
"shape": "#16EC83",
"highlight": "#16EC83",
"underline": "#16EC83",
"strikeout": "#16EC83"
}
The reason, it is not reflecting in your settings object because the user did not change any annotation's color from the default ones.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.