Skip to content

Unable to fill PDF with pdfcpu command line windows #622

@sddevsd

Description

@sddevsd

Hi @hhrutter,

My issue is based on the latest commit : https://github.com/pdfcpu/pdfcpu/releases/download/v0.4.1/pdfcpu_0.4.1_Windows_x86_64.zip

Os version :
Édition Windows 11 Professionnel
Version 22H2
Installé le ‎11/‎11/‎2022
Build du système d’exploitation 22621.1702
Expérience Windows Feature Experience Pack 1000.22641.1000.0

I used a cerfa pdf, you can download it here : https://devsd.info/Arret_de_Travail_vierge.pdf
I would like to fill the form with the json then I export the JSON :
pdfcpu.exe form export Arret_de_Travail_vierge.pdf outfile.json
I add the values in the outfile.json everywhere.
Then I use the command to fill the form :
pdfcpu.exe form fill Arret_de_Travail_vierge.pdf outfile.json out.pdf
The following error is displayed :
writing out.pdf...
pdfcpu: textfield missing "DA"

out.pdf have a size of 0Kb then it's not working.

I don't have a form textfield named DA in the PDF file, I don't know what is this DA textfield.

Regards,

Sébastien.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions