java generate pdf file from string with arabic character and html Content
问题 I want to generate pdf file from string with arabic character and html Content . I used itextpdf-5.5.6.jar and xmlworker-5.5.6.jar . I try with this code : import java.io.ByteArrayInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import com.itextpdf.text.Document; import com.itextpdf.text.DocumentException; import com.itextpdf.text.pdf.PdfWriter; import com.itextpdf