The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/ee/packages/pdf-worker
rocketchat-github-ci 096e991d25 Release 7.7.0-rc.1 7 months ago
..
.storybook chore: bump stylelint and remove unused css (#33887) 1 year ago
src fix: PDF Worker markdown processing (#35705) 9 months ago
.babelrc.json chore: Recover storybooks (#33565) 1 year ago
.eslintignore chore(deps): Safe upgrades (#28867) 3 years ago
.eslintrc.json chore(lint): Reinforce ESLint for React (#29857) 2 years ago
CHANGELOG.md Release 7.7.0-rc.1 7 months ago
README.md [NEW] [EE] PDF Chat transcript for Omnichannel conversations (#27572) 3 years ago
jest.config.ts upgrade pdfworker 1 year ago
package.json Release 7.7.0-rc.1 7 months ago
test.pdf test: Move Jest configuration to a package of presets (#32802) 1 year ago
tsconfig.build.json chore: Recover storybooks (#33565) 1 year ago
tsconfig.json chore: Recover storybooks (#33565) 1 year ago

README.md

@rocket.chat/pdf-worker

This package is a PDF worker for Rocket.Chat. It allows for the rendering of PDFs within the Rocket.Chat application. @react-pdf/renderer is used as the PDF renderer, as it provides a React-based solution for rendering PDFs, making it easy to integrate into the existing React codebase of Rocket.Chat.

Installation

To install this package, you can use yarn:

yarn add @rocket.chat/pdf-worker

yarn install

Usage

To use this package, you will need to import it in your project and use the provided PDF renderer.

import { PdfWorker } from '@rocket.chat/pdf-worker';

const PdfWorker = new PdfWorker();
PdfWorker.render('template-mode');

Development

If you wish to contribute to the development of this package, you can clone the repository and run the following commands:

yarn dev

This will start a development server and allow you to make changes to the code.

Testing

You can run the tests for this package with the following command:

yarn test

Storybook

You can also run Storybook to see the components in action and debug during development:

yarn storybook

This will start a development server and allow you to see the different components and their states. It also provides a visual representation of the components and how they will look in the final application, making it easy to debug and develop the templates.

Additional Note

Please refer to the official documentation of @rocket.chat/pdf-worker for more information about this package.