You are viewing limited content. For full access, please sign in.

Question

Question

Add image annotation from Base64

asked on June 26, 2018

Hi,

I need to add a custom button to add image annotation from Base64 instead of uploading image files.

The case is :

User needs to add electronic bar-code image based on document field values. So I thought to use the "image" annotation button , but it requires image upload.

Any suggestions ?

 

0 0

Replies

replied on June 26, 2018

Have you thought about making a workflow that takes the Field Value(s) and creates/applies the barcode to the image?

Have you seen the solution found in create dynamic barcode stamp

0 0
replied on June 26, 2018 Show version history

 

Thank you Bert for your excellent solution.

 

But , user needs to put the bar-code manually on a suitable positions because documents not in same layout. 

0 0
replied on June 26, 2018

I haven't yet dug into Web Access customizations, but from some cursory reading it appears that you might be able to add some custom bits that would do this. Start with a custom action. You wouldn't even need to allow them to upload an image, just give them a field to paste the appropriate text into, send it to a back-end service that generates the image and drops it onto the document with the SDK, and then refresh the document viewer. They could then manually drag the image to where they need it.

This is just me rambling, maybe it can't be done this way. *shrug*

1 0
replied on June 26, 2018

That's what I was thinking.  I don't see a way for the user to indicate the location for it, so the best case is that you end up with the annotation at a fixed location that the user has to move anyway.  If the user has to manually move the annotation with either solution, creating it with Workflow is probably easier and a better user experience.

1 0
replied on June 26, 2018

Can you inject a custom dialog into Web Access, and then call a separate Web API to do the work?

0 0
replied on June 27, 2018

Thank you all.

0 0
replied on June 28, 2018

@████████You can add custom toolbar buttons but we don't have a way for you to add custom dialogs.  And having a toolbar button that worked like one of our annotations would be tricky, since it is essentially adding a new "click mode" if you want the user to indicate a location, and to work right that would require more modifications to the current behavior than we allow custom actions to make.

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.