I want to create a PDF in arabic using PdfBox but don't want to use any external .ttf file. Is there any other way to do this? I have already gone through many stuffs but all are using .ttf files.
Asked
Active
Viewed 611 times
0
-
Welcome to Stackoverflow! Please take some time to read [the help pages](http://stackoverflow.com/help), especially the sections named ["What topics can I ask about here?"](http://stackoverflow.com/help/on-topic) and ["What types of questions should I avoid asking?"](http://stackoverflow.com/help/dont-ask). Also please take the [tour](http://stackoverflow.com/tour) and read about [how to ask good questions](http://stackoverflow.com/help/how-to-ask). Lastly please learn how to create a [Minimal, Complete, and Verifiable Example](http://stackoverflow.com/help/mcve). – Markus Jun 14 '17 at 12:06
1 Answers
0
PdfBox has the following fonts: TIMES_ROMAN,HELVETICA,COURIER,SYMBOL,ZAPF_DINGBATS with their styled counter parts. if you have tried all these fonts with no results, it means that the character encoding used for them does not support the Arabic characters.
Your best bet is to attach a .ttf font that contains those symbols.
Also you might want to take a look at this Write arabic characters with PDFBOX

Elie Nassif
- 464
- 4
- 11