Closed Cdk29 closed 3 years ago
Commenting df_as_tibble(out) :
pdf_fonts<- function(pdf, opw = "", upw = "") {
out <- poppler_pdf_fonts(loadfile(pdf), opw, upw)
#df_as_tibble(out)
}
Solved the issue. And it output a tibble.
Edit : actually df_as_tibble() doest not exist.
pdf_data has nothing to do with pdf_fonts? It works for me. I think you just didn't install it properly maybe. How did you install?
Omg yes I just realized.
That is odd. I just did devtools::install_github() etc.
Later I run devtools::install() after commenting the change. No update in between.
You cannot reinstall a package while it is loaded. When you install from source you must be sure to close all your R sessions, and then install in a clean empty r session.
Well I did.
The section was clean when I run devtools::install_github(). In between I restarted the session. Not sure why the first install did not worked.
Never mind, I should not have made debug while being tired, I was updating my own tool to match the new main of pdftools when this happened for some reason. I guess it is a non issue. I will investigate if this occur again. Maybe something due to the compilation of the Cpp code that was already done on this computer that devtools::install_github() did not redo.
Sorry for the non issue and the useless notification.
Running :
Gave the expected output. But :
pdf_data("Abrams, M T et al 2010.pdf", font_info = TRUE)
Output the following :