Use @convert adapter in java client

How can I add adapters in my request to Nuxeo servers using Nuxeo java client (v3.2.0)

I want to fetch the blob converted as pdf. From the REST-API I can make calls like:

GET http://localhost:8080/nuxeo/api/v1/path/{docPath}/@blob/file:content/@convert?converter=any2pdf

How to add the convert adapter in the Java Client?

Currently I can fetch the blob using client like: nuxeoClient.repository().streamBlobByPath(path, "file:content");

0 votes

1 answers

1112 views

ANSWER



Hello,

I think you can use the three Automation operations listed here: https://doc.nuxeo.com/nxdoc/conversion/#automation

Just use the operation method in Java Client as described here: https://doc.nuxeo.com/client-java/3.2/automation/

I hope it helps.

Regards.

0 votes