java - Adding text at a position relative to a specific word -


i have pdf document text "approver name ". unique , appears once.

i'm trying put image right side of text "approver name" . able insert image using below. need put on right side of "approve name" text. way position of text , keep image next text.

  image img = image.getinstance(resource);         img.setabsoluteposition(             (pagesize.postcard.getwidth() - img.getscaledwidth()) / 2,             (pagesize.postcard.getheight() - img.getscaledheight()) / 2);         document.add(img); 

what way position of text , keep image next text.

why not ask stackoverflow these 2 questions?


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -