Download Latest Version openpublisher5g_amd64-windows.exe (81.1 MB)
Home / 5.19.9
Name Modified Size InfoDownloads / Week
Parent folder
OpenPublisher5-i386-windowsXP.exe 2026-11-09 56.5 MB
openpublisher5_amd64-windows-portable.exe 2026-11-09 183.2 MB
openpublisher5_amd64-windows.exe 2026-11-09 165.2 MB
5.19.9_ Progress Bar Print Shadow Elimination _ Object-Fit Image Aspect Ratio Preservation source code.tar.gz 2026-11-09 103.6 MB
5.19.9_ Progress Bar Print Shadow Elimination _ Object-Fit Image Aspect Ratio Preservation source code.zip 2026-11-09 104.1 MB
README.md 2026-11-09 7.7 kB
openpublisher5_amd64-macos.dmg 2026-11-09 233.1 MB
openpublisher5_amd64-linux.run 2026-11-09 193.4 MB
openpublisher5_amd64-linux.rpm 2026-11-09 215.4 MB
openpublisher5_amd64-linux.flatpak 2026-11-09 153.6 MB
openpublisher5_amd64-linux.deb 2026-11-09 156.2 MB
openpublisher5_amd64-linux.AppImage 2026-11-09 166.4 MB
openpublisher5_amd64-freebsd.pkg 2026-11-09 185.5 MB
Totals: 13 Items   1.9 GB 0

📋 Summary

Version 5.19.9 resolves two prominent discrepancies between the on-screen editor view and the final print/PDF output, identified using the Nurse & Healthcare resume template as a benchmark: unwanted rounded corner shadows behind progress bars, and horizontal image stretching on circular profile photos.

While progress bars and portrait profile photos rendered cleanly inside the interactive canvas editor, the print serializer and rasterization engines previously handled component sub-elements and non-square images inconsistently. Progress bars acquired synthetic dark rectangular drop shadows during print spooling, and portrait avatar images (such as 400x600 px headshots) were compressed vertically and stretched horizontally by 50% within 1:1 circular frames because the print rasterizer ignored CSS object-fit: cover. With this update, specialized widget exclusions, non-printable handle filtering, and an automated high-resolution pre-flight image aspect ratio normalizer guarantee 100% visual parity across physical printing, browser print previews (Ctrl+P), PDF export, and canvas capture. Full application version synchronization has been completed across Service Worker cache buckets (open-publisher-v5-19-9-1), the About dialog, and asset cachebusters.

op-ProgressBarPrintShadowEliminationAndAspectRatioPreservation


🛠️ Key Enhancements & Fixes

1. Progress Bar & Chart Print Shadow Underlay Elimination

  • Root Cause Identified: The print engine's shadow underlay extractor (extractElementShadowForPrint) previously inspected element markup without checking for progress bar or chart widget types. The editor's interactive drag handle (.pb-drag-handle), styled with a thumb shadow (box-shadow: 0 2px 6px rgba(0,0,0,0.45)), matched the box-shadow scanner, while the progress bar's pill track matched the border-radius parser (999px). Consequently, a dark rounded shadow underlay image (op-print-shadow-underlay) was synthesized and injected behind each progress bar widget in both native print spooling and canvas-based print export.
  • Widget-Level Exclusions: Added explicit widget exclusions (isProgressBar, isChart) to both window.extractElementShadowForPrint and window.extractBorderRadiusForPrint. Progress bars and charts now unconditionally return { boxShadow: '', filter: '' } and 0 border radius for shadow baking, ensuring no underlay box is generated.
  • Editor Control Stripping: Hardened the innerHTML inspection scanner to strip .no-print subtrees prior to evaluating box-shadow or filter declarations so interactive editor controls cannot leak shadow definitions into printable elements.
  • Defense-in-Depth Cleanup: Added automated cleanup in both buildPrintDOM and printFullDocumentDirect to remove any orphaned .op-print-shadow-underlay elements on progress bars or charts.

