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

Most EvoHtmlToPdfClient failures in a Xamarin.Forms app are not caused by the HTML itself. The Xamarin library is a client; the rendering engine is a separately installed EVO PDF Server. Start by proving that the client can reach that server from the device or emulator, then classify the output problem as resource loading, scaling, JavaScript timing, session state, licensing, or an API/version mismatch.

Understand the Xamarin.Forms architecture first

The official EVO Xamarin integration installs two pieces: a client library in the platform project and an EVO PDF Server installed separately. The server performs navigation, resource loading, rendering, and PDF generation; the mobile application sends it conversion work. The Xamarin documentation specifically discusses iOS, Android, and macOS integrations, so treat Xamarin.Forms as a shared UI layer over one of those platform projects. Verify that the package and native runtime support your actual target before debugging conversion settings.

A phone’s 127.0.0.1 is the phone itself, not your development computer. In an emulator, loopback may refer to the emulator, a host alias, or a virtual network depending on the platform. Test the configured address from the environment in which the client code actually runs.

Use a repeatable diagnostic sequence

  1. Save the complete exception and response. Record whether it fails while opening the server connection, navigating, loading a resource, executing JavaScript, writing the PDF, or applying a license.
  2. Identify the binary actually loaded. In Visual Studio’s project references and build output, record the NuGet package, assembly name, namespace, and version. The legacy API reference names EvoPdf.HtmlToPdfClient, assembly EvoHtmlToPdfClient.dll, version 9.0.0.0; the Xamarin example uses EvoPdfClient. Do not mix examples from those API generations.
  3. Record deployment facts. Note the platform (Android, iOS, or macOS), the machine running EVO PDF Server, its listening port, any service password or web-service URL, and the address configured in the app.
  4. Reduce the input. Convert a plain HTML string with inline text. Then test a simple public URL, add an external stylesheet and image, and finally restore scripts, authentication, and application data one change at a time.
  5. Keep a minimal reproduction. If the failure remains, provide EVO support the exact package version, target platform, server version, address, port, HTML, and exception.

Fix “Could not connect to server IP 127.0.0.1 on port 40001”

EVO’s troubleshooting guide says this message means the EVO PDF Server is not installed or is not accessible at the TCP/IP address configured in the client. Check the following in order:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Epson EcoTank ET-2800 Wireless Color All-in-One Supertank Printer - Black
  • INNOVATIVE CARTRIDGE-FREE PRINTING — No more dealing with lots of tiny ink cartridges; With this wireless document and photo printer each ink bottle set is equivalent to about 90 individual cartridges²
  • LESS FREQUENT INK REPLACEMENT — Replacement ink bottles don't have to be changed nearly as often as ink cartridges¹; When you choose this combination printer, scanner and copier you can print up to 4,500 pages black/7,500 color³
  • COLOR PRINTING — Up to 2 years of ink in the box4 (and with every replacement ink set) for fewer out-of-ink frustrations
  • ZERO CARTRIDGE WASTE — By using an Epson EcoTank printer you can help reduce the amount of cartridge waste ending up in landfills
  • HOME PRINTER DESIGNED FOR RELIABILITY — The Epson EcoTank ET-2800 All-in-One Supertank Color Printer creates vivid, detailed prints and documents thanks to Micro Piezo Heat-Free Technology; Fire off 10 ISO pages per minute1 to easily finish large jobs
  • Install the EVO PDF Server on the intended machine and confirm its service or executable is running.
  • Confirm that the client is using the server’s reachable LAN address or host name, not an accidental device-local loopback address.
  • Verify that the configured port is the port on which the server listens. Port 40001 in the exception is evidence of the attempted destination, not proof that every EVO installation uses that port.
  • Allow the port through the server machine’s firewall and any cloud, VPN, corporate, or emulator network policy between client and server.
  • From the runtime environment, test route and DNS resolution. A desktop browser reaching the server does not prove that a phone or simulator can reach it.
  • If using EVO’s web-service deployment rather than a local TCP service, check the configured service URL and authentication settings instead of troubleshooting a local socket.

Only after a minimal HTML conversion reaches the server should you investigate CSS, images, JavaScript, or page layout.

Repair missing CSS, fonts, and images

