The fill endpoint takes multipart/form-data, not a JSON body. In Python that's the PDF in files= and the field map in data= as json.dumps(fields), a JSON string, not a dict. Get that shape right and the rest is one requests.post. Working snippet →
pdfops.devFill a PDF in Python | PDFopsDeterministic AcroForm fill in one HTTP call, no native dependencies.
0 reposts1 like