Skip to content

Bump bundled pdfium past 7776 to expose FPDFCatalog_GetLanguage #636

@eggnstone

Description

@eggnstone

pdfium_dart 0.1.3 is built against pdfium 144.0.7520.0 (per CHANGELOG: "Updated PDFium to version 144.0.7520.0" in 0.1.2), which is older than pdfium snapshot 7776 where the experimental FPDFCatalog_GetLanguage was added (declared in public/fpdf_catalog.h, see e.g. https://github.com/klippa-app/go-pdfium/releases which references the same upstream change).

As a result, pdfium_bindings.dart exposes FPDFCatalog_IsTagged and FPDFCatalog_SetLanguage but not the corresponding FPDFCatalog_GetLanguage - the only way to read the document Catalog /Lang entry.
FPDF_GetMetaText only reaches the Info dictionary, and FPDF_StructElement_GetLang is per-struct-element on tagged PDFs, so neither covers the document-level value.

Use case: language-aware reflow / accessibility / search - e.g. applying language-specific text-merge rules to multilingual PDFs.

Ask: bump the bundled pdfium snapshot to a version ≥ 7776 (current upstream is much newer) and regenerate pdfium_bindings.dart via ffigen. No new code/design needed beyond what ffigen produces.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions