I’m using the flying-saucer library to generate a PDF in a servlet that then returns the PDF through the response output stream to a JSP.
I need some of the content inside of the PDF to have a certain font (“MICR Encoding” in particular). I have tested this font locally in a test web page and successfully displayed content with the font applied.
However, the PDF that’s getting generated isn’t recognizing the font. I suspect that I need to place the font file in a place where WebLogic Server will be able to access it so that when the PDF is being created in the servlet, WebLogic Server will have access to the font to embed it into the PDF.
Do any of you have any idea where font files need to be placed/implemented in WebLogic Server such that they will be recognized when content is built on the server?
Figured it out…just had to use
@font-faceand then was able to reference the font file that I uploaded onto the server.My CSS file looks like this (I’m running WLS locally)…