I need to export page as zip file programatically and i used Page Exporter interface and its export(page, resourceResolver, targetPath) method, but, its not happening.
I found the zip file under /var/contentsync node, but that has only html in it, no clientlibs, no assets.
I tried to delete the nodes under /var/contentsync, but of no use.
what do you expect from the PageExporter API? Should it create a zip containing all referenced/embedded files?