Skip to content

Update Windows install docs: unpin GhostScript, document why Poppler stays pinned - #24

Merged
ahnafnafee merged 1 commit into
ahnafnafee:masterfrom
DABH:readme/windows-choco-versions
Aug 30, 2026
Merged

ahnafnafee merged 1 commit into
ahnafnafee:masterfrom
DABH:readme/windows-choco-versions

Conversation

@DABH

@DABH DABH commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Problem

The Windows install instructions pin ghostscript to 9.55.0 and poppler to 0.89.0, with a PATH snippet hardcoding gs9.55.0 paths. The GhostScript pin looks stale (and the hardcoded PATH breaks as soon as a different version is installed), while the Poppler pin looks arbitrary — tempting users (me included) to "fix" it by installing the latest, which actively breaks the extension.

What I verified (Windows 11)

  • GhostScript 10.7.1 (current Chocolatey package): works with the extension's conversion pipeline — the pin is unnecessary. The package also adds its bin directory to PATH on install.
  • Poppler on Chocolatey is broken after 0.89.0:
    • 25.x–26.6.0 packages contain only the upstream source tarball (CMakeLists, cpp/, etc.) — no Windows executables at all.
    • 22.11.0.* packages repack a conda build without its dependency DLLs (freetype.dll, zlib.dll, libpng16.dll, openjp2.dll, lcms2.dll, tiff.dll, libcurl.dll are all missing from Library/bin), so pdftocairo.exe/pdfinfo.exe fail to start.
    • 0.89.0 remains the newest Chocolatey version with working, self-contained binaries.

Changes

  • Unpin ghostscript in the install command.
  • Make the PATH snippet auto-detect the installed GhostScript version (works for any gs* install) and update the manual-PATH block to match.
  • Keep the poppler --version 0.89.0 pin, now with a callout explaining why it must stay pinned, plus a pointer to the prebuilt poppler-windows releases + the extension's postscript-preview.path.* settings for anyone who wants a current Poppler.

@ahnafnafee

Copy link
Copy Markdown
Owner

Hi @DABH , you can rebase or merge in the latest changes in the default branch to fix the CI issues.

- ghostscript: the 9.55.0 pin is unnecessary; the current package works
  (verified with 10.7.1 on Windows 11). The PATH snippet now auto-detects
  the installed GhostScript version instead of hardcoding gs9.55.0, so it
  keeps working across releases.
- poppler: keep the 0.89.0 pin but document why it is required:
  Chocolatey poppler packages newer than 0.89.0 do not ship working
  Windows binaries (25.x+ contain only the upstream source tarball; the
  22.11.x builds are conda repacks missing their dependency DLLs, so
  their executables cannot start). Users who want a current Poppler are
  pointed at the prebuilt poppler-windows releases together with the
  extension's existing path settings.
@DABH
DABH force-pushed the readme/windows-choco-versions branch from 23e8f06 to c236db2 Compare August 30, 2026 00:59
@ahnafnafee
ahnafnafee self-requested a review August 30, 2026 01:02

@ahnafnafee ahnafnafee left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ahnafnafee
ahnafnafee merged commit 16dce86 into ahnafnafee:master Aug 30, 2026
5 checks passed
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.

2 participants