keeping the Hierarchy info in generated PDFs

Post Reply
pcarvalho
Member
Posts: 24
Joined: Tue Dec 16, 2014 12:08 pm

keeping the Hierarchy info in generated PDFs

Post by pcarvalho »

I want to build a flow that receives an email and extract all the attachments (PDF, .docx, .xlsx,...) storing the Hierarchy info to assemble it upfront.
The problem is that in between, i convert the word files to PDF.
When i try to assemble it it doesn't work.
How can i store the Hierarchy info to those PDFs generated from word?
Can anyone help me?

Thanks in advance.
Paulo
jan_suhr
Advanced member
Posts: 591
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

Re: keeping the Hierarchy info in generated PDFs

Post by jan_suhr »

Export the dataset as XML and then when the file comes back do a XML pickup in to the PDF. It do requires the Metadata module.
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
pcarvalho
Member
Posts: 24
Joined: Tue Dec 16, 2014 12:08 pm

Re: keeping the Hierarchy info in generated PDFs

Post by pcarvalho »

I don't have the Metadata module.
Is there any other way?
User avatar
Terkelsen
Advanced member
Posts: 297
Joined: Thu Sep 08, 2011 5:08 pm
Contact:

Re: keeping the Hierarchy info in generated PDFs

Post by Terkelsen »

Jan Suhrs advice would be the obvious choice but if you don't have the metadata module you might be able to use the hierarchy info to add a specific prefix to the file names using Rename. You could then assemble based on that prefix and later use rename to remove the prefix again.
Padawan
Advanced member
Posts: 358
Joined: Mon Jun 12, 2017 8:48 pm
Location: Belgium
Contact:

Re: keeping the Hierarchy info in generated PDFs

Post by Padawan »

Can you try this?

1 Mail Receive with "Collect Attachments" set to "Yes".
2 Ungroup Job
3 Send docx files to word to convert to PDF, leave the other files alone
4 Send the created PDF and the other files to an Assemble Job element where the scheme is "Ungrouped Job".
5 The output will be a folder with all the original attachments, except that the word files will be converted to PDF. The output folder should have all the metadata which is added by the Mail Send.

I think this should work unless I am missing something about your usecase.

The ungroup job will remember all information necessary to assemble the files again. In background it will create unique ID's, remember the amount of files to assemble, ...
Post Reply