Repository navigation
🔧 add libpdfium static build - #13
Merged
Merged
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
PR regression checks are disabled, feature-powerset tests include unprovisioned static builds, and static tests can run before their archives are published.
3 open issues
What changed in this PR
Adds a static PDFium build and distribution pipeline, including JPEG symbol namespacing to avoid conflicts with mozjpeg and platform-specific linking support for the core library and PHP binding.
Changes:
- Adds static archive building, symbol rewriting, checksum verification, and release publishing.
- Introduces platform-specific static-link features and PHP test workflows.
- Refreshes dependencies, adjusts caching, and disables existing PR validation jobs.
| File | Description |
|---|---|
| tools/pdfium-static/namespace_pdfium_jpeg.py | Renames bundled JPEG symbols and verifies archive symbols. |
| tools/pdfium-static/download.sh | Downloads and verifies static PDFium archives. |
| tools/pdfium-static/build.sh | Builds static PDFium with platform-specific toolchains. |
| deny.toml | Updates advisory and duplicate-dependency exceptions. |
| core/src/pdf/mod.rs | Gates static initialization on static-link. |
| core/Cargo.toml | Adds platform-specific static-link features. |
| core/build.rs | Refactors dynamic downloads and adds Windows link libraries. |
| Cargo.lock | Refreshes resolved dependencies. |
| bindings/ruby/Cargo.toml | Updates UniFFI dependencies. |
| bindings/php/src/pdf/mod.rs | Selects initialization through static-link. |
| bindings/php/justfile | Consolidates PHP commands and selects static features by platform. |
| bindings/php/Cargo.toml | Updates ext-php-rs and exposes static-link features. |
| bindings/dotnet/Cargo.toml | Updates UniFFI dependencies. |
| .gitignore | Ignores namespaced PDFium build output. |
| .github/workflows/pull-request.yml | Disables pre-commit, unit-test, and binding-test jobs. |
| .github/workflows/build-static-pdfium.yml | Builds and publishes static archives across platforms. |
| .github/workflows/_php-static-check.yml | Adds cross-platform static PHP binding checks. |
| .github/workflows/_php-binding-tests.yml | Keys PDFium caches by release and architecture. |
| .cargo/config.toml | Adds Windows system-library link flags. |
Review effort: Balanced
Update target configuration for Windows MSVC. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: sebastianMindee <130448732+sebastianMindee@users.noreply.github.com>
ianardee
approved these changes
Oct 22, 2026
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.


Description
Types of changes