How to Merge multiple images to one pdf file

Fine
In the merge pdf file activity the input will be type array of file path
As we have mentioned her with a generic variable it is showing error
So mention the lstOfImageFiles.ToArray as input
Cheers @prashantP

Thanks @Palaniyappan for quick response.

I have also tried the same one but getting below error

type variable of is List should i change it into array of string ??

1 Like

Oh I thought lstOfImageFiles variable is the list file path
Sorry for that
Mention the list of file path variable as input to merge pdf activity

Cheers @prashantP

@Palaniyappan
@sarathi125
@lakshman
could please mention full details about variable type "List of file path " or any snap for reference. because I am not getting it what variable type should I select for “List of file path”

1 Like

Guys,
@Palaniyappan
@sarathi125
@Sreelatha278

Please help.!!

1 Like

yah the type will be for a LIST variable of type STRING
System.Collections.Generic.List(Of string)

Cheers @prashantP

@prashantP,

Create List of String Variable as like the following, In the variables under types click on Browse for more types.

Untitled

1 Like

@prashantP,

use Join PDF files from the latest PDF activities,

1 Like

Thank you so much guys,:-:+1::+1::+1:

@sarathi125
@Palaniyappan

It’s done…!

1 Like

Found two ways to merge images into pdf.

  1. using “word application scope

  2. using “Image to PDF converter” convert each images into 1 pdf file and then use join pdf to merge into one pdf file.

2 Likes

@Palaniyappan
@sarathi125

One more question I have

after getting file size (using New FileInfo(FilePath).Length)
less than 5mb
then
upload
Else
split file

kindly suggest best for else section

@prashantP,

Try with “Extract PDF Page Range” activity

1 Like

we can directly send the file with the mail activity and we can place that activity here in the ELSE part, as per the process
@prashantP

1 Like

@sarathi125

but “Extract PDF Page Range” activity will split into pages
but how could robot know size ? which pages need to be split ?

@Palaniyappan
my concept is I have to upload this file on particular portal but there is limitation size i.e 5mb.
so, suppose file is greater than 5mb robot should split that file

@prashantP,

Get total count of the pages then split equally, this may resolve the issue.

@prashantP,
To get total number of pages from the PDF file,
Untitled

@sarathi125

should i create new topic and tag you guys again ?

@prashantP,

My two previous replies not useful?

@sarathi125

I did not checked. just thought before we go ahead let’s ask you. :-:slightly_smiling_face:

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