# PDF Vector Shapes Demo

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

> Canonical page: https://elysiatools.com/en/tools/pdf-vector-shapes-demo

- **Category:** Document Tools

- **Keywords:** pdf, vector, shapes, bezier, polygon, gradient, pdf-lib

## 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

## Inputs

- **Page Size** (select)
- **Landscape** (checkbox)
- **Show Grid** (checkbox)
- **Polygon Sides** (number)
- **Gradient Steps** (number)
- **Background Color** (color)
- **Primary Color** (color)
- **Secondary Color** (color)
- **Accent Color** (color)

## When to use

- When you need to verify PDF rendering capabilities for vector-based graphics.
- When creating technical documentation that requires precise geometric illustrations.
- When you want to test how different page layouts and color schemes appear in a generated PDF.

## How it works

- Select your preferred page size and orientation settings.
- Customize the visual parameters, such as the number of polygon sides and gradient density.
- Define your brand or project color palette using the primary, secondary, and accent color pickers.
- Click generate to produce a downloadable PDF file containing the rendered vector elements.

## Use cases

- Creating visual test patterns for PDF printing and display software.
- Generating custom geometric assets for digital reports or presentations.
- Prototyping document layouts with specific color branding and vector elements.

## Frequently asked questions

### What file format does this tool produce?

This tool generates standard PDF files.

### Can I adjust the complexity of the polygon?

Yes, you can set the number of polygon sides between 3 and 12.

### How are gradients created?

Gradients are simulated by rendering multiple color steps, which you can configure between 8 and 120 steps.

### Is it possible to remove the background grid?

Yes, you can toggle the 'Show Grid' option off in the configuration settings.

### What library powers this PDF generation?

This tool utilizes the pdf-lib library to render vector shapes directly into the document.

## Related tools

- [Fitness Workout PDF Generator](https://elysiatools.com/en/tools/fitness-workout-pdf-generator): Generate a printable workout-plan PDF from JSON or CSV data with exercise tables, progress boxes, and optional QR video links
- [PDF Brand Guidelines](https://elysiatools.com/en/tools/pdf-brand-guidelines-pdf): Generate a brand guidelines PDF with logo, palette, typography, and spacing rules
- [PDF Financial Report](https://elysiatools.com/en/tools/pdf-financial-report): Generate a financial report PDF with balance sheet, income statement, and merged table cells
- [PDF Page Master Template (PDF页面母版模板)](https://elysiatools.com/en/tools/pdf-page-master-template): Generate a master page PDF with margins, grid, header/footer zones, and column guides
- [PDF QR Barcode Labels](https://elysiatools.com/en/tools/pdf-qr-barcode-labels): Batch generate printable labels with QR code and barcode in a single PDF
- [PDF Checklist Form](https://elysiatools.com/en/tools/pdf-checklist-form): Generate printable checklist/task form PDF with pseudo checkboxes and text
- [PDF Grade Report Card](https://elysiatools.com/en/tools/pdf-grade-report-card): Generate multi-page grade report cards with student info, scores, and comments
- [PDF Invoice Generator](https://elysiatools.com/en/tools/pdf-invoice-generator): Generate a branded invoice PDF from structured line items

## Samples

- [PDF Samples](https://elysiatools.com/en/samples/pdf-samples): Generated PDF samples from tools dated 2026-02-01 to 2026-02-10
- [Markdown Slide Deck Samples](https://elysiatools.com/en/samples/md-slide-deck-to-pdf): Remark/Marp style Markdown slide decks for testing PDF export layouts
- [Contentful Cloud-based CMS Samples](https://elysiatools.com/en/samples/contentful-samples): Comprehensive Contentful examples covering content modeling, API integration, webhooks, migrations, and frontend integration patterns
- [Cypress E2E Testing Framework](https://elysiatools.com/en/samples/cypress-testing): Comprehensive Cypress end-to-end testing examples including test setup, page object models, API testing, visual regression testing, and advanced E2E patterns for modern web applications

## Related content

- [Printable PDF Layout and Template Generators](https://elysiatools.com/en/hubs/pdf-generate): Create text documents, multi-column layouts, page masters, certificates, posters, storyboards, comics, and branded PDF assets ready for review.
