For a page behind your application’s login, the clearest general approach is to fetch or build its authorized HTML on your own server, then send that HTML to DocRaptor as document_content. DocRaptor also accepts a document_url, but do not assume it can reuse a visitor’s browser cookie or login session. Keep the DocRaptor API key on your server.
Choose how DocRaptor will receive the private page
DocRaptor’s API accepts either HTML content or a URL as the document source. Those inputs are not interchangeable from an access-control perspective: a URL that works in a logged-in browser is not necessarily reachable by DocRaptor, which makes its own request to retrieve the page.
As an Amazon Associate I earn from qualifying purchases.
| Approach | When it fits | Important boundary |
|---|---|---|
Retrieve or construct HTML in your application and submit it as document_content |
Your server can authenticate and authorize the user and access the page’s content. | Your application is responsible for providing the right content and making any required assets accessible to the renderer. |
Submit a document_url |
The URL is reachable by DocRaptor, or you have confirmed a supported authentication method for the primary page request. | The references available here do not clearly establish that the HTTP Basic Auth options authenticate the initial document URL request. Confirm with DocRaptor before relying on them. |
| Use DocRaptor’s referrer-based endpoint | You control the domain and can configure it in your DocRaptor account. | This is not documented as a way to forward a visitor’s private login cookie or session. |
Recommended workflow: send authorized HTML from your server
- Authenticate and authorize in your application. Verify the user’s access before retrieving private content.
- Fetch or render the HTML in a trusted server context. Use the application’s existing authorization, then prepare the content for conversion.
- Send a server-side DocRaptor request. Set the document source to
document_content, the output type topdf, and authenticate using the API key as described in DocRaptor’s API documentation. - Return the generated PDF through your application’s access-controlled response. Treat the output as sensitive if the source page is private.
Keep the API key in server-side configuration, such as a protected environment variable or secrets store. Do not place a production key in browser JavaScript: DocRaptor warns that its browser JavaScript library exposes the key in page source and recommends a server-side agent or its referrer-based API for public locations. See DocRaptor API documentation for the request format and authentication method.
The exact request-building code depends on the server language and the structure of your content. The essential document fields are document_content and type: "pdf"; follow the current API reference for the required authentication header or parameter rather than copying a key into client code.
#1 Best Overall
- 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
When a private URL might work
Use document_url only if DocRaptor can retrieve the page under the authentication arrangement you intend to use. The API reference lists prince_options[http_user] and prince_options[http_password], while DocRaptor’s security white paper discusses HTTP Basic Auth for protected assets. The reviewed references do not unambiguously establish whether those options authenticate the primary document_url request itself.
- Do not infer that a browser’s existing cookie is sent to DocRaptor.
- Before adopting URL-based authentication for private content, ask DocRaptor to confirm the behavior or test it with a controlled, non-sensitive page.
- Check that the URL is reachable from DocRaptor’s rendering environment; access available only inside your network may prevent retrieval.
Referrer-based conversion for a domain you control
DocRaptor documents a flow in which you configure domains in your account, then link to https://api.docraptor.com/docs/from_site from a page whose HTTP referrer contains an authorized domain. This avoids putting an API key in that link flow. It is a site-owner integration, not documented as a general method for passing a logged-in visitor’s session cookie to the converter. Confirm that the page’s own access controls and the referrer flow fit your use case.
Rank #2
- 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)
Make sure assets and dynamic content render
CSS, fonts, images, and scripts
The HTML may load while its linked assets fail: stylesheets, fonts, images, and scripts can trigger separate requests and may have their own authentication requirements. DocRaptor’s security white paper describes approaches including HTTPS, HTTP Basic Auth for assets, short-lived or limited-download asset URLs, IP allowlisting, and a customer-controlled secured proxy. Choose an approach that matches your security requirements and confirm that every required asset is accessible to the renderer.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Scan for outdated or missing drivers - takes under a minute3Repair Windows errors before they cause bigger problemsJavaScript-generated content
DocRaptor states, “By default, JavaScript is disabled on DocRaptor.” If your page needs JavaScript for charts or other content, consult its JavaScript tutorial about enabling javascript and the separate Prince JavaScript option. Test the actual page’s asynchronous behavior; enabling JavaScript alone does not establish that all dynamic content will finish before capture.
Rank #3
- 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
Test mode
DocRaptor documents a test mode that watermarks generated PDFs, and its API reference describes test-mode limits for hosted documents. Use non-sensitive content while checking layout and resource access, and consult the current reference for the applicable limits.
Troubleshooting a private-page PDF
| Symptom | What to check | Practical next step |
|---|---|---|
| The PDF shows a login page | Which HTML the renderer received, whether the requested URL was reachable, and whether the intended authentication applied. | Retrieve the authorized HTML in your application and submit it as document_content, or confirm URL authentication behavior with DocRaptor. |
| Styles or images are missing | Asset URLs, HTTPS, and whether those separate requests need authentication. | Test asset access independently and use an appropriate documented asset-access method. |
| Charts or dynamic sections are blank | Whether the content requires JavaScript and whether rendering completes after asynchronous work. | Enable the appropriate JavaScript option and test with the actual page and timing behavior. |
| Resource failures are hard to diagnose | The API reference’s ignore_resource_errors setting and the available error reporting. |
Use error reporting deliberately while diagnosing missing resources; do not suppress errors until you understand their effect. |
Protect the document after conversion
A private source page remains sensitive when converted to a PDF. Restrict who can request and download the output, avoid publicly exposed or long-lived document links unless intended, and review DocRaptor’s current security terms alongside your own retention and data-handling requirements. Do not treat successful conversion as proof that the output is protected.
Rank #4
- Scanner type: Document
- Connectivity technology: USB
- With Auto Scan Mode, the scanner automatically detects what you're scanning
- Digitize documents and images
Or skip the browser setup
ScreenshotNeo is a website screenshot API and MCP server, not a replacement for DocRaptor’s private-page HTML-to-PDF workflow. If a screenshot of a page is sufficient, one GET request can return an image or PDF. For example, using the documented API endpoint:
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
Best Value
- OUR MOST ADVANCED SCANSNAP. Large touchscreen, fast 45ppm double-sided scanning, 100-sheet document feeder, Wi-Fi and USB connectivity, automatic optimizations, and support for cloud services. Upgraded replacement for the discontinued iX1600
- CUSTOMIZABLE. SHARABLE. Select personalized profiles from the touchscreen. Send to PC, Mac, mobile devices, and clouds. QUICK MENU lets you quickly scan-drag-drop to your favorite computer apps
- STABLE WIRELESS OR USB CONNECTION. Built-in Wi-Fi 6 for the fastest and most secure scanning. Connect to smart devices or cloud services without a computer. USB-C connection also available
- PHOTO AND DOCUMENT ORGANIZATION MADE EFFORTLESS. Easily manage, edit, and use scanned data from documents, receipts, photos, and business cards. Automatically optimize, name, and sort files
- AVOIDS PAPER JAMS AND DAMAGE. Features a brake roller system to feed paper smoothly, a multi-feed sensor that detects pages stuck together, and skew detection to prevent paper damage and data loss
See the ScreenshotNeo API documentation for setup and 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 ScreenshotNeo’s free plan.
Frequently Asked Questions
Can DocRaptor access a private URL using my browser login?
The documentation referenced here does not say it automatically receives a visitor’s browser session or login cookie.
Does DocRaptor support JavaScript when generating PDFs?
Yes. JavaScript is disabled by default; consult DocRaptor’s JavaScript tutorial for the relevant rendering options.
Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchPC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Quick Recap
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.




