G
YouTube TikTok Games
Skip to content

Examples: convert ConvertAPI's demo page instead of Wikipedia - #127

Merged
tomasr78 merged 1 commit into
mainfrom
examples-demo-page-url
Nov 9, 2026
Merged

tomasr78 merged 1 commit into
mainfrom
examples-demo-page-url

Conversation

@tomasr78

@tomasr78 tomasr78 commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

The URL-to-PDF example converted https://en.wikipedia.org/wiki/Data_conversion. Wikimedia's edge answers ConvertAPI's renderer from the EU production nodes (the default v2.convertapi.com) with a 429 "Too many requests. Please email noc@wikimedia.org" page, so anyone who ran the example got a one-page PDF of that error page, billed as a conversion.

The example now converts https://cdn.convertapi.com/public/files/demo, a page ConvertAPI owns and keeps unchanged for examples and tests. It sits next to the demo.pdf, demo.docx and other sample files, loads no scripts or third-party resources, and converts to a two-page PDF with headings, a table, lists, a code block and an image.

Changed

examples/convert_url_to_pdf.js and examples/get_result_file_stream.js: the Url value. Nothing else.

Checked

Production html -> pdf with the example's parameters (Url=https://cdn.convertapi.com/public/files/demo, FileName=web-example) on 2026-11-09:

Host Pages Words Wikimedia error text
v2.convertapi.com (EU) 2 294 none
us-v2.convertapi.com (US) 2 294 none

Both PDFs are Letter, titled "ConvertAPI demo page", with demo.jpg embedded. The example itself was not re-run: only its URL string changed, and the call above uses the same converter and parameters.

🤖 Generated with Claude Code

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 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 9, 2026 15:24

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

There are no active review issues with the example URL updates intended to avoid Wikimedia rate-limit pages.

No open issues 🎉

What changed in this PR

Updates both URL-to-PDF examples to use ConvertAPI’s demo page instead of Wikipedia, avoiding Wikimedia rate-limit error pages in generated PDFs.

Changes:

  • Replaces the source URL with https://cdn.convertapi.com/public/files/demo in both examples.
  • Leaves conversion parameters and all other code unchanged.
File Description
examples/​get_result_file_stream.js Uses the ConvertAPI demo URL for the streaming example.
examples/​convert_url_to_pdf.js Uses the ConvertAPI demo URL for the URL-to-PDF example.

Review effort: Balanced

@tomasr78
tomasr78 merged commit 46c88c2 into main Nov 9, 2026
5 checks passed
@tomasr78
tomasr78 deleted the examples-demo-page-url branch November 9, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants