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

If DocRaptor’s PDF is missing styles, first check that the stylesheet URL resolves to the right address and that DocRaptor’s servers can reach it. Use an absolute https:// URL, set prince_options[baseurl], or add a suitable <base> element. Then inspect the document log: DocRaptor can finish generating a PDF even when an external CSS request fails.

1. Check whether the stylesheet URL resolves correctly

A relative stylesheet path needs a base address. Without one, DocRaptor may report “File System Access is Not Allowed” for references such as /styles.css or //example.com/styles.css. Start by inspecting the final HTML sent to DocRaptor and determine the complete URL the browser or renderer should request.

Use an absolute URL

If the stylesheet has a stable, publicly reachable address, use the full URL:

<link rel="stylesheet" href="https://example.com/styles.css">

This is the simplest way to remove ambiguity about how the path is resolved. Confirm the URL uses the correct scheme, host, path, and filename. DocRaptor’s file-system access troubleshooting describes absolute URLs as one resolution option.

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.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Set prince_options[baseurl]

If your HTML contains relative asset paths and you control the API request, set prince_options[baseurl] to the base location against which those paths should resolve. Make sure it matches the directory structure: a base ending at the wrong path can produce a valid-looking but incorrect stylesheet URL. Check the resolved address rather than assuming the renderer will infer it from the HTML submission method.

See the DocRaptor API reference for request parameters and option syntax.

Add a document-level <base> element

If you control the document head, you can set a base there:

<head>
  <base href="https://example.com/">
  <link rel="stylesheet" href="styles.css">
</head>

The stylesheet then resolves under that base. Because a base element governs relative URLs in the document, check other relative links and asset references too. Choose the absolute URL, API base URL, or HTML base element that best fits your document; do not combine them blindly.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

2. Make sure DocRaptor can reach the stylesheet

A stylesheet that loads in your local browser may still be unavailable to DocRaptor. Its rendering servers need to fetch external assets over the internet. A private hostname, localhost, or a development server that is not publicly reachable cannot serve as a directly fetched resource in this setup. DocRaptor’s local development guidance explains the available approaches.

  • Open the exact stylesheet URL from outside your development environment and confirm it returns the expected CSS.
  • Check whether access depends on a VPN, private DNS, an IP allowlist, or a login session that DocRaptor cannot use.
  • For development, send the HTML as document_content and embed CSS where practical, or make the development server temporarily reachable through a tunnel.

Sending HTML as document_content avoids fetching the HTML document itself. It does not make separate external stylesheet URLs accessible; those still need to be reachable or replaced with embedded CSS.

3. Consider embedding the CSS

DocRaptor supports external stylesheets, <style> elements, and inline styles. If a separate CSS fetch is unnecessary, put the rules in the submitted HTML:

<style>
  body { font-family: sans-serif; }
  .report-title { font-size: 24px; }
</style>

This removes the stylesheet request and its URL, authentication, host, TLS, and timeout failure points. DocRaptor describes embedded styles as slightly faster because no separate CSS fetch is needed. External stylesheets can still be preferable when shared styles or document organization matter. See DocRaptor’s CSS documentation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

4. Read the document log instead of trusting a successful PDF response

DocRaptor ignores external resource download errors by default. As a result, PDF generation can complete while CSS or another asset is missing. Check the document log for the failed URL and error details. A completed response alone does not establish that the stylesheet loaded.

Make resource failures fail generation when appropriate

Set ignore_resource_errors to false when you need covered resource failures to make generation fail visibly. DocRaptor lists HTTP 400/500 responses, DNS resolution failures, unknown MIME types, connection timeouts, SSL problems, and rejected connections among relevant resource errors. This can help automated checks catch incomplete output, but it can also fail a document because of any covered resource problem, not just CSS.

Refer to the API reference for the option’s current request syntax and behavior.

5. Check timeout and network options only after the URL is correct

The API reference documents prince_options[http_timeout] as accepting 1–60 seconds, with a default of up to 10 seconds for an external resource request. A longer timeout may help if the stylesheet host is slow. It cannot fix a malformed URL, a missing base, or an inaccessible host.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
  • prince_options[http_user] and prince_options[http_password]: check these if the stylesheet host requires HTTP authentication.
  • prince_options[no_network]: verify this is not disabling network downloads when you expect an external CSS file to load.
  • SSL verification: DocRaptor labels disabling it as not recommended; do not use it as a routine stylesheet fix.

These parameters and the timeout range are documented in the DocRaptor API reference. Increasing a timeout is not a substitute for checking the request URL and the host’s reachability.

6. Troubleshoot by symptom

Symptom Likely area to inspect Next step
“File System Access is Not Allowed” for a stylesheet Relative or protocol-relative path without a usable base Use an absolute URL, set prince_options[baseurl], or add a suitable <base> element; then inspect the resolved URL.
CSS works locally but not in DocRaptor The asset host may be private or unreachable from DocRaptor Check public reachability; for local development, embed CSS or expose the server temporarily through a tunnel.
PDF completes but looks unstyled Resource errors may be ignored by default Inspect the document log for stylesheet download errors; consider setting ignore_resource_errors to false if failures must stop generation.
Stylesheet sometimes times out Slow response or connection instability Check the host and log details; if the URL and reachability are correct, consider a longer prince_options[http_timeout] within the documented range.
CSS host requires credentials or CSS never fetches Authentication or network-download settings Review prince_options[http_user], prince_options[http_password], and prince_options[no_network].
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

7. Escalate with the conversion details

If the URL, public reachability, logs, and relevant API settings do not explain the issue, open the document log’s Details view and review the conversion steps and problems. DocRaptor’s Help Request workflow lets its support team inspect the submitted HTML, output document, and generation log. The documentation says a request is normally available for documents created within the prior seven days.

Include the exact stylesheet URL, whether you submitted the HTML by URL or as document_content, the base URL in use, and the relevant log error. These details help identify whether the failure is URL resolution, access, or resource retrieval.

Or skip the browser setup

If the goal is to capture a webpage as an image or PDF rather than debug a DocRaptor stylesheet, ScreenshotNeo is a website screenshot API and MCP server. It is not a fix for DocRaptor’s resource-fetching configuration; it is an alternative way to capture a page. The API accepts a URL in one GET request. See the ScreenshotNeo documentation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

For example, save a webpage screenshot as WebP:

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

ScreenshotNeo removes cookie and consent banners, newsletter popups, and chat widgets before capture; bot checks, blank pages, and failed loads are not billed. Its MCP server lets AI agents use screenshot tools. The free plan includes 1,000 shots per month with no card; paid plans start at $5 for 3,000 shots. Sign up for 1,000 free screenshots a month, with no card required.

Frequently Asked Questions

Does DocRaptor load CSS from a URL?

Yes. It supports external stylesheets when the URL resolves correctly and is accessible to its rendering servers.

Why can DocRaptor return a PDF when the stylesheet failed?

External resource download errors are ignored by default, so generation can complete despite a failed CSS request.

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

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.