Jump to content
JasperReports Library 7.0 is now available ×

PDF Preview in Jasper Studio with cyrillic fonts


vladimirkotulskiy

Recommended Posts

Here is the font settings I used to add new font with cyrillic.

FontSettings1.jpg.b37330ee7141b2be4890882222b3c3a1.jpg

 

FontSettings2.jpg.1dd88fe575d39b66eb121fd3ca8c23e8.jpg

 

FontSettings3.jpg.561c92df73aa6ec3fbfdc733e3be5853.jpg

 

But I got the following error message when I tried to preview this report in studio as PDF

 

java.lang.reflect.InvocationTargetException
    at com.jaspersoft.studio.editor.preview.actions.export.AbstractExportAction$1.run(AbstractExportAction.java:122)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: net.sf.jasperreports.engine.JRRuntimeException: Could not load the following font :
pdfFontName   : Arial
pdfEncoding   : Identity-H
isPdfEmbedded : true

    at net.sf.jasperreports.engine.export.JRPdfExporter.getFont(JRPdfExporter.java:2037)
    at net.sf.jasperreports.engine.export.JRPdfExporter.getChunk(JRPdfExporter.java:1818)
    at net.sf.jasperreports.engine.export.JRPdfExporter.getPhrase(JRPdfExporter.java:1787)
    at net.sf.jasperreports.engine.export.SimplePdfTextRenderer.getPhrase(SimplePdfTextRenderer.java:89)
    at net.sf.jasperreports.engine.export.SimplePdfTextRenderer.render(SimplePdfTextRenderer.java:100)
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportText(JRPdfExporter.java:2158)
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportElements(JRPdfExporter.java:861)
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:821)
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:698)
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:420)
    at com.jaspersoft.studio.editor.preview.actions.export.AbstractExportAction.exportWithProgress(AbstractExportAction.java:219)
    at com.jaspersoft.studio.editor.preview.actions.export.AbstractExportAction$1.run(AbstractExportAction.java:119)
    ... 1 more

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...