Actions20
- AI Scrape Actions
- Analyze Sentiment Actions
- Convert to SQL Actions
- Generate Embedding Actions
- HTML to Any Actions
- Image Generation Actions
- Make Prediction Actions
- NSFW Detection Actions
- Object Detection Actions
- Process Image Actions
- Profanity Detection Actions
- Search Web Actions
- Spam Detection Actions
- Speech to Text Actions
- Spell Check Actions
- Summary Actions
- Text to Speech Actions
- Translate Actions
- Translate Image Actions
- Web Suggestion Actions
HTML to Any → HTML to Any
AI-generatedOverview
This node converts HTML content or a webpage URL into various output formats such as PNG, JPEG, WebP images, or PDF documents. It is useful for scenarios where you need to capture visual representations of web content, generate screenshots, or create PDFs from HTML sources. For example, it can be used to generate a PDF report from an HTML template or capture a screenshot of a webpage for documentation.
Use Case Examples
- Convert a webpage URL to a PNG screenshot for visual archiving.
- Generate a PDF document from raw HTML content for reporting purposes.
- Create a JPEG image from a webpage with custom viewport size and quality settings.
Properties
| Name | Meaning |
|---|---|
| Content Source | Select whether the input content is a URL or raw HTML to convert. |
| URL | The URL of the webpage to capture, required if Content Source is URL. |
| HTML | The raw HTML content to convert, required if Content Source is HTML. |
| Output Type | The desired output file format: PNG, JPEG, WebP, or PDF. |
| Quality | Quality of the output image (1-100), applicable only for JPEG and WebP formats. |
| Full Page | Capture the entire scrollable page instead of just the viewport. |
| Omit Background | Make the background transparent for PNG images. |
| Width | Width of the viewport in pixels. |
| Height | Height of the viewport in pixels. |
| Scale | Device scale factor controlling screenshot resolution, minimum 1. |
| Size Preset | Predefined screen size presets to use instead of manual width and height. |
| Is Mobile | Emulate a mobile device viewport and respect the meta viewport tag. |
| Dark Mode | Force the page to render in dark mode using CSS media feature. |
| Use Graphic Renderer | Enable WebGL, GPU acceleration, and other 3D APIs, which may impact performance. |
| Goto Options | Custom page-load behavior settings such as timeout and wait conditions in JSON format. |
| PDF Display Header Footer | Display header and footer in PDF output, applicable only for PDF type. |
| PDF Print Background | Print background graphics in PDF output, applicable only for PDF type. |
| PDF Page Range | Specify page ranges to print in PDF format (e.g., "1-5, 8, 11-13"), applicable only for PDF type. |
| Return Type | Format to return the output: Base64 string, URL, or binary data. |
| Request Options | Settings for batching, SSL certificate validation, proxy, and timeout for the request. |
Output
Binary
Binary output contains the generated image or PDF file data when Return Type is set to binary.
JSON
data- The main output data, which can be a Base64 string, URL, or binary depending on the Return Type setting.
Dependencies
- Requires an API key credential for authentication with the JigsawStack API service.
Troubleshooting
- Ensure either URL or HTML content is provided, but not both simultaneously, to avoid input validation errors.
- If the output is unexpectedly empty or corrupted, verify the viewport size, scale, and content source correctness.
- For PDF outputs, check that page range and header/footer options are correctly formatted to avoid rendering issues.
- Network or SSL errors may occur if proxy or SSL settings are misconfigured; adjust Request Options accordingly.