Write arabic characters with PDFBOX [duplicate]
This question already has an answer here: Writing Arabic with PDFBOX with correct characters presentation form without being separated 1 answer Update 1 I'm trying to write some Arabic characters in a pdf document using pdfbox. As a result I get some strange characters. You can find below the code snippet I used for my test. Notice that the same code was used to print Latin characters without any problem. public static void main(String[] args) throws Exception { PDDocument document = new PDDocument(); PDPage page = new PDPage(PDPage.PAGE_SIZE_A4); document.addPage(page); PDPageContentStream