Convert to all documents to PDF files

Hi Team,

I am exploring electroneek , trying to convert documents to PDF . Kindly anyone guide me . how will achieve this.

1 Like

@Bhaskar You can use combine to PDF activity to convert files to PDF.

You can refer below document for detailed explanation.
Combine to PDF – ElectroNeek Help Center

2 Likes

I was used same , but execution time taking more time.

@Bhaskar Thats strange! May be you are testing with empty file. in that case have some date in file and try to execute again.

sure, Thanks. will do

@Bhaskar pls choose the best answer of Kudlappa, if his suggestions helped you.

Hi there!

I have a similar situation regarding the Combine to PDF activity. I understand how it’s used, but what if we need to make it more dynamic?

I have a master process that performs the following actions:

  • Gets current user’s username and saves to variable.
  • Sends a prompt to the user to select the URL they need documents from.
  • Downloads a zip containing the documents from the requested URL.
  • Closes browser.
  • Gets the file path for the .zip folder that is downloaded.
  • Unzips the folder.
  • Deletes the original .zip folder.
  • Combines to PDF (pending completion).
  • Converts all images to text inside master PDF (pending completion).

I had a process that got the file path and name of the newly-created folder without the .zip attached to it to use as a variable inside the Combine to PDF, but that’s not working. I am getting a message stating an actual file path is required, which isn’t going to work for our situation because the process will be used by multiple users with different usernames, and it will download files with varying names.

My first question is how can I make the file path and file name parts of the Combine to PDF activity accept different usernames and filenames? I was thinking about using the Command Prompt with the command ren to rename the folder, but that won’t work if we do not know the name of the downloaded folder until after it’s downloaded.

My second question is will the Combine to PDF activity combine PDF’s in the main file path’s folder and any subfolders that exist under it?

Thank you in advance!

@BrandonTerry Let me know if my understanding is correct.
You are able to get the path of the folder where the file is downloaded. Am I correct?
If yes, then we can use dynamic paths in the Combine to PDF activity like below.

Let’s say, File got downloaded in the below folder
C:\Users\MUTTU\Downloads\bank-statements-new

  1. Now save this path in a variable.
    var path_var = “C:\Users\MUTTU\Downloads\bank-statements-new”
  2. Use this variable in “Path to Folder” of Combine to PDF activity
    path_var
  3. Use the same path with any new file name mentioned in ‘PDF file Path’
    path_var+“\newf.pdf”

The documents will be combined and save as newf.pdf

→ The combine PDF activity combines the PDFs in the location you mention in ‘PDF file path’ and save it with the name you mention in ‘PDF file path’(refer attached screenshot for better understanding)

1 Like

Hi, @Kudlappa_Gouder

Thanks for your quick response! I apologize if the request was unclear.

I was able to figure it out. I used logic to capture the file path and name of the zip file, then use additional logic to slice the .zip off the complete path and name. I used the variable in the Combine to PDF activity. Thank you again!

Screenshots from my process, if it helps anyone else…

2 Likes

Hi @Bhaskar, You can also visit the recently announced ElectroNeek Recipes section for more information on how you can Convert multiple files to PDF. This helped me a lot.

1 Like