October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk7 min

How to Schedule Recurring Webpage PDFs with PDFShift and Cron

Cron runs the schedule; a script sends a webpage or HTML source to PDFShift, checks the response, and saves the PDF. Configure paths, secrets, time zones, and failure handling for reliable recurring captures.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use cron to start a script on a schedule, and have that script send the webpage or HTML to PDFShift’s PDF conversion endpoint. The script should check the response and save the PDF to storage you control. This guide shows a direct-response workflow, a weekday cron entry, and the reliability details that keep scheduled captures from silently failing.

How the scheduled PDF workflow fits together

Cron is the recurring trigger; PDFShift does the conversion. At the scheduled time, cron runs a shell script. The script sends a request to PDFShift’s conversion endpoint using a webpage URL or raw HTML as the source, authenticates with an X-API-Key header, checks whether the request succeeded, and stores the resulting PDF.

As an Amazon Associate I earn from qualifying purchases.

PDFShift’s official Make example documents a JSON request to this endpoint with the API key in that header. The same API request can be made from a script launched by cron. The endpoint and authentication details are documented in PDFShift’s API documentation and API key authentication help.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose the input and output before scheduling

Use a URL or submit raw HTML

Pass a URL when PDFShift should fetch the page itself. If your workflow already has the markup, submitting raw HTML avoids having PDFShift fetch the source page. PDFShift’s Node guide recommends raw HTML when available; including styles and scripts inline can also reduce external resource requests, though that does not guarantee faster or identical rendering on every page. See the conversion guide and the raw HTML guidance.

#1 Best Overall
Sale
Epson Workforce ES-50 Compact & Lightweight Mobile Document Scanner
  • PORTABLE SCANNER FOR USE ON-THE-GO — The fastest and lightest mobile single-sheet-fed compact document scanner in its class¹
  • QUICK DOCUMENT SCANNING ― This Epson ultra-fast scanner scans a single page as quickly as 5.5 seconds²; Windows and Mac compatible
  • VERSATILE PAPER HANDLING ― Portable scanner scans documents up to 8.5 x 72 in; Also easily digitizes receipts and ID cards to make accounting, bookkeeping, and organizing simpler
  • INTUITIVE, HIGH-SPEED SOFTWARE — Epson ScanSmart Software³ is a smart tool allowing you to easily scan, review, and save; Stay organized easily with the help of this Epson scanner
  • EASY SETUP — USB-powered connect to your computer for quick and simple scanning; No batteries or external power supply required to operate portable document scanner; Standard Connectivity: USB 2.0

For a page that requires authentication, PDFShift’s Make guide documents authentication, cookies, and custom HTTP headers as possible options. Limit credentials to what the capture requires, keep them out of logs, and consider whether sending page content to an external conversion service is appropriate for that data.

Choose direct PDF output or a temporary download link

PDFShift can return the PDF directly in the conversion response. If you supply a filename, the documented workflow instead returns JSON containing a download URL. PDFShift says that URL remains available for two days, so download the PDF during the scheduled run and copy it to storage governed by your own retention policy if it must last longer. Do not treat the temporary link as an archive.

Make a script that cron can run

Keep the API key out of the script and repository. PDFShift’s current documented authentication uses the X-API-Key request header; its help article says this replaced the older Basic Auth mechanism on 2025-05-06. Store the secret in a protected environment or secrets facility available to the scheduled account. The official Make guide likewise uses a credential store rather than exposing the key in a request body.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Sale
Brother DS-640 Compact Mobile Document Scanner, (Model: DS640)
  • FAST SPEEDS - Scans color and black and white documents a blazing speed up to 16ppm (1). Color scanning won’t slow you down as the color scan speed is the same as the black and white scan speed.
  • ULTRA COMPACT – At less than 1 foot in length and only about 1. 5lbs in weight you can fit this device virtually anywhere (a bag, a purse, even a pocket).
  • READY WHENEVER YOU ARE – The DS-640 mobile scanner is powered via an included micro USB 3. 0 cable allowing you to use it even where there is no outlet available. Plug it into you PC or laptop and you are ready to scan.
  • WORKS YOUR WAY – Use the Brother free iPrint&Scan desktop app for scanning to multiple “Scan-to” destinations like PC, Network, cloud services, Email and OCR. (2) Supports Windows, Mac and Linux and TWAIN/WIA for PC/ICA for Mac/SANE drivers. (3)
  • OPTIMIZE IMAGES AND TEXT – Automatic color detection/adjustment, image rotation (PC only), bleed through prevention/background removal, text enhancement, color drop to enhance scans. Software suite includes document management and OCR software. (4)

The request body needs a source field. A minimal JSON shape for a URL-based request is:

