Hi,
I would like to use the renderPDFForm method from the FormsService to render a PDF. As input I would like to use an XDP stored in the crx repository. This is a very plain use case I think. To my surprise the renderPDFForm method accepts as input parameter only a filesystem path or a url. (see http://helpx.adobe.com/aem-forms/6/javadocs/com/adobe/fd/forms/api/FormsService.html)
To feed an xdp from repository into that method it would be necessary to
a) load the xdp from repository and temporaily store it to the filesystem to be able to use a filesystem path or
b) compose a url like http://localhost:4502/content/dam/forms/testform.xdp to be able to use a url.
Both approaches are not very elegant. a) doubles all forms in an external filesystem and b) causes lots of trouble because of anonymous access and acl restrictions.
Can someone please outline me a best practice?
Btw: the corresponding OutputService.generatePDFOutput() accepts a docmanager document as input xdp. This can easily be created from a content path and works fine.
Any help is appreciated!
Cheers
Alex