I was using this code to extract data from my PDF:
tx <- pdf_text("Name.pdf")
tx2 <- unlist(str_split(tx, "[\\r\\n]+"))
tx3 <- str_split_fixed(str_trim(tx2), "\\s{2,}", 5)
write.csv(tx3, file="Path\\ds1.csv")
But this uses End of line to separate the PDF. I want to separate after every paragraph. Is there any other split function i can use to get the data paragraph wise?