java - HTML To PDF Font Resolver -
i using itextfontresolver displaying fonts via ttf files on pdf generated. font applied on html page font changes not reflecting on pdf file after implemented :
renderer.getfontresolver().addfont( realpath + "website/" + "fonts/" + fonttype + "/" + fonttype + ".ttf", basefont.identity_h, basefont.not_embedded); renderer.setdocument(url); renderer.layout(); renderer.createpdf(os);
css code :
.wholedivdata{ font-family : comic sans ms; }
still changes not reflecting on pdf generated.
Comments
Post a Comment