Combining PDFs

This is my first bot design, and my first post, so I’m sorry if I’m not communicating this properly.

So I am trying to combine several pdfs into a single document. To do this, I’m using the Join PDF Files activity.

This works, but only in the barest of terms.

The PDFs need to be combined in order by name, but it’s combining them in reverse order (putting pdf 10 first and pdf 1 last).

Additionally, it doesn’t create bookmarks for each PDF. Instead, it just makes one big document.

Is there an alternate activity I can use that behaves more like the “combine files in Acrobat” function adobe has?

Thank you!

1 Like

@Stephen_Shaw

Welcome to the community

The way files are passed is the same way the files are merged…you can reorder before passing the file list to order them as you need

as far as bookmarks is considered what is that you are looking at? ideally this might not create any bookmarks and there is no straight forward activity that might help with bookmarks

cheers

Hi @Stephen_Shaw

Try the below way. This will take the PDFs present in the folder in an ordered way.

pdfFiles = Directory.GetFiles("YourPdfDirectory").OrderBy(Function(pdf) pdf).ToArray()

Join PDF files acitivity 

Note: pdfles is of DataType Array(System.String)

As far as creating bookmarks there isn’t a direct activity that might help to create bookmarks. The above query will help you join the PDFs in an ordered way. Replace YourPdfDirectory with your folder path which contains the pdf files.

image
Properties of Join PDF Files

Regards

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.