Use Cases
Testing & Browser Support
The package targets modern browsers supported by Vue and the underlying PDF/browser APIs.
Browser Support
The package targets modern browsers supported by Vue and the underlying PDF/browser APIs.
Recommended testing:
- Chromium / Chrome / Edge
- Firefox
- WebKit
- Safari when Safari is important to production users
Playwright WebKit tests the WebKit engine; it is not identical to testing the Safari application itself.
Testing
The project includes unit/integration and browser E2E coverage for major workflows, including:
- PDF generation
- preview Blob creation
- download
- print flow
- rendering mode routing
- selectable-text generation
- PDF link annotations
- pagination and page-break mapping
- metadata
- compression
- security
- protected/unprotected PDFs
- header page targeting
- selective header spacing
- optional header/footer logos
- custom logo sizing
- header/footer HTML rendering
- selectable header/footer text
- footer page numbering
- per-page watermark targeting
- progress stages
- page-aware
currentPage/totalPages - cooperative cancellation and recovery
- 10 / 25 / 50 / 100-page large-document regression fixtures
- selectable repeated-image caching
- page-bounded Canvas image-heavy rendering
- temporary rendering DOM/snapshot cleanup
Because PDF rendering is CPU-heavy, a small Playwright worker count is recommended:
npx playwright test --workers=2
Because large PDF rendering is CPU- and memory-intensive, use a single worker for heavy stress/regression suites:
npx playwright test --workers=1
Run the full release checks before publishing:
npm run type-check
npm run build
npm run build:demo
npm run test:unit:run
npx playwright test e2e/generate-pdf.spec.ts --workers=2
npm publish --dry-run