{"source":"https://example.com/report"}

Have your chosen HTTP client POST that JSON to https://api.pdfshift.io/v3/convert/pdf with Content-Type: application/json and X-API-Key: $PDFSHIFT_API_KEY. Configure the client to fail on non-success HTTP status codes, write the response bytes to a temporary file, and move that file to its final destination only after the request has succeeded and the file is usable. This prevents a failed or partial run from leaving a file that looks like a completed capture.

The precise shell and HTTP-client command depends on the host and client you use; PDFShift’s official examples establish the endpoint, JSON body, and header, but the scheduled workflow must still handle status checks and storage in your environment. Use absolute paths to the script, executable, and output locations rather than relying on an interactive shell’s PATH or current directory.

Rank #3
Sale
Canon imageFORMULA R10 - Portable Document Scanner, USB Powered, Duplex Scanning, Document Feeder, Easy Setup, Convenient, Perfect for Mobile Users, White
  • STAY ORGANIZED – Easily convert your paper documents into digital formats like searchable PDF files, JPEGs, and more.Power Consumption : 2.5W or less (Energy Saving Mode: 0.7W). Suggested Daily Volume : 500 scans..Does it contain liquid: no
  • CONVENIENT AND PORTABLE –lightweight and small in size, you can take the scanner anywhere from home offices, classrooms, remote offices, and anywhere in between
  • HANDLES VARIOUS MEDIA TYPES – Digitize receipts, business cards, plastic or embossed cards, reports, legal documents, and more
  • FAST AND EFFICIENT – No technical hurdles or complicated setups here; easily scan both sides of a document at the same time, in color or black-and-white, at up to 12 pages-per-minute, and with a 20 sheet automatic feeder
  • BROAD COMPATIBILITY – Works with both Windows and Mac devices, be it laptop or computer

Schedule it with cron

This illustrative user-crontab entry runs the script at 08:00 Monday through Friday:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
0 8 * * 1-5 /absolute/path/to/capture-page.sh >> /absolute/path/to/capture-page.log 2>&1

Linux crontab entries use five time-and-date fields followed by a command, and cron checks entries every minute. The example is not a tested command: confirm the syntax and time zone for the cron implementation on your host. The field pattern and behavior are described in the Linux crontab manual.

  1. Install the script at a stable absolute path. Make it executable and confirm the account running cron can read it and write to the log and destination directories.
  2. Provide required settings explicitly. Cron runs with a limited environment. The Linux manual describes /bin/sh as the default shell for its implementation and identifies account-related HOME and LOGNAME values. Set any other variables the script needs rather than assuming they will be inherited from your terminal. See the cron environment documentation.
  3. Add and verify the crontab entry. Use the crontab editor or the mechanism provided by your host. The weekday example’s time is interpreted according to the applicable cron configuration.
  4. Test the script outside cron first. Run it as the scheduled account, verify the PDF opens, and check that it reaches the intended storage location. Then inspect the cron log after a scheduled run.

Time zones, daylight saving, and duplicate runs

Decide whether the schedule should follow the server’s local clock or a deliberately selected time zone. The Linux manual documents CRON_TZ for a crontab and warns that daylight-saving transitions can make a local scheduled time nonexistent (so it does not run) or repeated (so it runs twice). Consult the cron manual’s time-zone and daylight-saving notes for the implementation in use.

Rank #4
IRIScan Express 4 Black Compact Portable USB Simplex Document Scanner, 8 PPM for Contracts, Invoices and Business Cards, Compatible with Windows, Readiris PDF Included
  • IRIScan Express, portable scanner : scans color and black and white documents a blazing speed up to 8ppm simplex. Color scanning won’t slow you down as the color scan speed is the same as the black and white scan speed.
  • IRIScan Express mobile scanner is powered via an included micro USB 2. 0 cable allowing you to use it even where there is no outlet available. Plug it into you PC or laptop and you are ready to scan. USB cable provided. AC Adapter not provided and not needed.
  • IRIScan flatbed scanner uses a simplex scanning mode allows for quick and straightforward scanning of single-sided documents. IRIScan with its full portable features is the ideal document scanners for computers.
  • IRIScan document scanner : Versatile scanning capabilities, including scanning to Word, PDF, and Excel formats with companion software provided Readiris OCR
  • Receipt scanner and card scanner with Additional features include scanning business cards directly to Outlook, photo scanning, and receipt scanning for efficient document management

If missing or duplicate snapshots would cause problems, make the job safe to rerun. One practical design is to associate each output with its intended capture date and time, then check that identity before writing a second copy. Keep the intended schedule zone consistent in filenames or stored metadata so a daylight-saving transition does not make a duplicate indistinguishable from a separate scheduled capture.

