I am trying to do some text mining of a pdf by searching for certain keywords.
This is my code:
library(pdftools)
library(tidyverse)
library(pdfsearch)
UC_text <- pdf_text("https://wilmar-iframe.todayir.com/attachment/20190411162436345449392_en.pdf")
result <- keyword_search(UC_text,
keyword = c('SUBSTANTIAL SHAREHOLDERS'),
path = TRUE, surround_lines = 1)
However, I got the error message of a filename too long. How can I get over this issue?