Open qiuhuanhen opened 4 months ago
sorry ,the title may be : text can't display Complete not font
I find it ,
acroFields.setFieldProperty(param.getKey().trim(), "textsize",9f, null);
but the pdf may have many different edit box , some text may short ,so needn't 9f (font size) ; and I wonder if it counld auto make the font of long text smaller (don't change global font size) or change line
when text length is longger, same text can't display , such as my text is "这是一段非常长的文字这是一段非常长的文字这是一段非常长的文字", but pdf may be only show "这是一段非常长的文字这是一段" , I don't find api or code how to slove it , in AcroFields#setFieldProperty , can't find "fontsize" . may I have some other way to slove it ? I hope can display complete ,although the font size may be small.
there is my demo code:
`
// load pdf file ClassPathResource resource = new ClassPathResource("my.pdf"); InputStream inputStream = resource.getInputStream(); BufferedInputStream bufferedInputStream = new BufferedInputStream(inputStream);