mkl-public / testarea-pdfbox2

Test area for public PDFBox v2 issues on stackoverflow etc
Apache License 2.0
83 stars 44 forks source link

How to set multiple language font to text from? #11

Closed peter-up closed 3 years ago

peter-up commented 3 years ago

I see mkl answered many PDF related questions and you are a PDF expert. And we run into issues when using pdfbox. 1、How to set multiple language(dynamic fonts) fonts to form field? I saw your implement works well on "showtext" https://github.com/mkl-public/testarea-pdfbox2/blob/master/src/test/java/mkl/testarea/pdfbox2/content/AddTextWithDynamicFonts.java 2、``` public static PDType0Font load(org.apache.pdfbox.pdmodel.PDDocument doc, java.io.InputStream input, boolean embedSubset) embedSubset – True if the font will be subset before embedding. Set this to false when creating a font for AcroForm.


How to embed subset of a font when creating a font for AcroForm. Because CJK font could be very large.
mkl-public commented 3 years ago

Hello!

Please use github issues on this project only for specific problems of the code samples here. For more general questions please head to stack overflow and ask there. Don't forget to tag your question accordingly! I follow in particular the tags pdf and pdfbox.

When asking there, please explain your problems in more detail; for example, I don't understand your item 1. Item 2 indeed is an issue one currently still needs a workaround to implement but it's a known issue to PDFBox developers.

peter-up commented 3 years ago

Thanks, I will use stack overflow as your suggestion.