1.1.2 β€’ Published 8 months ago

@easypdf/react v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

EasyPdf React

Features

  • 🎨 Visual Mode: Design PDFs using React components with real-time preview
  • πŸš€ Programmatic Mode: Generate PDFs dynamically with programmatic content creation
  • πŸ“ Rich Text Support: Full support for text formatting, lists, tables, and more
  • πŸ–ΌοΈ Image Support: Include images in your PDFs with automatic optimization
  • 🎯 Page Breaking: Smart page breaking algorithm for optimal content flow
  • πŸ’… Styling: Full CSS support including flexbox and grid layouts
  • 🎭 Themes: Built-in themes and support for custom themes
  • πŸ“ Headers & Footers: Customizable headers and footers
  • πŸ’§ Watermarks: Add text or image watermarks
  • πŸ“± Responsive: Adapts to different page sizes and orientations
  • ⚑️ Non-Blocking: Smooth PDF generation that doesn't freeze the browser UI

Installation

npm install @easypdf/react
# or
yarn add @easypdf/react

Quick Start

import { EasyPdfProvider, EasyPdf } from "@easypdf/react";

// Initialize EasyPdf
const easyPdf = EasyPdf.initialize();

function App() {
  return (
    <EasyPdfProvider instance={easyPdf}>
      <YourApp />
    </EasyPdfProvider>
  );
}

Basic Usage

import { useEasyPdf } from "@easypdf/react";

function PDFGenerator() {
  const { pdfRef, downloadPDF } = useEasyPdf();

  return (
    <div>
      <button onClick={() => downloadPDF(pdfRef)}>Download PDF</button>

      <div ref={pdfRef}>
        <h1>Hello, PDF!</h1>
        <p>This content will be converted to PDF.</p>
      </div>
    </div>
  );
}

Documentation

Visit our documentation for detailed guides and examples.

Examples

Contributing

We welcome contributions! Please see our Contributing Guide for details.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

Author

Acknowledgments

Special thanks to all our contributors and the open source community.

1.1.2

8 months ago

1.1.1

11 months ago

1.1.0

11 months ago

1.0.11

11 months ago

1.0.10

11 months ago

1.0.9

11 months ago

1.0.8

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago