Convert pdf to image

convert pdf page to image

1 Like

@Sweety_Girl
Hello Kindly use export pdf as image activity

2 Likes

Yes I am using this same activity, but sometimes it throws “A generic error occurred in GDI+.” Error

Hello @Sweety_Girl

check if your path for saving image is correct…Make sure its in this format Filepath\Imagename.png (or other extension of image)

2 Likes

I am using bmp format

Hello @Sweety_Girl
then its format should be Filepath\ImageName.bmp

1 Like

Hi
I’m this error is because of invalid folder and FilePath
Kindly mention like this in OutpitFileName property
“Yourfolderpath\”+”Yourfilename”+”.png”
Or
“Yourfolderpath\”+”Yourfilename”+”.bmp”

As The file name used in the OutputFileName property must end in a valid image extension. The supported extensions are .png , .jpeg , .tiff , .bmp , and .gif .

Cheers @Sweety_Girl

1 Like

Every time while processing, the same file is replaced with other… So I tried to delete after processing the image, but when I delete it throws an error ‘File is being used by another’. I am confused which application should I kill to avoid this error

1 Like

It must be pdf file
So use ProcessName as “AcroRD32” in Kill Process

Cheers @Sweety_Girl

1 Like

No, That issue is with the image

Because I get that ‘file is used by another process’ error while deleting the image

Hello @Sweety_Girl

Try giving it a little delay of 3000 Miliseconds and check whether its working or not

1 Like

You will get the above mentioned error : A generic error occurred in GDI+ . This problem occurs because until the bitmap object is disposed, it creates a lock on the underlying image file. … dispose the object of old bitmap, process new bitmap object and save the new bitmap object with original file name

2 Likes

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