2. High-DPI Object-Fit Image Normalization for Print

  • Root Cause Identified: The underlying print rasterizer (html2canvas) does not support CSS object-fit: cover or object-fit: contain. When rendering images whose natural aspect ratio differs from their container (such as portrait 400x600 photos displayed inside 150x150 circular avatar frames), html2canvas forced the image to stretch non-proportionally to 100% width and 100% height, compressing vertical height and stretching the subject horizontally by 1.5x (50% wider).
  • Automated Pre-Flight Normalizer: Built normalizeObjectFitImagesForPrint, a high-resolution pre-flight rasterization pipeline that executes before canvas capture.
  • Target Detection: Detects any image styled with object-fit: cover, object-fit: contain, or positioned inside circular avatar wrappers (border-radius: 50% with overflow: hidden).
  • Aspect Ratio Crop Geometry: Calculates the exact source crop bounds (sx, sy, sw, sh) using proportional aspect ratio geometry and CSS object-position coordinates.
  • High-DPI Offscreen Canvas Baking: Pre-crops the image onto an offscreen canvas at high-DPI print density (up to 300 DPI) and bakes the cropped output directly into the image element as a local data URL prior to canvas capture.
  • True Anatomical Proportions: Guarantees a flawless 1:1 aspect ratio (ratio: 1.0000) and natural human facial and body proportions on physical prints, print previews, and PDF documents.

3. Print Spooler & Defense-in-Depth Pipeline Hardening

  • Universal Print Engine Synchronization: Integrated normalizeObjectFitImagesForPrint into both buildPrintDOM (native Chromium spooler) and printFullDocumentDirect (iframe print and PDF export pipeline).
  • CORS Fallback Resilience: Helper image loaders specify crossOrigin = 'anonymous' before source assignment, with automated CORS proxy fallbacks (https://wsrv.nl/?url=...) for external origins to prevent canvas tainting during print assembly.
  • Zero-Distortion Verification: Automated Playwright browser tests verified that progress bars print completely flat without shadow underlays, and circular profile pictures maintain a perfect 1:1 ratio.

🔄 Version Synchronization (v5.19.9)

Component Target Version Updated Reference
Service Worker v5.19.9 open-publisher-v5-19-9-1 in sw.js
About Dialog v5.19.9 Free Online Desktop Publishing Tool • v5.19.9 in extensions/ui-interactions.js
UI Interactions Header v5.19.9 Header documentation in extensions/ui-interactions.js
Print Engine Header v5.19.9 Header documentation in extensions/print-engine.js
Proofing Dictionary v5.19.9 Header documentation in tools/proofing/dictionary.js
Spellcheck Engine v5.19.9 Header documentation in tools/proofing/spellcheck-engine.js
PWA Installer v5.19.9 Registration query sw.js?v=5.19.9 in extensions/pwa-install.js
Application Cachebusters v5.19.9 All 98 script and stylesheet links updated to ?v=5.19.9 in index.html
Dashboard Controller v5.19.9 Template asset cachebusters updated to ?v=5.19.9 in ui/dashboard.js
Template Asset Loaders v5.19.9 getTemplateAssetUrl updated to ?v=5.19.9 in elements/templates/templates.js
README Documentation v5.19.9 Badge asset cachebusters updated to ?v=5.19.9 in README.md

✅ Checklist Completed

  • [x] Add progress bar and chart exclusions to extractElementShadowForPrint
  • [x] Add progress bar and chart exclusions to extractBorderRadiusForPrint
  • [x] Strip .no-print editor handles during innerHTML shadow and filter inspection
  • [x] Remove any rogue shadow underlays on progress bars in buildPrintDOM and printFullDocumentDirect
  • [x] Implement normalizeObjectFitImagesForPrint to pre-crop object-fit: cover and circular avatar images
  • [x] Preserve natural 1:1 aspect ratio without horizontal stretching on physical print and PDF export
  • [x] Support object-position coordinates during proportional print baking
  • [x] Pass automated browser verification tests with 0 shadow underlays and exact 1.0000 avatar ratio
  • [x] Bump Service Worker cache bucket to open-publisher-v5-19-9-1 in sw.js
  • [x] Bump all asset cachebusters to ?v=5.19.9 across HTML, scripts, templates, and documentation
  • [x] Maintain clean local git commit ready for user push

🚀 Version 5.19.9 - Open Publisher

Source: README.md, updated 2026-11-09