Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Extract attachment from a form in workspace to a location

Avatar

Former Community Member

Hello,

Would it be possible to extract the attachment from the form that user attached in the workspace ES to a specific location on the LC server so it can be view at a later time? I am still using LC ES 8.2.1 with SP3.

Please advise on how it can be done if it is possible.

Thanks,

Han

2 Replies

Avatar

Level 10

I think an open source API named 'iText' can be used to extract PDF attachments through server side coding.

Using this API, extract all the attachments and save them in a List. You might have to do this in Script activity or as a custom DSC.

Then save the List items to file location using FileUtility service (write operation)

Nith

Avatar

Former Community Member

Hi Nith,

I seem to confuse while reading the API thing. If you know there is another simplier way to do it, please provide some examples.

Thanks in advance,

Han