Bulk Webpage Archive to PDF
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
Bulk Webpage Archive to PDF is a powerful archiving utility that streamlines the process of saving multiple web pages as PDF files. Instead of manually opening each URL, waiting for the page to load, invoking the browser's print dialog, selecting "Save as PDF," and confirming the filename—a process that can take a minute or more per page—this script automates the preparation phase. It scans the current page for URLs and links using multiple detection strategies: hyperlinks, raw URLs in text, and structured list items. The script displays all detected URLs as a scrollable checklist with page titles and hostnames. You can select individual URLs, use Select All/Deselect All toggles, and bulk open your selections in new tabs. When configured, the script can automatically trigger the browser's print dialog on each new tab, allowing you to save each page as a PDF using the browser's built-in "Save as PDF" feature. This is ideal for researchers, legal professionals, archivists, students, and anyone who needs to create permanent, portable records of web content for offline reference, documentation, or compliance purposes.
WHERE IT RUNS
This script is universal—it runs on any website (*://*/*) as a userscript injected through the BotGentz extension. It operates within the context of your current browser tab and cannot access other tabs, bookmarks, history, or downloads. The script reads the page DOM to identify URLs using a three-layer detection strategy: hyperlinks, regex-based text scanning for raw URLs, and structured list items that contain URLs. It then opens selected URLs using GM_openInTab. All operations occur locally in your browser; no data is sent to external servers.
HOW TO USE
1. Navigate to any webpage containing a list of URLs you want to archive—a sitemap, a documentation index, a client site inventory, a research reference list, or a bookmarks page.
2. Click the BotGentz extension icon and select "Bulk Webpage Archive to PDF" from the script list.
3. The panel opens on the right side of the page. It automatically scans the current page for URLs.
4. Review the detected URLs, showing page title (or link text) and hostname.
5. Configure "Max concurrent opens" to control how many tabs are opened at once (default 3).
6. Set "Delay between opens" to control the pause between opening batches (default 1200ms).
7. Toggle "Open in background" to control whether tabs open in the background or focus on your current tab.
8. Toggle "Auto-trigger print dialog" to have the script attempt to open the print dialog automatically when each page loads.
9. Check the boxes next to URLs you wish to archive. Use "Select All" or "Deselect All" for quick selection.
10. Click "Open & Archive" to begin. The script opens selected URLs in new tabs at your configured concurrency limit.
11. For each tab, use the browser's print dialog (Ctrl+P / Cmd+P) and select "Save as PDF" to create the PDF file.
12. Alternatively, click "Copy Links" to copy all selected URLs to your clipboard for use with other PDF generation tools.
WHY IT WORKS WHERE OTHERS FAIL
Many PDF generation tools attempt to programmatically convert web pages to PDF using headless browsers or server-side rendering, which often fail due to JavaScript-heavy pages, dynamic content, authentication requirements, or cross-origin resource restrictions. This script takes a different approach: it leverages the browser's own built-in "Print to PDF" functionality—the most reliable PDF generation method available on every modern desktop browser. By opening URLs in actual browser tabs, the script ensures that pages are rendered exactly as a user would see them, with all scripts executed, styles applied, and resources loaded. The script's optional "auto-trigger print dialog" feature attempts to reduce friction, though it's limited by browser security policies that restrict programmatic control over other tabs. By focusing on the preparation step (opening tabs and optionally triggering print) and leaving the actual PDF generation to the browser's native capability, it remains reliable across all websites, including those that break headless renderers.
THE PANEL
The script uses BotGentz's BGPanel system, which provides a floating, draggable panel on the right side of your screen. Drag the panel by its header to reposition it anywhere on the page—the panel remembers its position per site and snaps to the nearest edge when released. Click the minimize button to collapse the panel to a small floating bubble; click the bubble to expand it back. Resize the panel vertically by dragging its bottom edge. Press the Escape key to close the panel entirely. All panel state (position, collapsed/expanded) is persisted locally using GM_setValue, so your preferences survive page reloads.
PLEASE NOTE
This userscript requires the free BotGentz browser extension—it is not a standalone application. Because it works on any website, the script's ability to detect URLs depends on the page structure. Results may vary across pages; some URLs may not be detected, and some non-URL text may be misidentified. The script opens URLs in new tabs and optionally triggers the print dialog, but actual PDF generation is performed by the browser's built-in "Print to PDF" feature—you will need to confirm the "Save as PDF" option in the print dialog for each tab. Opening many tabs simultaneously may impact browser performance; adjust concurrency and delay settings accordingly. This script does not access your password, hidden inputs, or file inputs. All URL detection and tab opening occurs entirely within your browser.