Give relative URLs a base

An HTML string containing <link href="css/site.css"> or <img src="images/logo.png"> has no meaningful origin unless you provide one. Pass a base URL through the API version you installed, or change references to absolute, server-reachable URLs. A file path such as C:assetslogo.png is not automatically a valid browser URL; use the URL format and permissions expected by that EVO version.

Check access from the server, not only from the app

The PDF Server fetches external resources. Test the stylesheet, image, font, and API URLs from the server machine. Private resources may require custom headers, cookies, a service account, VPN access, or an allow-list entry. A resource visible in the mobile app can still be unreachable to the server.

Separate resource failure from CSS failure

Start with inline CSS and a data-free image. If that works, add one external resource at a time. Inspect HTTP redirects, TLS certificates, 401/403 responses, and mixed-content rules. For an HTML string generated inside the app session, preserve a base URL even when the markup itself is complete; linked assets still need an origin.

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

Correct text or image size that looks smaller than the HTML

PDF layout is a page-size calculation, not a screenshot at the browser’s CSS pixel width. The legacy HtmlToPdfConverter reference documents a default HtmlViewerWidth of 1024 pixels. Its troubleshooting guide suggests trying approximately 800 pixels for A4 portrait output or disabling FitWidth. Those are version-specific settings and a trial, not universal values.

  • Set the intended paper size and orientation before judging scale.
  • Compare output with and without fit-to-page scaling.
  • Try a narrower viewer width when a desktop-width page is being reduced to A4.
  • Use CSS media rules deliberately; print CSS can change font sizes, widths, and visibility.
  • Check whether a newer rendering engine has different defaults. EVO’s release notes describe EVO PDF Next v14.75 as scaling a 1024-pixel browser window to a fixed A4 page, but that does not establish the defaults of a legacy Xamarin package.

Do not copy a property name from a different assembly. Confirm that your referenced version exposes HtmlViewerWidth and FitWidth, then inspect the generated PDF at 100-percent zoom rather than comparing screen pixels.

Rank #2
Sale
Epson EcoTank Photo ET-8550 Wireless Wide-Format All-in-One Tank Printer
  • CARTRIDGE-FREE PRINTING — Print lab-quality photos, graphics and creative projects; Get vibrant colors and sharp text with Epson's high-accuracy printhead and Claria ET Premium 6-color inks
  • INK BOTTLES — Save on photos1 and creative projects with affordable in-house printing; All-in-one printer allows you to print 4" x 6" photos for about 4 cents each vs. 40 cents with traditional ink cartridges1
  • LESS FREQUENT INK REPLACEMENT — Replacement ink bottles don't have to be changed nearly as often as ink cartridges¹; Printer, scanner and copier lets you print up to 6,200 color pages³
  • PRINT FOR LONGER — Up to 2 years of ink in the box² (and with every replacement ink set) for fewer out-of-ink frustrations with this wireless printer
  • ZERO CARTRIDGE WASTE — Epson EcoTank printer helps reduce the amount of cartridge waste ending up in landfills; Cartridge-free printer uses high-yield ink bottles; Each replacement ink bottle set is equivalent to about 100 individual ink cartridges⁴

Make JavaScript and AJAX content appear

Use a delay when load time is predictable

Client-side rendering, API calls, charts, and lazy components may finish after the initial document load. The legacy API reference lists ConversionDelay with a documented default of two seconds. Increase it only when the page needs more time, and keep the value matched to the installed API.

Use a readiness signal when load time varies

A fixed delay can be wasteful or still too short. A more reliable design is to have the page signal that required content is ready, then trigger conversion manually through the option provided by your EVO version. This avoids capturing an intermediate state when network latency changes.

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

Remove unnecessary waiting for static pages

For pages with no asynchronous work, EVO documents an automatic mode or a zero delay to avoid an unnecessary pause. Do not set zero until you have ruled out deferred scripts, AJAX, image lazy-loading, and web fonts.

The legacy API reference lists a 60-second NavigationTimeout default. A timeout is not proof that JavaScript failed: distinguish a slow server, an unreachable API, an infinite script, and a page that never signaled readiness.

Handle ASP.NET session-authenticated pages

