Jump to content
We've recently updated our Privacy Statement, available here ×

Marathi text display internally but when export to Pdf then not Display properly


ravikasabe03gmail.com

Recommended Posts

  • Replies 11
  • Created
  • Last Reply

Top Posters In This Topic

thanks for giving replay,,Exactly problem is

My marathi text on report is UNICODE.Internally run properly but when export that time marathi text not display.if i used font extension like (Arial Unicode MS,SHREE LIPI,etc) then Exported pdf file display marathi text but meaning is diffrent.

and if i used eternally other tool like DoPDF Converter then pdf Show right Text. below i add jrxml source code also

<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.0.3.final using JasperReports Library version 6.0.3  -->
<!-- 2016-09-06T14:33:45 -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Blank_A4" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="a7252b9b-b7ba-46a4-a796-1a93d6093d59">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
<queryString>
<![CDATA[]]>
</queryString>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="79" splitType="Stretch"/>
</title>
<pageHeader>
<band height="35" splitType="Stretch"/>
</pageHeader>
<columnHeader>
<band height="110" splitType="Stretch">
<staticText>
<reportElement x="20" y="10" width="510" height="100" uuid="793f8b25-606b-4305-911f-499aec1f1e05">
<property name="local_mesure_unitheight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement>
<font fontName="Arial Unicode MS" size="24" isPdfEmbedded="false"/>
</textElement>
<text><![CDATA[गंगासदन सोसायटी समोर आकाश जनरल स्टोअर्स]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="125" splitType="Stretch"/>
</detail>
<columnFooter>
<band height="45" splitType="Stretch"/>
</columnFooter>
<pageFooter>
<band height="54" splitType="Stretch"/>
</pageFooter>
<summary>
<band height="42" splitType="Stretch"/>
</summary>
</jasperReport>
 
Link to comment
Share on other sites

Hello,

Check Sample below - is working fine

Changes in advanced properties=> PDF =>

<textElement markup="none">
<font fontName="Arial Unicode MS" size="24" pdfFontName="C:/WINDOWS/fonts/ARIALUNI.TTF" pdfEncoding="Identity-H" isPdfEmbedded="true"/>
</textElement>
<text><![CDATA[गंगासदन सोसायटी समोर आकाश जनरल स्टोअर्स]]></text>
 
 

<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.3.0.final using JasperReports Library version 6.0.2  -->
<!-- 2016-09-06T15:44:57 -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Blank_A4" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="a7252b9b-b7ba-46a4-a796-1a93d6093d59">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
<queryString>
<![CDATA[]]>
</queryString>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="79" splitType="Stretch"/>
</title>
<pageHeader>
<band height="35" splitType="Stretch"/>
</pageHeader>
<columnHeader>
<band height="302" splitType="Stretch">
<staticText>
<reportElement x="20" y="10" width="510" height="60" uuid="793f8b25-606b-4305-911f-499aec1f1e05">
<property name="local_mesure_unitheight" value="pixel"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
</reportElement>
<textElement markup="none">
<font fontName="Arial Unicode MS" size="24" pdfFontName="C:/WINDOWS/fonts/ARIALUNI.TTF" pdfEncoding="Identity-H" isPdfEmbedded="true"/>
</textElement>
<text><![CDATA[गंगासदन सोसायटी समोर आकाश जनरल स्टोअर्स]]></text>
</staticText>
<textField>
<reportElement x="20" y="90" width="540" height="60" forecolor="#002AFC" uuid="58e99388-7e5b-4f5e-b724-c5e56861fdd4"/>
<textElement markup="html">
<font fontName="Arial Unicode MS" size="24" pdfFontName="C:/WINDOWS/fonts/ARIALUNI.TTF" pdfEncoding="Identity-H" isPdfEmbedded="true"/>
</textElement>
<textFieldExpression><![CDATA["<b>गंगासदन सोसायटी समोर आकाश जनरल स्टोअर्स</b>"]]></textFieldExpression>
</textField>
<textField>
<reportElement x="20" y="150" width="100" height="30" uuid="be1ab8d6-254f-4978-b800-ef24642bd0f3"/>
<textElement>
<font fontName="Arial Unicode MS" size="20" pdfFontName="C:/WINDOWS/fonts/ARIALUNI.TTF" pdfEncoding="Identity-V" isPdfEmbedded="true"/>
</textElement>
<textFieldExpression><![CDATA["अजय"]]></textFieldExpression>
</textField>
</band>
</columnHeader>
<detail>
<band height="125" splitType="Stretch"/>
</detail>
<columnFooter>
<band height="45" splitType="Stretch"/>
</columnFooter>
<pageFooter>
<band height="54" splitType="Stretch"/>
</pageFooter>
<summary>
<band height="42" splitType="Stretch"/>
</summary>
</jasperReport>
 

 

Nahi zal tar sang..

Link to comment
Share on other sites

I tried as u told but not working yet.I think system specification(application) or encoding miss match thats why pdf dont show proper text or any setting is needed to set in jasper studio,,So can u give screen shots of       jasper studio/window/jasperstudio/pdfExport and jasper studio/window/jasperstudio/properties

My system specification is- Windows 7,JasperSoft Studio 6.0.3.final ,Adodbe reader 11,etc...

Link to comment
Share on other sites

  • 2 weeks later...

I'm generating a jasper report in pdf with oriya language from my jsp page, it is working fine when i export it from jasper studio IDE but when i inoke .jasper file from my jsp application the oriya fonts are not displaying neither it throwing any error.

I sucessfully installed fonts from Font Extension and included font.jar in JVM library.

Please suggest any possible steps im skipping during this pdf generation, as per from my knowledge the fonts are embeedded with in pdf when internally exported but its not embedded when exportinf from JRPdfExporter.

Below is screenshot for IDE export and JSP export./sites/default/files/images/jspExport_Oriya(1).jpg/sites/default/files/images/JasperExport_Oriya.jpg

 

 

Link to comment
Share on other sites

  • 4 months later...

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...