PDFCrowd Blog

Python, Node.js, PHP and Ruby API clients updated

We have released new versions of our API client libraries: Python 7.0.1, Node.js 7.0.2, PHP 6.7.2 and Ruby 6.7.3.

Changed:

  • All four clients: status and reason codes parsed from API errors now return numbers instead of strings.

Fixed:

  • Ruby: correctly retry HTTP 502 and 503 errors when retries are enabled.

When upgrading, update any string comparisons against getStatusCode() or getReasonCode() to use numbers—for example, 400 instead of "400". Existing values for missing codes remain unchanged.

Node.js SDK 7.0.0: Async/Await and TypeScript

We have released version 7.0.0 of our Node.js API client library.

New:

  • Promises and async/await: Conversion methods return a Promise when called without a callback. Receive the complete output as a Buffer, or await successful completion of a file conversion.
  • TypeScript support: Bundled type declarations provide type checking and editor completion.
  • ES module imports: Use default or named imports alongside the existing CommonJS require() syntax.
  • Output streaming: New Promise-based streaming methods let you process large results without collecting the entire output in memory.

WebSave 1.4.1 Released

WebSave 1.4.1 brings three improvements to saving web pages as PDF or images:

  • Reliable initialization with async. WebSave now waits until the page’s HTML is ready before initializing buttons. This fixes buttons being missed when the script loads early. Scripts loaded after the page is ready initialize immediately.
  • Support for pages without div elements. Content-mode conversions now work correctly on pages that contain no <div> elements.
  • Compressed HTML uploads. In content mode, WebSave uses gzip compression when the browser supports it, reducing the amount of HTML data uploaded. If compression is unavailable or fails, WebSave automatically uploads the original HTML.

For new integrations or updates, use:

<script src="https://edge.pdfcrowd.com/websave/1.4.1/websave.min.js" async></script>

Existing button configuration and callbacks continue to work without changes.

API clients updated to 6.7.1 (Python to 6.7.3)

We have released version 6.7.1 of our API client libraries and version 6.7.3 of our Python client.

Fixed:

  • All API clients: clear previous conversion inputs when reusing a client, while preserving conversion settings and auxiliary files
  • All API clients: improve file cleanup and error reporting after failed conversions and I/O operations
  • Node.js: preserve binary stream data and non-ASCII filenames during uploads
  • Node.js: invoke built-in file callbacks once, after the output file is closed, and keep concurrent conversions independent
  • Go: correctly report PDF conversion failures, output write errors, incomplete writes, and file close errors
  • Java: preserve original error causes and API error details when wrapping exceptions

Discontinuing ChatGPT to PDF

We’re discontinuing the ChatGPT to PDF by PDFCrowd extension, effective immediately.

The extension relies on the structure of ChatGPT’s web interface. That structure changes often, which can break compatibility without warning. Keeping the extension working now takes more development and maintenance than we can provide while meeting our reliability standards.

We will not release further updates or provide support. If you already use the extension, it may stop working without notice.

Thank you for using the extension, sharing your feedback, and supporting the project.

API Clients 6.7.0 and WordPress Plugins 4.6.0

We have released version 4.6.0 of our WordPress Plugin and 6.7.0 of our API client libraries.

New:

  • HTML to PDF API: addAttachment() — embed one or more local files as attachments in the output PDF (also available in the PDF to PDF and Image to PDF APIs)
  • HTML to PDF API: setConformance() — produce the output PDF at a specified PDF/A conformance level for long-term archiving
  • HTML to PDF API: setTaggedPdf() — create a tagged PDF for accessibility and content reflow
  • Save as PDF WP plugin: new "Attachments", "Conformance", and "Tagged PDF" options