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.
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.