Skip to content

feat: proper PDF metadata extraction with rsc.io/pdf - #63

Merged
dubyte merged 1 commit into
mainfrom
feat/proper-pdf-metadata
Jul 11, 2026
Merged

feat: proper PDF metadata extraction with rsc.io/pdf#63
dubyte merged 1 commit into
mainfrom
feat/proper-pdf-metadata

Conversation

@dubyte

@dubyte dubyte commented Jul 11, 2026

Copy link
Copy Markdown
Owner

Summary

Replaces the old regex-based PDF metadata scanner with proper rsc.io/pdf parsing and extends extraction to the full metadata pipeline.

Changes

Field Old (regex) New (rsc.io/pdf)
Title string search for /Title( info.Key("Title").Text()
Author string search for /Author( info.Key("Author").Text()
Description info.Key("Subject").Text()
Subjects info.Key("Keywords").Text() split by ,
  • PDF metadata now flows through extractMetadata() with the same return signature as EPUB
  • PDF entries in OPDS feeds get <summary> and <category> tags when metadata is present
  • Net diff: -12 lines, +3 metadata fields

What's not included

  • XMP metadata stream parsing — complex XML/RDF, add when Info dict parsing falls short for a real user
  • PDF cover extraction — requires rendering, not worth the dependency

…Keywords

Replace bufio-based regex PDF metadata scanner with proper rsc.io/pdf
parser. Extends PDF metadata extraction to include Subject (→ description)
and Keywords (→ subjects), matching the full EPUB metadata pipeline.

Net -12 lines, +3 metadata fields.
@dubyte
dubyte merged commit 232d140 into main Jul 11, 2026
1 check passed
dubyte added a commit that referenced this pull request Jul 11, 2026
- Add PDF metadata extraction (#63) to CHANGELOG v1.10.1 section
- Bump README Docker quick start version to v1.10.1
- Bump all INSTALLATION.md version references to v1.10.1
dubyte added a commit that referenced this pull request Jul 11, 2026
* docs: update CHANGELOG and README for v1.10.1 metadata features

Document EPUB description, series, and subject extraction in CHANGELOG
and update README flag description to include all extracted metadata fields.

* docs: update CHANGELOG, README, and INSTALLATION for v1.10.1

- Add PDF metadata extraction (#63) to CHANGELOG v1.10.1 section
- Bump README Docker quick start version to v1.10.1
- Bump all INSTALLATION.md version references to v1.10.1
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

Successfully merging this pull request may close these issues.

1 participant