Skip to content

Full Page Capture v0.5 — Page numbers, source page, fit to page, end at selection

Choose a tag to compare

@LeoHChen LeoHChen released this 01 Dec 07:55
f6cf73d

Full Page Capture v0.5

Four additions to PDF output and capture control.

Page numbers and a source page

Paginated PDFs number their pages at the bottom (“3 / 12”) when the capture runs to more than one page. Every paginated PDF, with text or cut from the screenshot, ends with a separate page giving the captured URL as a clickable link and the capture time. The single continuous page is unchanged.

Pages that fill the sheet

Printing a wide browser window as-is gave small text between empty margins. The text PDF now measures where the page's content sits and how large its text is, and lays the page out at a width that fills the Letter sheet, as zooming the page would. It reflows the page at that width and checks the result first: if content would be pushed off the side it zooms back out, and if only a sliver would spill onto a last sheet it zooms out slightly to save the sheet. The window is restored afterwards and the preview reports the layout width used. On a 1,440 px window, Wikipedia and MDN articles were laid out at 922 px, a narrow fixed-width essay at 600 px, and a short page that spilled one line onto a second sheet was brought back to one.

End the capture where you choose

Select a heading or some text on the page, then capture: the capture ends there. The popup's If text is selected on the page choice ends the capture after the selection (default), before it, or ignores it. The PNG and all PDF formats follow it. The highlight is not captured and the selection is restored afterwards.

The installed version is shown beside the name in the popup, preview, and Download settings (added in 0.4.1).

Install or update

Download and unzip full-page-capture-v0.5.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

33 Node tests pass. The Chrome integration test checks numbered footers, the appended source page on Chrome's own PDF, printing while reflowed to the fitted width with the window restored, ending before and after a selection with the selection restored, and all download formats from the real preview. Live pages were captured through the same code and the rendered PDFs inspected. Use from the installed extension through chrome.debugger remains a manual check.