We have a business requirement to generate pdf for different attachments and merge all the attachments in the generated PDF. Is there a way to sort the attachments in the generated PDF.
The user can attach as many documents from his local machine. The requirement is, if user has attached multiple documents, each attachment will have an attachment type, say typeA, typeB etc. Now when the pdf is generated all the typeA attachments should be attached(in the pdf) at the end, meaning after typeB. There can be multiple typeA and typeB attachments. We are generating a pyeform object for this. But I am not aware how can we check if document is typeA or typeB.