Given a doc/pdf/poster, i would like to replace a template with the input values. This should honour the font, size, background of the current document. How do you achieve this programatically. Any libraries which supports this ?