Make failures visible and protect the output

  • Check the HTTP result. Do not treat a completed process or a response body alone as proof of a successful conversion. Fail the run when the HTTP request fails, and do not mark it successful until the PDF has reached its destination.
  • Log useful diagnostics. Redirect standard output and errors as in the example, while avoiding API keys, private page contents, or sensitive headers in logs.
  • Configure alerts deliberately. The Linux manual describes MAILTO handling for command output, but email alerts only work if the host has mail delivery configured. Use an alerting path you have verified.
  • Plan retries and idempotency. A transient network or conversion failure may warrant a retry, but repeated runs should not create confusing duplicate archives. Set the retry policy and output identity to match the cost of a missed capture.
  • Persist temporary-link output promptly. If using the filename flow, download the PDF while the generated link is still available and store it where your retention policy applies.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshooting scheduled PDF captures

The job works in a terminal but not from cron

Cron’s environment is limited and may use /bin/sh rather than your interactive shell. Replace relative paths with absolute paths, explicitly set required environment variables, and confirm the scheduled account has permission to read the script and write the output and log. Check the cron log for command-not-found and permission errors.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The API rejects the request

Confirm that the request is a POST to https://api.pdfshift.io/v3/convert/pdf, includes the required source input, sends JSON with the appropriate content type, and supplies the key in the X-API-Key header. Do not rely on the older Basic Auth method described in legacy examples; PDFShift says the header replaced it on 2025-05-06. Review the HTTP status and response diagnostics without printing the secret.

Best Value
Canon Canoscan Lide 300 Scanner (PDF, AUTOSCAN, Copy, Send)
  • Scanner type: Document
  • Connectivity technology: USB
  • With Auto Scan Mode, the scanner automatically detects what you're scanning
  • Digitize documents and images

The PDF is missing or not retained

Distinguish the direct-PDF response from the filename flow, which returns JSON with a temporary download URL. In the latter case, the URL’s documented two-day availability means the scheduled process should download the file and save it to durable storage during the run. Verify the final path and permissions rather than assuming a successful API response means an archive was created.

The capture is skipped or duplicated around a clock change

Review the crontab’s time zone and the host’s daylight-saving behavior. A local time can be skipped or repeated at transitions. Choose a schedule zone deliberately and make reruns safe if either outcome would be disruptive.

The page is private or depends on external resources

For pages requiring access, review PDFShift’s documented authentication, cookie, and custom-header options, and keep credentials narrowly scoped. If you already have the page markup, raw HTML can avoid having the service fetch the page; inline styles and scripts reduce reliance on external requests, but page rendering still depends on the submitted content and resources available to it.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Or skip the browser setup

If your goal is a scheduled webpage capture and you do not want to build and maintain a browser-rendering setup, ScreenshotNeo is a website screenshot API and MCP server. For a PDF, its API call can request PDF output; this example uses https://stripe.com as the target URL:

Quick Recap

SaleBestseller No. 3
Canon imageFORMULA R10 - Portable Document Scanner, USB Powered, Duplex Scanning, Document Feeder, Easy Setup, Convenient, Perfect for Mobile Users, White
Canon imageFORMULA R10 - Portable Document Scanner, USB Powered, Duplex Scanning, Document Feeder, Easy Setup, Convenient, Perfect for Mobile Users, White
BROAD COMPATIBILITY – Works with both Windows and Mac devices, be it laptop or computer; This product is not intended for scanning photographs on photo paper / photographic media
$153.00
Bestseller No. 4
IRIScan Express 4 Black Compact Portable USB Simplex Document Scanner, 8 PPM for Contracts, Invoices and Business Cards, Compatible with Windows, Readiris PDF Included
IRIScan Express 4 Black Compact Portable USB Simplex Document Scanner, 8 PPM for Contracts, Invoices and Business Cards, Compatible with Windows, Readiris PDF Included
Find our Software here : irislink.com/start; IRIScan Express is only compatible Windows platform and not macintosh
$129.00
Bestseller No. 5
Canon Canoscan Lide 300 Scanner (PDF, AUTOSCAN, Copy, Send)
Canon Canoscan Lide 300 Scanner (PDF, AUTOSCAN, Copy, Send)
Scanner type: Document; Connectivity technology: USB; With Auto Scan Mode, the scanner automatically detects what you're scanning
$75.00
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -d format=pdf -o page.pdf

See the ScreenshotNeo documentation for request options. Cookie banners, popups, and chat widgets are removed before the shot; bot checks, blank pages, and failed loads are never billed. Its MCP server lets AI agents take screenshots. The Free plan includes 1,000 screenshots a month with no card, and paid plans start at $5 for 3,000. Sign up for free: 1,000 screenshots a month, no card.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.