Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon 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 NowHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk3 min

How to Return a PDF Instead of a PNG from ScreenshotOne

Set ScreenshotOne’s format parameter to pdf, then save the binary response as a PDF. Learn which options control page fit, backgrounds, paper size, and margins.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Set format=pdf in your ScreenshotOne request. With its default response_type=by_format, the API returns the requested format as binary response data, so save or process the response as a PDF rather than as a PNG.

Set the response format to PDF

ScreenshotOne accepts GET query parameters or a POST JSON body, and recommends HTTPS. Add format=pdf to the request. The API’s default response_type=by_format returns the selected format directly; for PDF, handle the response body as PDF bytes and give the saved file a .pdf extension.

As an Amazon Associate I earn from qualifying purchases.

For example, a GET request can include ?format=pdf alongside the other capture options. If you send a POST request, put "format":"pdf" in its JSON body. The official options and request documentation are at ScreenshotOne’s options page and getting-started guide.

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

Choose PDF layout options

Fit the page onto one sheet

To create a one-page document resembling a full-page capture, set pdf_fit_one_page=true. This asks ScreenshotOne to attempt to fit the website onto one page; the option defaults to false. Fitting a long page onto one sheet can make its text and details smaller.

#1 Best Overall
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

Include background graphics

Set pdf_print_background=true to include background graphics. It defaults to false. For a one-page-style PDF with backgrounds, ScreenshotOne recommends this combination: format=pdf&media_type=screen&pdf_print_background=true&pdf_fit_one_page=true.

Set paper, orientation, and margins

Use pdf_landscape to control orientation, pdf_paper_format to choose a paper size, and pdf_margin or the per-side margin overrides to adjust margins. The options page is inconsistent about the default paper size: its option description names Letter, while another part says A4. Set pdf_paper_format explicitly whenever paper size matters rather than relying on the default.

Rank #2
Sale
Epson Workforce ES-400 II High-Speed Color Duplex Desktop Document Scanner | For Computers including PC and Mac with Auto Document Feeder and Image Adjustment Tools
  • FAST DOCUMENT SCANNING — Document scanner with feeder allows you to speed through stacks with a 50-sheet Auto Document Feeder (ADF); Efficient office scanner to help you scan more productively
  • INTUITIVE, HIGH-SPEED SOFTWARE — Quickly scan with this desktop document scanner; Epson ScanSmart Software lets you easily preview scans, email files, upload to the cloud, and more; Plus, automatic file naming saves even more time
  • SEAMLESS INTEGRATION — Easily incorporate your data into most document management software with the included TWAIN driver; Office document scanner integrates seamlessly with business workflows
  • EASY SHARING — Duplex scanner allows you to scan straight to email or popular cloud storage2 services like Dropbox, Evernote, Google Drive, and OneDrive for simple storage and sharing
  • SIMPLE FILE MANAGEMENT — Scanner allows the creation of searchable PDFs with Optical Character Recognition (OCR) and convert scans to editable Word or Excel files effortlessly; Designed for home and office document scanning

The ScreenshotOne changelog entry dated February 2, 2024 documents the addition of one-page rendering and background graphics controls: ScreenshotOne changelog.

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

Read and save the response as a PDF

With the default response_type=by_format, the response body is binary data in the requested format. Do not treat it as PNG bytes or decode it as text. Save the body directly to a file ending in .pdf, or pass the bytes to a PDF-aware consumer. The API sets the response Content-Type according to the selected output format.

Rank #3
HP Smart Tank 5101 Ink Tank Printer | 2 Years of Ink Included | All-in-One
  • SET IT UP ONCE AND PRINT WITH CONFIDENCE. No complicated maintenance. Just easy, reliable printing you can count on.
  • INK FOR YEARS. NOT MONTHS. Up to 2 years of ink included. Get thousands of pages of cartridge-free printing. More pages, less hassle
  • KEEPS PRINTING WELL AFTER COMPETITORS HAVE QUIT. No complex maintenance. Sharper text, richer colors.[2] Only with HP Smart Tank
  • INNOVATION YOU CAN TRUST. Cartridge-free printing that keeps you printing longer with fewer interruptions, powered by the trusted HP innovation you rely on today
  • PREMIUM SUPPORT - Strong technical expertise to solve issues faster.

ScreenshotOne also documents response types such as empty and json. If you select a response type other than by_format, check its behavior before expecting a direct PDF file in the response body.

Or skip the browser setup

If you want a screenshot API that can return PDF without configuring a browser, ScreenshotNeo accepts a URL in one GET request. Its PDF controls include paper size, margins, landscape orientation, and page ranges. The service also removes cookie banners, newsletter popups, and chat widgets before capture; bot checks, blank pages, and failed loads are never billed; and its MCP server lets AI agents take screenshots.

Here is a cURL request to capture a PDF:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -d format=pdf -o shot.pdf

See the ScreenshotNeo API documentation for request details. One thousand screenshots per month are free with no card; paid plans start at $5 for 3,000. Learn about ScreenshotNeo or sign up for the free plan.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
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)
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshooting

The file still appears to be a PNG

Check that the request actually includes format=pdf and that your code saves the raw response bytes. Changing only the filename to .pdf does not convert an image into a PDF.

The response is JSON or empty

Check response_type. The direct binary response is the documented default, by_format; other response types, including json and empty, do not have the same direct-file behavior.

The request fails

ScreenshotOne’s getting-started guide says errors can result from internal failures, invalid options, or limits, and describes HTTP status meanings and a JSON error object. Inspect the HTTP status and error response, correct invalid parameter values, and check the applicable limits in the documentation. For large HTML or Markdown input, use POST with a JSON body instead of putting the payload in the URL.

Quick Recap

Bestseller No. 1
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
Bestseller No. 3
HP Smart Tank 5101 Ink Tank Printer | 2 Years of Ink Included | All-in-One
HP Smart Tank 5101 Ink Tank Printer | 2 Years of Ink Included | All-in-One
PREMIUM SUPPORT - Strong technical expertise to solve issues faster.; THE LAST PRINTER YOU'LL EVER NEED. Enjoy years of refillable, cartridge-free printing.
$161.49

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.

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.

Leave a Reply

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

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
Windows Errors? Fix Them Before They SpreadFree repair scan
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.