pauln / tcpdi_parser

Parser for use with TCPDI, based on TCPDF_PARSER
GNU Lesser General Public License v3.0
27 stars 47 forks source link

Parse form fields... #1

Closed Mike-Benoit closed 10 years ago

Mike-Benoit commented 10 years ago

I couldn't find any mention of this in the code, but does this currently support the ability to parse form fields and get their x,y positions or even better allow the ability fill them in?

pauln commented 10 years ago

tcpdi_parser is intended for use with TCPDI to import existing PDFs for use as templates in TCPDF. I haven't tried parsing any PDFs with forms in, but I don't see why it wouldn't work - though that's not to say that you could then fill the forms in programmatically.

TCPDF does seem to have some functions for creating fields, but I don't see anything for manipulating existing ones (see the TCPDF docs for more info). I don't know much about PDF forms, but perhaps you could use TCPDF to inject some JavaScript that fills in the fields? You may have more luck asking in the TCPDF help forum, as I only know as much about working with PDFs as I've picked up working on TCPDI / tcpdi_parser.