Hi folks, I'm working on a solution using Alfresco headlessly as an ECM. So i have the core Alfresco services but no share service.
My solution uses PDF renditions to view documents in a custom browser external to Alfresco, so depends on every document having a PDF rendition available. As I understand it (happy for any better steers) the logical way to ensure a PDF rendition is available for each document is a webscript running as a folder rule on my documentLibrary.
The webscript itself seems fairly simple (one line, renditionService.render(document, "{http://www.alfresco.org/model/content/1.0}pdf")). But without share I can't work out how to apply this to my folder. From research I understand that the current REST API cannot query or upload rules, and a deprecated REST API should be use, but I've struggled to find details.
Any pointers appreciated on how to work with rules via REST request, or comments otherwise welcome on if this really is the best way to ensure PDF renditions are available
Thanks!!