prashanth.talkad Posted October 21, 2008 Share Posted October 21, 2008 Hi, The problem I'm having:: I'm getting a raw stream from a webservice call to JasperServer and trying to export the same to PDF using JasperExportManager.exportFileToPdf(JasperPrint, path)....The issue is that when I use ARIALUNI.TTF as PDF font name and PDFEmbedded is true and PDFEncoding is Identity-H, the export to PDF fails from my java applicationbecause it cannot find the path of the font ARIALUNI.TTF. I was looking into the jasperreports-3.0.1 api and found the JRProperties class which defines the properties files which load the PDF fonts, PDF_FONT_FILES_PREFIX and PDF_FONT_DIRS_PREFIX. I'm unable to locate the /** * Prefix of properties that specify font files for the PDF exporter. */ public static final String PDF_FONT_FILES_PREFIX = PROPERTY_PREFIX + "export.pdf.font."; // this is net.sf.jasperreports.export.pdf.font /** * Prefix of properties that specify font directories for the PDF exporter. */ public static final String PDF_FONT_DIRS_PREFIX = PROPERTY_PREFIX + "export.pdf.fontdir."; // this is net.sf.jasperreports.export.pdf.fontdir My question is ........ where should I add the fonts int the API(I'm using jasperserver.jar) in my applications library). Any help is appreciated. cheers,p Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now