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
In fact, the Documentation on Adobe Embed API explicitly says "For example, you could store the user’s color choice for any annotation tool. In that case, new annotations subsequently receive the updated color". However, the necessary field names aren't given anywhere.
Copy link to clipboard
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
The reason, it is not reflecting in your settings object because the user did not change any annotation's color from the default ones.
Shubhanshu, thank you for your answer. If one could change the thickness of the drawing tool, that would turn it into a text marker, something that users very much like when commenting on actual paper, and that commercial kits often offer. Would it be possible to include that in a future update?
I will use the fields you showed in your answer for changing the color. It would be greatly appreciated if the documentation somewhere listed all fields that can be set.