ScreenshotOne icon

ScreenshotOne

Render PDFs, screenshots, scrolling screenshots, and short videos using ScreenshotOne

PDF

AI-generated

Overview

This node uses the ScreenshotOne API to render PDFs from various input sources such as URL, HTML, or Markdown. It supports customization options like landscape orientation and printing background graphics. The node is useful for automating PDF generation from web content or markup, for example, creating reports, invoices, or documentation in PDF format.

Use Case Examples

  1. Generating a PDF from a given URL with landscape orientation enabled.
  2. Creating a PDF from raw HTML content with background graphics printed.

Properties

Name Meaning
Source The type of input to render, which can be URL, HTML, or Markdown.
URL The URL to render as PDF (required if Source is URL).
HTML The HTML content to render as PDF (required if Source is HTML).
Markdown The Markdown content to render as PDF (required if Source is Markdown).
Response Type Determines the format of the rendering result, such as JSON with URL, binary base64 string, or empty response.
Landscape Whether to render the PDF in landscape orientation.
Print Background Whether to include background graphics in the PDF print.
Cache Enable or disable caching for the request to optimize repeated renders.
Cache TTL (Seconds) Time to live for cache in seconds, controlling how long the cached result is valid.
Cache Key Custom cache key to uniquely identify the cached request.

Output

JSON

  • json - The JSON response containing the rendering result, such as the URL or metadata of the generated PDF.

Dependencies

  • ScreenshotOne API
  • An API key credential for authentication

Troubleshooting

  • Common issues include unsupported source types or operations, which throw errors indicating the unsupported value.
  • Errors related to authentication failures with the ScreenshotOne API may occur if credentials are missing or invalid.
  • Network or API request failures can cause errors; ensure network connectivity and valid API endpoint configuration.

Links

Discussion