Is there any activity in UI path that converts a PDF into an XML?

How do i convert a pdf to xml using uipath studio?

Hi Mallika

Check this post

Thanks
Ashwin S

Hi @Mallika, You can use XML services.

image

I dont find any xml services.
note: I am using community version

Hi @Mallika

Check this package UiPath. WebAPI.Activities. exists ?

Thanks
Ashwin S

Yeah i got this. Thanks.
Now how do i use it to convert it PDF to xml?
Any sample example?

Hi @Mallika

Now use read pdf text pdf with OCR and use Deserialize Xml

Thanks
Ashwin S

PDF_To_XML.zip (195.1 KB)

Try this attachment. This is working just fine. Open the pdf in Adobe Acrobat DC and just run the code

@Mallika, you can use PDF Focus .Net assembly for pdf to XML conversion. There are many other libraries available.

Cheers!!

Hi @Mallika
First check whether you are getting the data from pdf correctly or not using activities like read pdf using ocr , and also try @Ishmeet_Bindra solution , it may or may not work . Result can vary from pdf to pdf.