PDFBox calculates the font size to be 14.6036 where Acrobat calculates 8.931. The placement of the text start is also different.
Need to check. BR Maruan Am Montag, dem 11.12.2023 um 21:01 +0100 schrieb Tilman Hausherr: > He has posted the file: > https://drive.google.com/file/d/1BaU6iR4yIQAT-oQxGKFnsiIkLjm54GCE/view?usp=sharing > > I can confirm the effect. Adobe shows a smaller font when clicking on > it. It also happens when I set the field to a shorter text > > PDDocument doc = Loader.loadPDF(new > File("..../unflattened.pdf")); > PDTextField field = (PDTextField) > doc.getDocumentCatalog().getAcroForm().getField("homePsdMunicipality" > ); > field.setValue("pgqqqqqqqqqqqq"); > doc.save(new File("...../unflattenednew.pdf")); > > > > Tilman > > On 28.11.2023 21:38, [email protected] wrote: > > we'd need the sample PDF and compare with what Acrobat does. But at > > certain sizes a clipping might occur as the scaling ends at a > > certain > > size. That's also what Acrobat does. > > > > All that stuff is based on looking at Acrobat generated samples and > > trying to reproduce that in PDFBox. There is no detailed > > documentation > > about the layout model as this is not part of the PDF spec. > > > > BR > > Maruan > > > > Am Dienstag, dem 28.11.2023 um 21:03 +0100 schrieb Tilman Hausherr: > > > https://stackoverflow.com/questions/77558220/apache-pdfbox-gray-faint-underscores-2-0-26 > > > > > > I'm wondering if this is a bug or a feature / misunderstanding, > > > that > > > an > > > autosize acroform text field may cut off glyphs vertically in > > > some > > > cases? > > > > > > Tilman > > > > > > > > > > > > > > > ----------------------------------------------------------------- > > > ---- > > > To unsubscribe, e-mail: [email protected] > > > For additional commands, e-mail: [email protected] > > > > > > > ------------------------------------------------------------------- > > -- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
