Package Exports
- pdf-make-previewer
- pdf-make-previewer/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pdf-make-previewer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
PDF Make Previewer
CLI and library to visualize your PDF generation in real-time.
β¨ Features
- π Real-time PDF Preview: Visualize PDF changes as you modify your generation logic without needing to regenerate files manually.
- π Easy CLI Setup: Quickly configure and preview your PDFs using the CLI.
- βοΈ Customizable Config: Define your PDF generation logic in a dedicated config file.
- π Lightweight: Simple and focused tool for PDF previewing during development.
π Documentation
For more information on how to use pdf-make-previewer, check out the documentation.
π Quick Start
Run the following command to set up pdf-make-previewer in your project:
npx pdf-make-previewer initThis will guide you through the setup process and generate a configuration file for your project.
π Configuration
In the configuration file, import your PDF generation logic. Hereβs an example:
// pdf-preview.config.ts
import type { PdfPreviewerConfig } from "pdf-make-previewer"
import { generatePDF } from './your-pdf-functions';
const config: PdfPreviewerConfig = {
renderPdfPreview: () => generatePDF({name: 'John Doe', age: 30}),
}
export default configπ Run the Preview
To start using pdf-make-previewer, run:
npm run previewThis will open a local server where you can instantly preview any changes made to your PDF generation logic. Make your edits, save the file, and the preview will automatically update in real time. πβ¨
π€ Contributions
Contributions are welcome. If you find an issue or have an idea to improve react-component-screenshot, feel free to open an issue or submit a pull request. π
π License
Licensed as MIT open source. π