Hi @mively
try below steps,
-
Assign →
pdfFiles = Directory.GetFiles("C:\YourFolderPath", "*.pdf")- Value:
Directory.GetFiles("C:\YourFolderPath", "*.pdf")
- Value:
-
Build Data Table (Create structure for extracted data)
- Columns: Example (
"FileName","ExtractedText") - Output:
dataTable
- Columns: Example (
-
For Each (Iterate through PDFs)
- For Each item in:
pdfFiles - Type Argument:
String
Inside For Each:
-
Read PDF Text
- FileName:
item - Output:
pdfText
- FileName:
-
Add Data Row
- DataTable:
dataTable - ArrayRow:
{ Path.GetFileName(item), pdfText }
- DataTable:
- For Each item in:
-
Write Range (Excel Application Scope)
- WorkbookPath:
"C:\Output.xlsx" - DataTable:
dataTable - SheetName:
"Sheet1" - Starting Cell:
"A1" - AddHeaders:
True
- WorkbookPath:
If you found helpful mark as a solution.
Happy Automation @mively