コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

Page Exporter API

Avatar

Level 2

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.

 

Thanks

Ankita A

1 受け入れられたソリューション

Avatar

正解者
Employee Advisor

Hi,

 

what do you expect from the PageExporter API? Should it create a zip containing all referenced/embedded files? 

元の投稿で解決策を見る

3 返信

Avatar

正解者
Employee Advisor

Hi,

 

what do you expect from the PageExporter API? Should it create a zip containing all referenced/embedded files? 

Avatar

Level 2
Yes, it should create a zip with all the reference file and should get stored at the specifies location.

Avatar

Employee Advisor
Then you are need features which are not provided by the PageExporter, and you need to implement it on your own. You can take the PageExporter to render the HTML, and then use jsoup to parse it and extract all external references. Finally create a zip file out of all these files.