Op 14/09/2012 16:32, krisniru schreef: > I need help on accessing the fonts that are available in the printer's memory > but not in the windows/fonts. I am using Itext to create a pdf formatted > page and want to send embedded font information, size and layout but the > font has to be installed in the pc to do that because the while initializing > the BaseFont.CreateFont(), I need to give the absolute path of the file. Is > there a way to use arbitary font and send the font name using Itext. I'm not sure if I understand the question. Let's start by saying that your assumption that you need an absolute path of a font file is wrong (I have no idea why you would say that).
If you want to create a PDF file with an embedded font, you don't necessarily need a path to the font, but you DO need the bytes of a font program. Do you have access to an InputStream or to the bytes of the font? If not: why would you expect to be able to embed a font? How would iText be able to embed something that isn't there? ------------------------------------------------------------------------------ Got visibility? Most devs has no idea what their production app looks like. Find out how fast your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219671;13503038;y? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php