This video tutorial shows, how to split PDF files into multiple files with UiPath. A simple UiPath PDF use case is solved, where you not only learn to split PDFs with UiPath, but also gets introduced to file automation and Regex/Matches in UiPath.
You could also watch:
🔵 UiPath RPA Beginners Tutorial -
https://youtu.be/3ZKzTHdpsTs
🔵 UiPath Advanced Use Cases - https://www.youtube.com/playlist?list=PLXXz88_TPiHo7TmTn15sy7eQs7kAAXji-
0:00 Presenting the use case
We have a PDF with multiple invoices on seperate pages, that we want to split into seperate PDFs.
0:42 Install PDF package
The UiPath.PDF.Activities package needs to be installed.
1:09 How to Read a PDF
Using the 'Read PDF Text' activity, where we specify the file name, we read the PDF into a string.
3:32 How to count the number of pages in a PDF with UiPath
Using the Matches activity and RegEx we search the PDF, to be splitted, for a unique keyword that is present in all pages (e.g. "Page 1"), we count the numbers of pages in the PDF.
8:06 While Loop to split the PDF
A while loop, with an index counter, will help us split the PDF in an easy way. The activity Extract PDF Page Range can extract a specified range of a PDF.
14:05 How to split multiple PDFs into multiple PDFs
Drag in a For Each, find the PDF files in your folder with simple VB.NET code, iterate through each file and extract them using the method above.
Connect with me:
🔔 Subscribe - http://www.youtube.com/user/klogeanders?sub_confirmation=1
💼 LinkedIn - https://www.linkedin.com/in/andersjensens/
👥 Facebook - https://www.facebook.com/andersjensenorg
💌 Email Newsletter - https://andersjensen.org/email-newsletter/
#uipath #rpa #automation