Thanks for the response, 

Below is what I am trying to do. 

We have some secured "TROY" fonts which cannot be installed on the PC , it
will be installed only on the printer. 

For example if we send "abc" as text  while creating the pdf and specify
that "abc" is the "TROY" font and send it to the printer , it will be able
to decode "abc" to signature and print it. But if we view the pdf it will
still  say "abc" because the "TROY" font is not installed in the PC. That's
the solution we are trying to achieve. 

Now the problem we are facing is when we create the PDF, we are not able to
specify the text "abc" as TROY font because it's not installed in the PC. 

BaseFont secureFont = BaseFont.createFont("secure Font",BaseFont.SYMBOL,
BaseFont.NOT_EMBEDDED,false); 
pdfContentByte.setFontAndSize(micrFont, 14); 
pdfContentByte.setTextMatrix(100, 100) ; 
pdfContentByte.showText("abc"); 

In the above code "createFont" method we are not able to specify just the
secured font name and proceed. It throws error. It requires the ttf file or
other file needs to be present in the pc or in the classpath. Please provide
us some solution whether we can achieve this with out registering the
secured font in the PC. We are not worried if the actual pdf contains the
text "abc". 

Thanks.  



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Problem-accessing-fonts-available-in-printer-s-memory-through-java-tp4656336p4656351.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
How fast is your code?
3 out of 4 devs don\\\'t know how their code performs in production.
Find out how slow your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219672;13503038;z?
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

Reply via email to