Extracting the first currency value from PDF files

Hi All,

Need some help with the following code , i have a number of pdf files , and the first page of those files gives a currency value $xxx,xxx,xxx . How to extract this value from a number of PDF files and put it in a data frame . I am able to do it for a single file
with the code where opinions is the text data and 1 is the first currency value

#code for single file 
#where text_collapsed_data is pdf data after using pdf_text function for reading
d=str_nth_currency(text_collapsed_data, 1)
df = subset(d, select = c(amount) )
df

But i want to this to a number of files and get the first $xxx,xxx,xxx in those files as output by a
Need help with the code

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.