Repository navigation
feat: add compat.pdfium 8165 - #883
Open
FarnaHerry wants to merge 2 commits into
Open
FarnaHerry wants to merge 2 commits into
FarnaHerry wants to merge 2 commits into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
compat.pdfium8165(design notes:.agents/docs/2026-11-23-add-pdfium-plan.md).pkgs/c/compat.pdfium.lua) consumingbblanchon/pdfium-binariesreleasechromium/8165(PDFium160.0.8165.0, standalone build with V8/XFA disabled) acrosslinuxx64,macosxarm64, andwindowsx64 (upstream PDFium has no standalone source release outside Chromium's GN/depot_toolsgraph).include,include/cpp), C11 arch/ABI anchor (#include <stdlib.h>+<fpdfview.h>),license_files = { "LICENSE", "licenses/*" }, and per-platformruntimelibrary/search paths (pdfiumon Linux/macOS,pdfium.dll+binon Windows).tests/examples/pdfiumcreates a PDF in memory (FPDF_CreateNewDocument,FPDFPage_New,FPDF_SaveAsCopy), reloads it (FPDF_LoadMemDocument), verifies dimensions, and renders a bitmap (FPDF_RenderPageBitmap).Mirror & Automatic Updates
mcpp-reswrite credentials locally;xpm.<plat>.["8165"].urluses plain GitHub release URLs (docs/zh/cn-mirror.mdfallback).extensions.autoupdatedeclarestag = "chromium/${version}"with per-platform tarball URLs.Verification (mcpp
2026.11.18.1,MCPP_INDEX_MIRROR=GLOBAL)mcpp xpkg parse pkgs/c/compat.pdfium.lua:parse OK,ALL LINT PASSbash tests/run_members.sh pdfium:compat.pdfium 8165 roundtrip test: ok (pdf=549 bytes, pages=1, 200x100)(test result ok)compat.pdfiummcpp build --strict+mcpp pack --mode self-contained --pkg-format dir: bundleslibpdfium.soandshare/licenses/compat.pdfium/*and runs cleanly in a relocatedenv -ienvironment (ld-linux --listresolves all shared libraries within the bundle)xpkgindex_update:ci.py audit,inspect --package compat:pdfium, andcheck --package compat:pdfium(status = "up-to-date")