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

Method with #Cacheable is not working as expected in Spring
Explanation of #Configuration #AutoConfigureAfter with Kotlin
Testing console output
How can I test an abstract class using Espresso?
Strange null pointer exception when using ConcurentHashMap (int java.lang.Object.hashCode()) [duplicate]
DeepLearning4J: org.nd4j.linalg.factory.Nd4jBackend$NoAvailableBackendException when running in jupyter
Spring web Application Context
Automatically add and remove items from Tablist
New EditText when button pressed
Why do I get: java.sql.SQLException: ORA-00911: invalid character [duplicate]
SWT: How to left-pad a FillLayout
How to avoid this java.lang.NullPointerException? [duplicate]
How can I edit JPanel Graphics in one class?
Encrypt and Decrypt data with Meteor and Java
I am trying to print to a file message.txt after it decodes a file secret.txt
Set pixels are changed after drawing an image

Categories

HOME
pdf
atom-editor
cookies
appx
sd-card
jsp-tags
jsrender
fsm
cross-browser
mvvmcross
indesign
synchronization
facebook-php-sdk
vifm
ssl-client-authentication
node-pdfkit
export-to-csv
windows-azure-storage
gz
jsprit
netflix
django-simple-history
worldwind
libtiff
serilog
aurigma
nhibernate-envers
openedx
firefox-webextensions
emulator
xlsxwriter
realex-payments-api
format-specifiers
crosstab
su
semantic-analysis
dbclient
gitignore
tasklet
noraui
android-nestedscrollview
mmenu
mpmediaquery
io-redirection
streamsets
code-search-engine
hilbert-curve
android-tabhost
grid.mvc
dynamic-reports
jvm-languages
estimote
bootstrap-dialog
vao
heightmap
apple-news
xml-documentation
filepicker
revapi
domain-model
dropbox-php
slickedit
kbuild
directory-structure
dtexec
qtwebview
pdfclown
gcsfuse
specrun
home-directory
phishing
asp.net-4.5
sigabrt
qcustomplot
system.management
uid
android-listview
remobjects
key-management
skos
bigbluebutton
clicktag
xc16
google-style-guide
responsive-slides
tld
aapt
htmlcleaner
concurrent-collections
html5-notifications
kyotocabinet
tinn-r
postgresql-performance
heartbeat
coda-slider
premature-optimization
sector
putchar
ugc
paul-graham

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