Categories

PDF Vector Shapes Demo

Generate a PDF showcasing rectangle, circle, polygon, Bezier curve, and gradient simulation

Create a one-page vector graphics demo PDF using pdf-lib.

Includes:

  • Rectangle and circle samples
  • Polygon with adjustable sides
  • Cubic Bezier curve path
  • Gradient-like strip simulation

Example Results

2 examples

Vector Shapes Default Showcase

A4 portrait with grid, 6-sided polygon and 40-step gradient

vector-shapes-demo-example1.pdf View File
View input parameters
{ "pageSize": "A4", "landscape": false, "showGrid": true, "polygonSides": 6, "gradientSteps": 40, "backgroundColor": "#F7F9FC", "primaryColor": "#2F6FED", "secondaryColor": "#13A89E", "accentColor": "#F15B3A" }

Vector Shapes Landscape Variant

Letter landscape variant with no grid and denser gradient

vector-shapes-demo-example2.pdf View File
View input parameters
{ "pageSize": "Letter", "landscape": true, "showGrid": false, "polygonSides": 9, "gradientSteps": 80, "backgroundColor": "#FFF7F2", "primaryColor": "#3A52D1", "secondaryColor": "#00A78F", "accentColor": "#FF5A36" }

Key Facts

Category
Document Tools
Input Types
select, checkbox, number, color
Output Type
file
Sample Coverage
4
API Ready
Yes

Overview

Create a one-page vector graphics demo PDF using `pdf-lib`. **Includes:** - Rectangle and circle samples - Polygon with adjustable sides - Cubic Bezier curve path - Gradient-like strip simulation

When to Use

  • Use it when you need to generate pdf content quickly in the browser.
  • Helpful for document tools workflows that need repeatable inputs and fast results.
  • Useful when you want to test input and output behavior before integrating the workflow elsewhere.

How It Works

  • Provide Page Size, Landscape, Show Grid, Polygon Sides as input to the tool.
  • The tool processes the request and returns a file result.
  • For repeatable workflows, use the API endpoint shown on the page after validating the result interactively.

Use Cases

Generate pdf data during debugging or QA.
Validate expected output before using the API or automation flows.
Compare small variations of input to understand output differences quickly.

Try with Samples

pdf

Related Hubs

FAQ

What does PDF Vector Shapes Demo do?

PDF Vector Shapes Demo helps you generate pdf content online without setting up a separate local script or app.

When should I use this tool?

Use it when you need a quick generate workflow, want to verify output, or need a browser-based utility for document tools tasks.

Can I try this tool with sample data?

Yes. Try short representative inputs first, then move to larger or more complex cases once the output looks correct.

What inputs does PDF Vector Shapes Demo accept?

PDF Vector Shapes Demo accepts Page Size, Landscape, Show Grid, Polygon Sides.

Is there an API for PDF Vector Shapes Demo?

Yes. The tool page includes an API endpoint so you can move from manual testing to scripted usage.

API Documentation

Request Endpoint

POST /en/api/tools/pdf-vector-shapes-demo

Request Parameters

Parameter Name Type Required Description
pageSize select No -
landscape checkbox No -
showGrid checkbox No -
polygonSides number No -
gradientSteps number No -
backgroundColor color No -
primaryColor color No -
secondaryColor color No -
accentColor color No -

Response Format

{
  "filePath": "/public/processing/randomid.ext",
  "fileName": "output.ext",
  "contentType": "application/octet-stream",
  "size": 1024,
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
File: File

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-pdf-vector-shapes-demo": {
      "name": "pdf-vector-shapes-demo",
      "description": "Generate a PDF showcasing rectangle, circle, polygon, Bezier curve, and gradient simulation",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=pdf-vector-shapes-demo",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

If you encounter any issues, please contact us at [email protected]