I'm using jasper 0.6.0 version and itext 1.0.1. I'm using MS Mincho jar file and itextasian and itextasiancmaps jar file. it is printing japanese characetrs as ??? in PDF
Later i upgraded the Jasper version to 6.0.0 and itext version to 5.50 still it is printing as ???
i've attached the Java Source code and jrxml. is there a problem with my jrxml or do i need some other jars to support these characters on PDF
public class PdfFromXmlFile { public static void main(String[] args) throws JRException, IOException { // Compile jrxml file. JasperReport jasperReport = JasperCompileManager.compileReport("C:\Users\gbhagavath\Downloads\StyledTextReport/StyledTextReport2.jrxml"); // Parameters for report Map<String, Object> parameters = new HashMap<String, Object>(); // DataSource // This is simple example, no database. // then using empty datasource. JRDataSource dataSource = new JREmptyDataSource(); JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport,parameters, dataSource); // Make sure the output directory exists. File outDir = new File("C:/jasperoutput"); outDir.mkdirs(); // Export to PDF. JasperExportManager.exportReportToPdfFile(jasperPrint,"C:/jasperoutput/StyledTextReport.pdf"); System.out.println("Done!"); }}[/code]
PDF is not supporting Japanese Characters and printing ???
in Products
Posted
Hi All,
I'm using jasper 0.6.0 version and itext 1.0.1. I'm using MS Mincho jar file and itextasian and itextasiancmaps jar file. it is printing japanese characetrs as ??? in PDF
Later i upgraded the Jasper version to 6.0.0 and itext version to 5.50 still it is printing as ???
i've attached the Java Source code and jrxml. is there a problem with my jrxml or do i need some other jars to support these characters on PDF