CLI and library to visualize your PDF generation in real-time.
For more information on how to use pdf-make-previewer, check out the documentation.
Run the following command to set up pdf-make-previewer in your project:
npx pdf-make-previewer init
This will guide you through the setup process and generate a configuration file for your project.
In the configuration file, import your PDF generation logic. Heres 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
To start using pdf-make-previewer, run:
npm run preview
This 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 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.
Licensed as MIT open source.