Facing error while converting pdf to image

Hi,
I want to convert pdf to image and want to insert signature in pdf file then facing error
using spire.pdf Means want to attach signature image into pdf

image
MicrosoftTeams-image

using vb code for that

doc.LoadFromFile(iFilePath)
NumberofPages=doc.Pages.Count
page = doc.Pages(0)
ImagePage=PdfImage.FromFile(ImagePath)
page.Canvas.DrawString(insertText, font, brush, 15, 25)
pageImage=doc.Pages(NumberofPages-1)
'pageImage.Canvas.DrawImage(ImagePage,100,650,150,50)
result = pageImage.FindText(“Confirmed as of the date first written above:”).Finds
For Each find In result
rec = find.Bounds
'image.Canvas.DrawImage(pdfimage, rec.X, rec.Y+25, 55, 55)
pageImage.Canvas.DrawImage(ImagePage,rec.X,rec.Y+35,150,50)

Next

pageImage2=doc.Pages(NumberofPages-2)
result2 = pageImage2.FindText(“Confirmed as of the date first written above:”).Finds
For Each find In result2
rec = find.Bounds
'image.Canvas.DrawImage(pdfimage, rec.X, rec.Y+25, 55, 55)
pageImage2.Canvas.DrawImage(ImagePage,rec.X,rec.Y+35,150,50)

Next

doc.SaveToFile(oFilePath)

can anyone please help if any other solution available to manage, its very urgent

Hello @Neeraj_Pokhriyal

As per the error the tool has a limitation of converting if there are more than 3 pages.

Can you try with the Uipath activity

can you please help how to insert image into pdf which has more than 10 pages