How to fetch docx and xlsx blobs as pdf from REST api or Java client
I am uploading docx, xlsx(excel files) and pdfs to nuxeo and able to see them in Nuxeo UI correctly.
Using the java client's method streamBlobByPath I am able to fetch the blob of document in my custom code.
For the docx or xlsx files, when I use Nuxeo UI I am able to see the documents embedded in a pdf previewer.
How can I get the docx and xlsx as pdf blobs so it can be rendered by my custom pdf previewer?
I do not want the pdf previewer embedded in the blob. Just the content as pdf formatted blob.
Maybe a simpler solution exists…?
Notice that https://doc.nuxeo.com/nxdoc/conversion/ gives some hints about another way to perform this via REST and a synchronous conversion in 1 URL .