pdfrw icon indicating copy to clipboard operation
pdfrw copied to clipboard

problem of rendering a template file

Open ppLorins opened this issue 6 years ago • 1 comments

Hi all: I'm seeking for a solution of how to populate a pdf template file and finally found one which using pdfrw .That example is quite simple and straightforward by using adobe acrobat as template editing tool and python dict as a render way.

I'm using python3.6 and Adobe Acrobat Pro DC 2018.011.20038 on windows7 platform

This is my gist file and the sample tempalte file can be downloaded here

But it has its own problems with the result pdf file:

  • the content of each cell rendered cannot be seen until they got manually clicked .(serious)
  • the checkbox element in pdf cannot be rendered. (middle)
  • the cell is not freezed , and anyone who opened the file can edit it freely.(low)

I've tried to investigate , but it seems requires plenty of knowledge about canvas and pdf format which is boring and time consuming . So , is there any guys who has experienecs of doing things like this ? Appreciate a lot if you don't mind to share .

ppLorins avatar May 31 '18 06:05 ppLorins

It's old post but if you're interested see my comment on #84. I've used you're sampe template pdf file to populate first text field. It can fix the first issue.

PeterSlezak avatar Dec 07 '18 17:12 PeterSlezak