Skip to content

LeoSnap v0.6.1 — Overlapping-text fix, MIT licence

Latest

Choose a tag to compare

@LeoHChen LeoHChen released this 01 Dec 16:55
45f2c96

LeoSnap v0.6.1

Fix: page blocks printed over the article

On some sites the text PDF could show another part of the page, such as a “popular articles” list, printed on top of the end of the article. This happened when LeoSnap zoomed the layout to fill the sheet and the site moved a block without making room for it, usually because its scripts had chosen a layout for the original window.

LeoSnap now checks the zoomed layout before printing. If text is drawn over other text that did not overlap in your window, it tries a desktop width of 1,024 px, and otherwise prints the page exactly as laid out in your window. It also waits for the page to settle after changing the width, and keeps floating elements where they sit on screen instead of letting them jump to the edge of their container.

Open source, and your ideas are welcome

LeoSnap is free and completely open source, and the code now carries the MIT licence, so anyone may reuse and adapt it. The settings page and the preview now link to the code and to the place to request a feature or report a problem: https://github.com/LeoHChen/LeoSnap/issues

Install or update

Download and unzip leosnap-v0.6.1.zip. At chrome://extensions, enable Developer mode and load the extracted folder containing manifest.json. To update an unpacked installation, replace its files with the new ZIP contents and click Reload. No new permissions are requested.

Verification

34 Node tests pass. The Chrome integration test has a new fixture that reproduces the overlap, a script that reacts late to a resize, and a floating element inside a positioned container. The site on which the problem was reported shows a verification challenge to automated browsers, so the fix was checked on the fixture and not on that site: please capture that page again and report back if it still looks wrong.