Hi - A long time ago I asked about using PoDoFo to fill in a PDF form. http://www.mail-archive.com/[email protected]/msg00639.html Pdftk started giving me even more trouble than before, so I'm revisiting the subject.
Now I looked more carefully at FormTest, that shows how to do a sizable fraction of the work. I'm whacking away on that code now, trying to get FillTextField() to also add the XObject containing the rendering of the value. I think I have made some progress: rField.GetWidgetAnnotation()->GetRect() gets the dimensions I need for creating the XObject. And rField.GetWidgetAnnotation()->SetAppearanceStream() seems to do something constructive. I'm currently hung up on how to start drawing on and setting properties of the XObject (the manual says it should be easy: "You can draw on a XObject like you would draw onto a page"). I don't see even a blank XObject come out yet, but maybe it will after there is something to draw. My specific goal is to produce an XObject that looks something like 9 0 obj << /Type /XObject /Subtype /Form /FormType 1 /Matrix [1 0 0 1 0 0] /Resources <</Font<</Helv 2 0 R>>/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]>> /BBox [0 0 366.9 22.2] /Length 83 >> stream /Tx BMC q 0 0 366.9 22.2 re W n 0 g BT /Helv 10 Tf 2 7.51 Td (John Doe)Tj ET Q EMC endstream in the final PDF, which is linked into the AP property of the corresponding Annot widget. - Larry ------------------------------------------------------------------------------ Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev _______________________________________________ Podofo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/podofo-users
