{"id":14065987,"url":"https://github.com/sckott/pdfimager","last_synced_at":"2025-06-20T19:39:53.982Z","repository":{"id":140973629,"uuid":"289116740","full_name":"sckott/pdfimager","owner":"sckott","description":"Extract images from pdfs using the pdfimages tool from poppler https://poppler.freedesktop.org/","archived":false,"fork":false,"pushed_at":"2024-09-12T13:27:26.000Z","size":2691,"stargazers_count":31,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-20T11:57:05.752Z","etag":null,"topics":["pdf","pdfimages","poppler","r","rstats"],"latest_commit_sha":null,"homepage":"https://sckott.github.io/pdfimager/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sckott.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-08-20T21:43:39.000Z","updated_at":"2025-03-12T05:46:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"d70281a5-bb3f-44ef-b221-92832aa437c1","html_url":"https://github.com/sckott/pdfimager","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/sckott/pdfimager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fpdfimager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fpdfimager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fpdfimager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fpdfimager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sckott","download_url":"https://codeload.github.com/sckott/pdfimager/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fpdfimager/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261006306,"owners_count":23096022,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pdf","pdfimages","poppler","r","rstats"],"created_at":"2024-08-13T07:04:53.209Z","updated_at":"2025-06-20T19:39:48.970Z","avatar_url":"https://github.com/sckott.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"pdfimager\n=========\n\n```{r echo=FALSE}\nknitr::opts_chunk$set(\n  warning = FALSE,\n  message = FALSE,\n  collapse = TRUE,\n  comment = \"#\u003e\"\n)\n```\n\n[![R-check](https://github.com/sckott/pdfimager/workflows/R-check/badge.svg)](https://github.com/sckott/pdfimager/actions/)\n\n\n`pdfimager` - Extract images from pdfs\n\nDocs: \u003chttps://sckott.github.io/pdfimager/\u003e\n\nThis packages uses `sys` R package to \"shell out\" to pdfimages. Apparently pdfimages is not in poppler cpp, so is not in pdftools R pkg\n\n## Install pdfimages\n\npdfimages is installed when you install poppler\n\nInstallation instructions can be found at \u003chttps://poppler.freedesktop.org/\u003e\n\n## Install pdfimager\n\n```{r eval=FALSE}\n# install.packages(\"pak\")\npak::pak(\"sckott/pdfimager\")\n```\n\n```{r}\nlibrary(\"pdfimager\")\n```\n\n## Set the path\n\nSome users may need to manually set the path to `pdfimages`. \n\nYou can do so with a function in this package like\n\n```r\npdimg_set_path()\n``` \n\nor  set the path for pdfimages before starting R with an env var like:\n\n```\nPDFIMAGER_PATH=C:/some/path/to/poppler/24/bin/pdfimages.exe R\n```\n \nOr set within R like:\n\n```r\nSys.setenv(PDFIMAGER_PATH=\"C:/some/path/to/poppler/24/bin/pdfimages.exe\")\n```\n\n## help info\n\n```{r}\npdimg_help()\n```\n\n## pdf image metadata\n\n```{r}\nx \u003c- system.file(\"examples/BachmanEtal2020.pdf\", package=\"pdfimager\")\npdimg_meta(x)\n```\n\n## pdf images\n\n```{r}\nx \u003c- system.file(\"examples/BachmanEtal2020.pdf\", package=\"pdfimager\")\npdimg_images(x)\n```\n\n## filter images\n\ndoes a variety of thing to filter images by their metadata, some are configureable\n\n```{r}\nx1 \u003c- system.file(\"examples/Tierney2017JOSS.pdf\", package=\"pdfimager\")\nx2 \u003c- system.file(\"examples/vanGemert2018.pdf\", package=\"pdfimager\")\nres \u003c- pdimg_images(c(x1, x2))\nvapply(res, NROW, 1)\nout \u003c- pdimg_filter(res)\nvapply(out, NROW, 1)\n```\n\n## Meta\n\n* Please [report any issues or bugs](https://github.com/sckott/pdfimager/issues)\n* License: MIT\n* Please note that the pdfimager project is released with a [Contributor Code of Conduct](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsckott%2Fpdfimager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsckott%2Fpdfimager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsckott%2Fpdfimager/lists"}