![]() tHeader("Content-Disposition", "inline filename=" + fileName) tHeader("Cache-Control", "no-cache,no-store,max-age=0") tCharacterEncoding(StandardCharsets.UTF_8.name()) Rectangle pageSize = new Rectangle(PageSize.A4) PdfWriter writer = PdfWriter.getInstance(doc, baos) īaseFont unicode = BaseFont.createFont("/fonts/NotoSansMyanmar-Regular.ttf", BaseFont.IDENTITY_H, BaseFont.EMBEDDED) įont myanmarUniCodeFont = new Font(unicode, 11, Font.NORMAL, BaseColor.BLACK) Java program that I used to product above pdf String fileName = "sample.pdf" īyteArrayOutputStream baos = new ByteArrayOutputStream() My test string is similar with "The quick brown fox jump over the lazy dog" in English.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |