我们能用reportlab创建交互式PDF表单吗?
我们可以使用reportlab来创建互动的PDF表单吗?也就是说,能不能做一个表单,让读者填写数据,然后把这些数据保存到数据库里。
1 个回答
8
reportlab.pdfbase.pdfform.py 这个文件暗示你可以这样做,但听起来这个功能还不够成熟。
Support for Acrobat Forms in ReportLab documents
This module is somewhat experimental at this time.
Includes basic support for
textfields,
select fields (drop down lists), and
check buttons.
The public interface consists of functions at the moment.
At some later date these operations may be made into canvas
methods. (comments?)
The ...Absolute(...) functions position the fields with respect
to the absolute canvas coordinate space -- that is, they do not
respect any coordinate transforms in effect for the canvas.