How to directly convert a pdf to an svg into a byte [] instead of transitioning through a file

Product:

Product Version:
java

Please give a brief summary of your issue:
(Think of this as an email subject)
How to directly convert a pdf to an svg into a byte [] instead of transitioning through a file

Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)

Please provide a link to a minimal sample where the issue is reproducible:

Currently there is no such API, since by default the PDF to SVG generation results in multiple different files, which cannot be reliably represented in a single memory buffer.

Why is SVG important to you?
Why exactly is writing to disk an issue for you?

However, when choosing to embed text and images, you can only generate SVG files. Moreover, I need to convert the generated SVG into byte[] and upload it to S3, instead of generating the file locally, then find a way to upload the local file to S3, and finally delete the local file after the upload is successful, which will reduce the efficiency.
So I can achieve what I want to do?Thanks

You would have to read the bytes yourself from disk and delete the file yes.

Since you are networking, which is order of magnitudes slower than disk access, this should not have any noticeable impact on throughput/performance.