Is there any way to set a custom css style that would be used during PDF generation? The app is a springboot app, provides an HTTP endpoint. POSTing data to this endpoint supposed to convert adoc template filled with data received in the request to PDF that would be sent in the HTTP response. The conversation works in memory, using String and ByteArrayOutputStream.
I tried to set the custom css file in the adoc template, like:
And I also tried to set the stylesheet "programatically", like:
(as the stylesDir, I tried several settings - even the absolute path to the custom theme.css file, but it didn't work)
None of these worked - any ideas about the possible solution?
If this for a rest service, you could send the style as an optional parameter so that clients can tune the end result.
Btw, just in case, my advice is to use POST multipart. You can send the different input files as different parts and even send other parameters (e.g. use a part to send a JSON sin attributes). A nice extra is that you can build a plain HTML form to invoke you service without any extra code.