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

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -