Skip to content
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

Error message: PDF Error: Unexpected MC Type: 7 #396

Open
ciaract opened this issue May 9, 2024 · 5 comments
Open

Error message: PDF Error: Unexpected MC Type: 7 #396

ciaract opened this issue May 9, 2024 · 5 comments

Comments

@ciaract
Copy link

ciaract commented May 9, 2024

Hey,
i am using the function "image_read_pdf()" for a list of pdf-files. Unfortunately I am getting the following error-message in some cases:
[1] 5 [1] "Read file: /Volumes/Elements/XXXXX.pdf" PDF error (2077870): Unexpected MC Type: 7 PDF error (2143467): Unexpected MC Type: 7 PDF error (2150013): Unexpected MC Type: 7 PDF error (2163240): Unexpected MC Type: 7 PDF error (2168714): Unexpected MC Type: 7 PDF error (2174832): Unexpected MC Type: 7 PDF error (2181652): Unexpected MC Type: 7 PDF error (2187615): Unexpected MC Type: 7

I couldn`t find a documentation about this message anywhere. Can you give me some further information?

Thanks for your amazing work, I am a big fan of magick! :)

@ciaract
Copy link
Author

ciaract commented May 9, 2024

The code from the console is not transferred in the correct formatting. Here is another screenshot
Bildschirmfoto 2024-05-09 um 13 47 12

@jeroen
Copy link
Member

jeroen commented May 10, 2024

Can you share an example document and your sessionInfo() so we can try to test it?
Also sometimes the pdf errors are ignorable and the output still works...

@ciaract
Copy link
Author

ciaract commented May 14, 2024

Sorry for answering so late. Unfortunately I am not allowed to share the documents. Bu I can share my session info with you:

`> sessionInfo()
R version 4.4.0 (2024-04-24)
Platform: aarch64-apple-darwin20
Running under: macOS Sonoma 14.4.1

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.12.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/de_DE.UTF-8/en_US.UTF-8

time zone: Europe/Berlin
tzcode source: internal

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] dplyr_1.1.4 magick_2.8.3 tesseract_5.2.1 needs_0.0.3

loaded via a namespace (and not attached):
[1] digest_0.6.35 R6_2.5.1 utf8_1.2.4 qpdf_1.3.3 tidyselect_1.2.1 magrittr_2.0.3 rappdirs_0.3.3 glue_1.7.0
[9] tibble_3.2.1 pkgconfig_2.0.3 generics_0.1.3 lifecycle_1.0.4 cli_3.6.2 askpass_1.2.0 fansi_1.0.6 vctrs_0.6.5
[17] withr_3.0.0 compiler_4.4.0 tools_4.4.0 pillar_1.9.0 Rcpp_1.0.12 pdftools_3.4.0 rlang_1.1.3 `

@jeroen
Copy link
Member

jeroen commented May 14, 2024

I can't really help, there seems to be something in the pdf that pdftools does not like. But are you sure the warnings are not ignorable? Sometimes magick prints some errors to the screen but those don't affect the result.

@ciaract
Copy link
Author

ciaract commented May 14, 2024

I will check! However: Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants