java


How to write bangla language in iText pdf in android


I have used bangali Language in itext pdf in java but it not work properly My expected output is :প্রযুক্তি শিল্পের দ্রুত
But actual generated output is :
here is my code
try {
Document document = new Document();
String encoding = "Identity-H";
Font fontNormal = FontFactory.getFont(("c:/windows/fonts/arialuni.ttf"), encoding, BaseFont.EMBEDDED, 8, Font.NORMAL);
PdfWriter pdfWriter = PdfWriter.getInstance(document, new FileOutputStream("D:/lockman/mas.pdf"));
pdfWriter.setPageEvent(new PDFGenerator());
document.open();
document.add(header);
Chunk chunkBengali = new Chunk("প্রযুক্তি শিল্পের দ্রুত " + "\n", fontNormal);
PdfPTable table = new PdfPTable(2);
table.addCell("Locale");
table.addCell("Translated Text");
PdfPCell cellBengali = new PdfPCell(new Phrase(chunkBengali));
table.addCell(new PdfPCell(new Phrase(new Chunk("Bengali", fontNormal))));
table.addCell(cellBengali);
document.add(table);
document.add(footer);
document.close();
} catch (FileNotFoundException ex) {
Logger.getLogger(PDFGenerator.class.getName()).log(Level.SEVERE, null, ex);
} catch (DocumentException ex) {
Logger.getLogger(PDFGenerator.class.getName()).log(Level.SEVERE, null, ex);
}
`

Related Links

Is it possible to use or import Processing classes in android?
In kafka 0.8 API, what is the replicaId value supposed to be when creating an OffsetRequest?
Else Error When using If Else Statements [closed]
Object is not writing to file triggering FileNotFoundException
drawing app changing brush color
How to distinguish issues to project while retrieving all issues from all projects?
Jackson List<E> json serialization
What should be the result of boolean variable value for given regex match?
JBOSS 7.1.1 help changing ejb security-realm
Unable to run app android java.lang.NullPointerException
Is there any way to analyse the pattern passed to String.format(…)
var argument of lists as method argument
How do I create a java.time.LocalDate from a date string using the “d. LLLL YYYY” pattern?
Can't populate jtable with mysql “like” statement
accessing superclass object by subclass reference variable
Android - Install Application programmatically with result

Categories

HOME
ms-access
c#-4.0
mockito
drivers
objectgears
webstorm
kalman-filter
cvs
rsync
yahoo-oauth
leon
wamp
in-app-purchase
directx
add
gorm
gnupg
metatrader4
u-sql
caml
emulator
plunker
custom-wordpress-pages
excel-2007
hammerspoon
angular2-aot
h2db
applozic
log4js-node
gsoap
create-table
language-concepts
x11-forwarding
twitch
hue
splice
squib
avro4s
ibpy
spring-security-kerberos
modelmapper
sencha-touch-2.3
apple-news
skeleton-css-boilerplate
angular-resource
menuitem
flickr-api
smartcontracts
revapi
rails-routing
python-c-api
python-webbrowser
domain-model
tropo
pillow
bind9
visual-c++-2008
paypal-express
gstreamer-0.10
disque
hover-over
captivenetwork
bluegiga
prerequisites
kcachegrind
service-accounts
method-parameters
sailfish-os
unity3d-gui
ami
javafx-webengine
id3v2
wordpress-theme-customize
socketexception
gulp-less
googlemock
android-radiobutton
htmlcleaner
bundles
didselectrowatindexpath
stxxl
fmod
access-rights
seed
comaddin
enterprisedb
drools-planner
typoscript2
isnullorempty
quickdialog
first-responder
frameset
dbproviderfactories
osql
enter
self-extracting
oncheckedchanged
imac
telerik-scheduler
radcombobox
routedevent
asp.net-profiles
vc90
nintendo-ds
ugc
misv

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App