EVO explains that conversion executes the page in a new session, different from the ASP.NET application’s session. Cookies and server-side session values available to the app therefore may not exist in the conversion request.

When the page depends on those values, generate the final HTML inside the authenticated application session, intercept the rendered markup, and convert that string. Supply a correct base URL for every relative stylesheet, image, font, or script reference. This approach preserves the session-derived content while still requiring the conversion server to reach its linked resources.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
HP Smart Tank 5000 Wireless All-in-One Ink Tank Printer, Scanner, Copier with 2 Years of Ink Included, Best-for-Home, Cartridge-Free, Refillable and AI-Enabled. (5D1B6A)
  • 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
  • PREMIUM SUPPORT - Strong technical expertise to solve issues faster
  • THE LAST PRINTER YOU'LL EVER NEED. Enjoy years of refillable, cartridge-free printing.
Approach Use when Watch for
Convert a URL The page is publicly reachable or the converter can be given all required authentication context. Separate converter session, redirects, cookies, and server-side network access.
Convert generated HTML Markup depends on the current app session or private values. Correct base URL, accessible linked assets, and safe handling of user data.

Eliminate the demo warning or watermark

A watermark usually indicates that a demo key is still active somewhere in the conversion path. Set the purchased key on every relevant converter or document object, including objects created in helper methods, and search the solution for code that later assigns a demo key. Confirm that the licensed assembly is deployed with the app and that the key is applied before conversion. If only one screen is watermarked, compare its object construction with a screen that is not.

Keep API names and versions aligned

The legacy namespace EvoPdf.HtmlToPdfClient and assembly EvoHtmlToPdfClient.dll version 9.0.0.0 are not interchangeable with the EvoPdfClient namespace shown in the Xamarin sample. EVO’s release notes identify EVO PDF Next v14.75, but a release-note version is not evidence that an older Xamarin client can use its defaults or methods.

For each build, record:

  • the NuGet package ID and resolved version;
  • the assembly loaded at runtime;
  • the namespace and constructor used;
  • the server product and version;
  • the Xamarin platform project that performs the call.

If a property or method is missing, stop adapting a snippet from another generation. Open the documentation matching the referenced assembly or contact EVO with the complete version pair.

A version-conscious Xamarin.Forms test harness

Use a tiny service so networking and conversion can be tested independently of page navigation. The exact constructor and conversion method differ between EVO client generations; select them from the documentation shipped with your referenced package rather than combining the names below with another assembly.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
public async Task<byte[]> ConvertDiagnosticHtmlAsync()
{
    const string html = "<html><body><h1>EVO test</h1><p>Static content</p></body></html>";

    // Create the HtmlToPdfConverter using the constructor documented
    // for the Evo package referenced by this platform project.
    // Configure the server host, port, license key, page size and timeout there.
    // Then convert this inline HTML before adding URLs or JavaScript.
    throw new NotSupportedException("Bind this call to the API version installed in the platform project.");
}

This deliberately fails at compile time until you bind the version-matched constructor; it prevents a copied legacy sample from silently targeting the wrong API. Once the static test succeeds, add a base URL, then one external image, then scripts and authentication. Keep the successful static case as a regression test.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

If your actual requirement is a clean image or PDF of a web page rather than an in-process Xamarin PDF conversion, ScreenshotNeo provides a single HTTP request. It accepts consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; failed loads, blank pages, bot checks, CAPTCHAs, timeouts, and cache hits are not billed. Responses identify the page verdict and billing status in headers. Its MCP server exposes take_screenshot, get_page_info, and capture_pdf for Claude, Cursor, and other MCP clients.

cURL:

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

Python:

import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)

Node.js:

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

See the ScreenshotNeo documentation for PDF options, full-page and element capture, device and retina settings, custom CSS or JavaScript, waits, request blocking, headers and cookies, geolocation, caching, signed links, webhooks, bulk capture, and the usage API. Every feature is on every plan: 1,000 screenshots per month are free with no card; paid plans start at $5 for 3,000 shots. Create a free ScreenshotNeo account.

Rank #4
NDYIN Portable Printers Wireless for Travel, N80 Bluetooth Thermal Printer
  • Wireless Bluetooth Printer: Portable thermal printer compatible with iPhone, Android phones, iPad and tablet computers via Bluetooth. For smartphones, please download the "Nada Print" App. You can also connect to laptops and computers for printing using a USB-C cable. (Note: Laptops and computers can only be connected via USB and require the installation of a driver first. Bluetooth connection is not supported.)
  • No-ink printing: Only supports US Letter and A4 size thermal paper.(Doesn't support regular paper) The no-ink portable thermal printer uses direct thermal technology, requiring no ink, toner or ribbons, making it environmentally friendly, cost-effective and time-saving. The thermal printer package comes with a roll of US Letter thermal printing paper. Note: When installing the paper, remember to switch the paper size switch on APP
  • Clear Print: NDYIN N80 portable thermal printer adopts high-definition printing technology, with a 203DPI resolution to provide you with clear printing results. This mobile printer is compatible with roll paper, folded paper and tattoo transfer paper, supporting printing from your mobile phone PDF, Word, pictures and web pages anytime and anywhere. It is recommended to use our NDYIN thermal paper to achieve good printing quality
  • Portable wireless printer for travel: The thermal printer is equipped with a built-in 1500mAh rechargeable battery, which can print 160 sheets of 8.5" x 11" thermal paper after being fully charged. It weighs only 1.5 pounds and is compact in size. This ink-free portable printer can be easily carried in a backpack or briefcase! It is perfect for business travel, cars, small offices, construction sites, schools and homes. You can print documents, contracts, invoices and boarding passes anytime and anywhere
  • The N80 thermal printer has a wide range of uses. The package includes the N80 printer, a roll of US Letter paper(7m/roll), a user manual, a guide card, a type-C soft cable and a type C adapter. Note: The charging adapter is not included. Special thermal paper is required for use; ordinary paper cannot be used. This ink-free portable thermal printer is suitable for various scenarios such as home, school, travel, office, and outdoor, meeting the printing needs of different groups of people. This tattoo template printer is also compatible with tattoo transfer paper, making it an ideal choice for tattoo art

Troubleshooting checklist by symptom

Symptom First check Likely correction
Connection refused or timeout Server state, host, port, firewall, route Install/start EVO PDF Server and use an address reachable from the app runtime.
HTML text appears but CSS or images do not Relative URLs and server-side fetch access Provide a base URL or absolute URLs; fix permissions, authentication, redirects, or certificates.
Everything is too small Viewer width, fit scaling, paper size Test the version-matched width and fit settings; the legacy guide suggests about 800 pixels as a trial.
Charts or AJAX are absent Readiness timing and API reachability Use an appropriate delay or manual trigger; verify the converter can reach data endpoints.
Private page loses data Separate conversion session Render HTML inside the app session and convert the resulting string with a valid base URL.
Demo watermark remains All key assignments and object creation paths Apply the purchased key to every relevant object and remove later demo-key assignments.
Compile errors after copying a sample Namespace, assembly, package and version Use documentation for the exact dependency loaded by the platform project.

When to contact EVO support

Contact the vendor after the minimal inline conversion, server reachability check, and version audit. Include the exact exception text, target platform, client assembly and version, server version, configured endpoint, firewall result, reduced HTML, and whether the failure occurs before or after navigation. EVO’s support information distinguishes evaluation inquiries, so identify an evaluation request when that applies. No published success rate or performance benchmark establishes how quickly a particular configuration should convert; measure your own pages after correctness is established.

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

Frequently Asked Questions

Does Xamarin.Forms itself run the EVO rendering engine?

No. The app references an EVO client library while the separately installed EVO PDF Server performs conversion. The relevant iOS, Android, or macOS platform project must support the package you selected.

Is port 40001 required for every EVO installation?

No. It is the destination shown in one common error. Verify the listening port in your server configuration and use the address reachable from the device or emulator.

Should I always increase the conversion delay?

No. Use a delay only when asynchronous content needs it. For variable load times, a page-controlled readiness trigger is more reliable; static pages can use the documented automatic or zero-delay mode.

Why does converting an HTML string still lose images?

An HTML string can still contain relative references. Supply the correct base URL and confirm that the EVO PDF Server—not just the mobile app—can fetch each asset.

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.

Quick 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.