Skip to content

xmpdf

0.3.1Package record

Edit 'XMP' Metadata and 'PDF' Bookmarks and Documentation Info

1packages dependsuggested by 1
5.3Kdownloads / year
64.6%test coverage
13/13flavors OK

Overview

About

Edit 'XMP' metadata https://en.wikipedia.org/wiki/Extensible_Metadata_Platform in a variety of media file formats as well as edit bookmarks (aka outline aka table of contents) and documentation info entries in 'pdf' files. Can detect and use a variety of command-line tools to perform these operations such as 'exiftool' https://exiftool.sourceforge.net/, 'ghostscript' https://www.ghostscript.com/, and/or 'pdftk' https://gitlab.com/pdftk-java/pdftk.

Changes in 0.3.1

New features

------------

  • New get_bookmarks_augmented() which augments get_bookmarks_pdftk()'s support for bookmark page numbers with get_bookmarks_pdftools()'s new support for whether bookmarks should start open or closed (#62).
  • docinfo() objects now support arbitrary (non-standard) info dictionary entries (#7). Read/write support among the various backends is as follows:
  • get_docinfo_pdftk()/set_docinfo_pdftk() support reading and writing them.
  • get_docinfo_exiftool()/set_docinfo_exiftool() support reading and writing them.
  • get_docinfo_pdftools() supports reading them.
  • set_docinfo_gs() supports writing them.

Bug fixes and minor improvements

Show all changes in 0.3.1Hide the rest of the changes in 0.3.1

--------------------------------

  • Fixes set_bookmarks() bug where tempfile wasn't being deleted if input == output (@djvill, #63).
  • get_bookmarks_pdftools() now reports positive/negative count (as well as open) using pdftools::pdf_toc()'s new is_open list element (#62). This requires pdftools (>= 3.8.0).
  • get_bookmarks() now prefers the new get_bookmarks_augmented() when supported.
  • Calls to the pdftk command-line tool to read bookmark/documentation info metadata now time out after 60s by default (configurable via the xmpdf_pdftk_timeout option) rather than being able to hang indefinitely on a pathological pdf outline.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.1 min · r-devel-linux-x86_64-debian-clang
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • NOTE12 OK, 1 NOTE2026-06-08
  • WARNING12 OK, 1 WARNING2026-06-07
Show 1 earlier changeHide 1 earlier change
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.3.1
READMEYes · 1,327 wordsVignettesYes · 2 · dynamicNEWSYes · 33% structured · mentions 0.3.1Citation fileNoWebsiteYes
Help pages
15includes a package overview page
Examples that run
100%13 run in a plain check
Exported functions with examples
100%
Documented parameters
91%
Return-value docs
85%
Help pages citing references
0%

Downloads

5.3K
CRAN downloads in the past year
Rank #7,822 · ~15/day · ~444/mo
Daily download trend is not available in this view yet.
41930 days
1.1K90 days
5.3K1 year
Compare downloads with other packages →
Also on110 r2u8 autocran

Repository

5Stars
2Forks
16Open issues
0Open PRs
5Releases
136Commits
2Commit identities
136 commits · Last activity 2026-10-15 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
2
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-04-24 · 42026-07-07 · 5
PracticesBeta

13 development-tooling and community-health practices detected across 8 families in the upstream repository

Checks run against github.com/trevorld/r-xmpdf on 2026-10-11.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (2)
Funding

Funding links: GitHub Sponsors

The repository owner accepts GitHub Sponsors

Docs source (2)
README.Rmdpkgdown
Coverage (1)
Coverage reporting
Show all practicesHide 4 practices
Reproducibility and dev environment (1)
data-raw/
CRAN release process (1)
cran-comments.md
Automation and maintenance (1)
pre-commit
Lint, format, editor (3)
Lint workflowAirEditorConfig
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-08-13
    Named in .Rbuildignore: .claude
    Named in .gitignore: .claude
    Commits: at least 2 crediting it in the message
Models named in its commits
  • Claude Sonnet 52 commits · Aug 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
13 external dependencies (excludes base and recommended)

Installing xmpdf adds 15 packages (11 with compiled code, 17 MB of source tarballs). Heaviest: stringi 11 MB, jsonlite 1.0 MB, vctrs 1.0 MB.

Depends (1)
R >= 2.10
Imports (10)
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
1direct
0indirect
Imports 1
Suggested by 1
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

Datasets

People & History

People (2)
Author, Maintainer · added in 0.3.1
Data contributor
Uses some data from the "SPDX License List" <https://github.com/spdx/license-list-XML>

Maintainer since 0.1.1 (2023)

Listed in earlier versions (2)
no longer listed · 0.1.1 to 0.2.1
W. Trevor King Some pdf code adapted from 'pdf-merge.py'
no longer listed · 0.1.1 to 0.1.4
Releases (5)

Pick two releases to compare their code metrics.

  • 0.3.1Latest
    record
    2026-08-25 · current release · diff ↗ ·
    added 1 export
    get_bookmarks_augmented
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.2.1
    record
    2024-03-29 · diff ↗ ·
    added 1 export
    get_bookmarks_pdftools
  • 0.1.4
    record
    2023-10-02 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.1.3
    record
    2023-02-26 · diff ↗
  • 0.1.1
    record
    2023-02-22
  • R
    R 4.2.0 released · 2022-04-22

Package metadata

First published
2023-02-22
Total releases
5 / 3 yrs
License
MIT + file LICENSE OSI · relicensed from GPL (>= 3) in 0.2.1
Minimum R
≥ 2.10
Bundled data
14 KB / 1 file
Download size
151 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("xmpdf")
Davis, T. L., & Linux Foundation. (2026). xmpdf: Edit 'XMP' Metadata and 'PDF' Bookmarks and Documentation Info (Version 0.3.1) [Computer software]. https://doi.org/10.32614/CRAN.package.xmpdf

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for xmpdf version 0.3.1 [Data set]. HJJB, LLC. Data release v2026-10-19. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-19, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy