Hi everyone im trying to merge pdf files but im getting this error :Merge Pdf Failed due to Unexpected token ‘e’ in PDF stream. The file may be corrupted. If you think this is a bug in PDFsharp, please send us your PDF file

Merge Pdf Failed due to Unexpected token ‘e’ in PDF stream. The file may be corrupted. If you think this is a bug in PDFsharp, please send us your PDF file.

@sathish_moorthy

Which activity are you usign?

Is it occuring for any specific pdf?

Did you try with other pdf as well?

Is it possible to provide a sample

Cheers

an_signed_original_MISFS24UP049_supplier.pdf (187.2 KB)
MISFS24UP049.pdf (147.7 KB)
Important_Billing_details_-_Dec’2023-NTT-_NCR_revised.pdf|attachment (313.5 KB)

These three pdf files im merging into one pdf file

Hi @sathish_moorthy

Try this

Directory.GetFiles("C:\Users\Documents\UiPath\BlankProcess19\New folder","*.pdf")

image

Output:

Final.pdf (598.9 KB)

Cheers!!