Multilangual PDF Creation(in all indian languages) (Java in General [PDF]

Currently we are using iText API to create PDF documents in case of English. But we have to implement i18n in our applic

4 downloads 7 Views 439KB Size

Recommend Stories


PdF Java 8 in Action
The best time to plant a tree was 20 years ago. The second best time is now. Chinese Proverb

[PDF] Languages and Machines
You have survived, EVERY SINGLE bad day so far. Anonymous

[PDF] Building Java Programs
Ego says, "Once everything falls into place, I'll feel peace." Spirit says "Find your peace, and then

pdf - Programmierkurs Java
Stop acting so small. You are the universe in ecstatic motion. Rumi

pdf - Programmierkurs Java
Keep your face always toward the sunshine - and shadows will fall behind you. Walt Whitman

[PDF] Building Java Programs
Learn to light a candle in the darkest moments of someone’s life. Be the light that helps others see; i

pdf - Programmierkurs Java
You're not going to master the rest of your life in one day. Just relax. Master the day. Than just keep

Java Review PDF
Learn to light a candle in the darkest moments of someone’s life. Be the light that helps others see; i

Java Network Programming Pdf
Suffering is a gift. In it is hidden mercy. Rumi

Download PDF >> Java
When you talk, you are only repeating what you already know. But if you listen, you may learn something

Idea Transcript


FAQs

Forum:

programming forums

Search

Recent Topics

Flagged Topics

Hot Topics

Best Topics

Register / Login

Java in General

Multilangual PDF Creation(in all indian languages)

Java

Satish Kumar Kara

Mobile

Greenhorn





We have a module to generate PDF documents, which has to be processed by another module for some security features. Currently we are using iText API to create PDF documents in case of English. But we have to implement i18n in our application ( for all Indian languages). So we need to generate the PDF document in other Indian languages like Hindi, Guajarati, Kannada etc. Following are some criteria to be considered.

Posts: 8

Certification



posted 8 years ago

Databases

1. The document may have more than one language texts with English texts. 2. The document may contain all the numeric of all languages and special characters. 3. We are storing data in database as UNICODE(UTF-8) and using the JDBC API to retrieve.

Caching

Kindly suggest us some solution with iText API. Let us know if some other PDF API is supporting all Indian languages.

Books

Ulf Dittmer

Engineering

Rancher





iText and PDFs can handle Unicode. As long as the machine on which the document is viewed has fonts available that cover all characters (like Microsoft Arial Unicode), there should not be any problems. If no such font is available, you can use iText to embed the font in the document. Note that such fonts are big (MS Arial Unicode is about 20 MB in size, IIRC), and that not all font licenses permit distribution of the font.

Posts: 42975

Micro Controllers



posted 8 years ago

76 OS

This may help: http://www.alanwood.net/unicode/fonts.html

Languages

Campbell Ritchie

posted 8 years ago

Sheriff

Paradigms













Not a "beginning" question. Moving thread.

Posts: 57834

IDEs

178 Build Tools

Satish Kumar Kara Greenhorn

Frameworks

posted 8 years ago

In the Machine on which the document is viewed has fonts which supports the particular language and

Posts: 8

Application Servers

We are embedding the font which supports Hindi (Indian language) in the document using iText as

Open Source

1

BaseFont.createFont("gargi.ttf",BaseFont.IDENTITY_H, BaseFont.EMBEDDED);

?

This Site

but still pdf displays different text than expected.We got all the hindi characters, but not in proper format…

Careers

For ex: Other

It displays text as shown in the link provided(hinadi) below, instead of all forums

(hindi)

http://doc-08-8odocs.googleusercontent.com/docs/secure/rb76hs62dof3nkvdingba5cedl9ltjag/uo3tc5pdc11g50ml7n4mbc8t56rq19j9/1270101600000/00409798775290637475/*/0ByYDS0mupIdzZjhjZTdlZTUtZjZmYy00OGJiLTllYjgtYTJjM

this forum made possible by our volunteer staff, including ...

Note : The text (hindi) is stored in oracle DB in UTF-8 encoding. We are able retrieve the same in the browser but not in pdf generated using iText. When the iText is embedding, it is getting changed.

Marshals: Tim Cooke Liutauras Vilda Bear Bibeault Devaka Cooray Jeanne Boyarsky

kindly suggest how we can achieve the required.

Ulf Dittmer



posted 8 years ago





Sheriffs:

Rancher

Paul Clapham Campbell Ritchie Henry Wong

Posts: 42975

It looks like, basically, it gets it right, except for the first characters being swapped. That might be the Hindi equivalent of using ligatures vs. not using ligatures. A possible workaround is mentioned here.

76

I see that you also asked this elsewhere, and even got a reply; next time you do that, BeForthrightWhenCrossPostingToOtherSites.

Saloon Keepers:

Susan Acier Greenhorn

Tim Moores Ron McLeod salvin francis Stephan van Hulst Vijitha Kumara



posted 3 years ago



Since this thread is a few years old, I just wanted to see if anyone has additional information on how to solve the problem. I know there is no official itext solution, but wondering if anyone has come up with a workaround that's effective. Thanks!

Posts: 1

Bartenders:

Don't get me started about those stupid light bulbs .

Tim Holloway Carey Brown Frits Walraven







Boost this thread! Similar Threads

Export to pdf



Best way to create reports with FOP



printing report in PDF



JSF and PDF



iText and streaming More...

current ranch time (not your local time) is Apr 22, 2018 21:34:40 contact us | advertise | mobile view | Powered by JForum | copyright © 1998-2018 paul wheaton

Smile Life

When life gives you a hundred reasons to cry, show life that you have a thousand reasons to smile

Get in touch

© Copyright 2015 - 2024 PDFFOX.COM - All rights reserved.