posts:pdf_forms: link to TextFieldFonts.java example for PDF font tweaks.
authorW. Trevor King <wking@tremily.us>
Thu, 20 Sep 2012 23:04:35 +0000 (19:04 -0400)
committerW. Trevor King <wking@tremily.us>
Thu, 20 Sep 2012 23:04:35 +0000 (19:04 -0400)
posts/PDF_forms.mdwn

index 5d748c692d05460c4031da0b648d2398041ac36d..6e81bbc4b5a93e86c9fbfa4ca6ce925dbe4bfcf8 100644 (file)
@@ -131,10 +131,10 @@ using [pdffonts][].
     CPZITK+HelveticaNeueLTStd-BlkCn      Type 1C           yes yes no    1739  0
     …
 
-If you don't have the right font for your new data, you should
-complain to whoever generated the PDF that you're trying to fill out,
-because I can't figure out how to attach a new font to an
-already-generated PDF for use with your new data.
+If you don't have the right font for your new data, you can add it
+[using current versions of iText][TextFieldFonts.java].  However,
+pdftk uses an older version, so I'm not sure how to translate this
+idea for pdftk.
 
 FDF templates and field names
 -----------------------------
@@ -199,6 +199,7 @@ instead of bothering with PDFs ;).
 [BOM]: http://en.wikipedia.org/wiki/Byte_order_mark
 [utf-8-patch]: https://sourceforge.net/p/itext/patches/101/
 [pdffonts]: http://poppler.freedesktop.org/
+[TextFieldFonts.java]: http://itextpdf.com/examples/iia.php?id=158
 [identify_pdf_fields.js]: https://github.com/codehero/OpenTaxFormFiller/blob/master/script/identify_pdf_fields.js
 [YAML]: http://www.yaml.org/
 [JSON]: http://www.json.org/