We will now extract all the text in the PDF file:
- We'll start by adding a Step action within the Try block and call it Read PDF to logically separate these steps. Within this Step action, extract the text in PDF to a Table variable so that we can loop through the content. To do that, first extract the PDF text to a temporary text file. Add the PDF Extract text action and set the PDF path to the desktop PDF file that we created. Set the Text type to Structured text and set Export data to text file to Temp.txt, as shown here:Â
- Over the next few steps, we will read the data from the temporary text file (Temp.txt) and assign it to a Table variable. This is so that we can loop through the text data and manipulate it:
- Let's add the CSV/TXT Open action. Choose a Session name (such as S1), set the File path to Temp.txt, and select Tab for Delimiter.Â
- Next, add the CSV/TXT Read action...