New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@redon2inc/strapi-plugin-pdf-creator

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@redon2inc/strapi-plugin-pdf-creator

Strapi Plugin to Generate PDF documents from the Admin panel.

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Strapi PDF Creator Plugin

Simple PDF generator based on a template and content.

⚠️ Compatibility with Strapi versions

This plugin was developed for the 5.X Strapi version. It has not been tested with the 4.X version. Use it at your own risk.

⚙️ Installation

To install the Strapi PDF Creator Plugin, simply run one of the following command:

npm install @redon2inc/strapi-plugin-pdf-creator
yarn add @redon2inc/strapi-plugin-pdf-creator

Functionality:

  • Generate buttons only appears on edit views.
  • Components single types and plugin content are not supported.
  • Functionality only works for the Super Admin role
  • Documents are flattened once generated.

Config

add the following to your config/plugin.ts

{
  'strapi-plugin-pdf-creator': {
    enabled: true,
    config: {
      permissions: 'none' // coming soon
    }
  },
}

Template requirements

  • The PDF template's form field names must match the names as the collection type. Only matching names will be used to populate the pdf.
  • TextFields use Text type fields.
  • Buttons will be replaced with Media type fields. Only when PDFs are flattened.
  • Checkboxes use Boolean type fields.
  • RadioGroups, OptionLists, Dropdowns fields use Enumeration type fields.

TODO:

  • Security: Allow other roles to generate documents
  • Add option to not flatten documents
  • Beautify date fields.
  • Settings function to validate template against schema.

👍 Contribute

  1. Add a GitHub Star to the project.

🧾 License

This plugin is licensed under the MIT License.

FAQs

Package last updated on 10 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc