Replies: 1 comment
-
Ok, sending just a File works! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Ok, sending just a File works! |
Beta Was this translation helpful? Give feedback.
-
The curl example works correctly with page numbering,
In the debug logging of Gotenberg, I see form fields and form files are filled.
however posting through our backend is troublesome because the footer and thus page numbering are not picked up. In the debug logging also
no custom header nor footer
are displayed.A typical feignClient post in java,
@PostMapping(value = "forms/chromium/convert/url", consumes = MULTIPART_FORM_DATA, headers = "Content-Type: multipart/form-data")
Response getPdf(@RequestPart Report report, @RequestPart(value = "files") MultipartFile file);
report is a simple data transfer object with params like url, waitDelay, marginLeft, I also tried to put the FooterTemplate argument with literal html but all arguments end up in the 'form fields' upon inspecting the debug logs of gotenberg.
Example:
I think the problem lies that the footer.html does not end up in the 'form files' but why, any help is extremely welcome!
Beta Was this translation helpful? Give feedback.
All reactions