-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing font #107
Comments
Hmm I'm not sure. I don't think the buttons contain any text, but actually a small image. If we extract the text it does not appear either: cat(pdftools::pdf_text('Alberta-tf-operator-error-CAV-2-FORMB.pdf')[2]) But I am also not sure why the image does not appear in the output. |
Oh it actually seems to work with a later version of the poppler library. Maybe I should update it again. |
Which operating system do you use? |
I'm using both Mac and Linux. Here's a profile from the Mac. Thanks for looking into this!
|
I have released a new version install.packages("pdftools", repos = "https://ropensci.r-universe.dev") For Linux it is a bit more tricky because we use the libpoppler that is included with your linux distribution. I think the problem should be fixed at least in ubuntu 22.04 that will be released in april, because it includes poppler 22.02: https://packages.ubuntu.com/jammy/libpoppler-dev I'm not sure about the other distros, it really depends what OS you use. |
I have the same issue, but in this case, I cannot update to pdftools version 3.1.0.
Any workaround? This is my platform:
Thank you very much for your help. Kenneth |
@krcabrer it works for me on ubuntu 20.04. Can you please show the full output of your installation log? You probably have multiple, conflicting versions of poppler installed on your machine. |
Dear @jeroen: Following is the complete log of the procedure. I also uninstall and purge poppler libs and then I install them again. Only one version. And the issue continued...
Thank you for your help. Kenneth |
Dear @jeroen, I found the solution. I use this ppa repository for poppler.
Then I update and now the package compilation works fine. It seems that the problem is about the poppler default version that was installed on the system. Greetings from Medellín, Colombia, South America. Kenneth |
Thanks for releasing pdftools 3.1.0, which seems likely to fix the issue I posted on Mac and Windows. However, I'd like to use this on Linux. Waiting until April and then upgrading to the newer version of Linux will be quite difficult for me. I'm several linux distro's behind 22. If that's the way to go, I'll try when that happens. If there is anyway to not make pdftools depend on Linux version for this fix, that'd be great...but ultimately this isn't a dealbreaker for me. Thanks! |
We could create a ppa with a newer version of poppler. What disto are you using? |
Updated. Hi Jeroen. Thanks for looking into this. I'm using this distro:
I imagine that a ppa isn't really a longterm solution. If I wait until Apr. should the fix you suggested earlier work? |
Hello again. I updated pdftools on Mac and the PDF mentioned in the first post of this thread now renders as expected on my Mac. However, it doesn't render as expected on shinyapps.io. Any idea how to make it work there? @jeroen mentioned above that updating poppler may be tricky for ubuntu (which is what I think is used by shinyapps.io). |
I have seen a lot of the following type of errors on various PDFs:
For example, this Alberta-tf-operator-error-CAV-2-FORMB.pdf file has text on the buttons on the second page (as Viewed in Mac's Preview or Adobe's Acrobat Pro DC). However, converting it to png, it loses that text and displays the missing font message in the R console.
This may be a PDF file that doesn't adhere to the PDF spec, but because many PDFs do not, I'd like this to work in some fashion.
Is there any way to get pdftools to render the button text in this example file? Maybe that would point to how this can be generalized to other PDFs with similar issues.
The text was updated successfully, but these errors were encountered: