From a950cef0bba74aa9d54ca19d29a09284ad841bd5 Mon Sep 17 00:00:00 2001 From: Tomas Rutkauskas Date: Mon, 9 Nov 2026 16:53:50 +0200 Subject: [PATCH] examples: convert ConvertAPI's demo page, not Wikipedia The URL-to-PDF example converted https://en.wikipedia.org/wiki/Data_conversion. Wikimedia answers ConvertAPI's renderer from the EU production nodes (the default v2.convertapi.com) with a 429 "Too many requests" page, so the result was a one-page PDF of that error, billed as a conversion. https://cdn.convertapi.com/public/files/demo is a page ConvertAPI owns; it converts to a two-page PDF with headings, a table, lists, a code block and an image. Co-Authored-By: Claude Opus 5.5 --- .../src/main/java/com/convertapi/examples/ConvertWebToPdf.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/src/main/java/com/convertapi/examples/ConvertWebToPdf.java b/examples/src/main/java/com/convertapi/examples/ConvertWebToPdf.java index bd77d4e..1fd4003 100644 --- a/examples/src/main/java/com/convertapi/examples/ConvertWebToPdf.java +++ b/examples/src/main/java/com/convertapi/examples/ConvertWebToPdf.java @@ -24,7 +24,7 @@ public static void main(String[] args) throws ExecutionException, InterruptedExc System.out.println("Converting WEB to PDF"); CompletableFuture result = ConvertApi.convert("html", "pdf", - new Param("url", "https://en.wikipedia.org/wiki/Data_conversion"), + new Param("url", "https://cdn.convertapi.com/public/files/demo"), new Param("filename", "web-example") );