I need to get access to the font style and size of an acroform text field. I have access to the Field
object via pdfclown but can't work out how to access the font. Anyone know how to do this?
相关问题
- Exception in thread “main” org.pdfclown.util.parse
- Build text callout with PDF Clown
- pdf clown- not highlighting specific search keywor
- Empty whitespace conversion in PDFClown
- Extracting vector graphics (lines and points) with
相关文章
- pdf clown- not highlighting specific search keywor
- 得到acroform场的字体和大小(Get font and size of an acroform
- Empty whitespace conversion in PDFClown
- Extracting vector graphics (lines and points) with
- Get font and size of an acroform field
- open pdf from stream using pdfclown in c#
- Using pdfclown few search keywords are not highlig
- Unable find location of ColorSpace objects in PDF
I'm glad to announce you that today I committed to the PDF Clown's repository the fully-functional implementation of the FormFlattener, both on the current branch (0.1.2-Fix, rev 129, 131, 133) and on trunk (rev 130, 132, 134): I suggest you to download directly from that SVN repo to get the latest features & fixes.
Otherwise, in case you stick with the published release (0.1.2.0), here it is the relevant code (again, I recommend the committed version as it's more refined). First of all, we need some adjustment:
1) in XObject.java replace the
wrap
method:2) in FormXObject.java replace the
wrap
method:Then we can define the actual form flattener:
3) add FormFlattener.java to org.pdfclown.tools package:
And this is an example using it:
To keep yourself up-to-date with the activity about the project, you can follow PDF Clown on its site (pdfclown.org) and through its twitter stream (https://twitter.com/pdfclown).