Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Barcode type PDF417 #435

Open
Byevenes opened this issue Feb 28, 2024 · 2 comments
Open

Support Barcode type PDF417 #435

Byevenes opened this issue Feb 28, 2024 · 2 comments

Comments

@Byevenes
Copy link

Is your feature request related to a problem? Please describe.

We need to create a bar code with this format pdf 417

Describe the solution you'd like

in the designer page add new type pdf 417 into the text, qr, signature, etc ...

Describe alternatives you've considered

N/A

Additional context

No response

@vpn-dev
Copy link

vpn-dev commented Mar 18, 2024

Hey @Byevenes , Can you explain the specific details of this feature, what you want to acheive? , I believe you want to add a schema for generating barcode in PDF417 format, where you can put text or data thats needs to be encoded into barcode.

@peteward peteward changed the title Support PDF 417 for new field Support Barcode type PDF417 Mar 31, 2024
@peteward
Copy link
Collaborator

pdf417 is supported by bwip-js, the barcode generator that is included in pdfme, so this is easily achievable.

You could test this by forking the repo and adding the type pdf417 to this list:

export const BARCODE_TYPES = [
  'qrcode',
  'japanpost',
  'ean13',
  'ean8',
  'code39',
  'code128',
  'nw7',
  'itf14',
  'upca',
  'upce',
  'gs1datamatrix',
] as const;

Further changes would be required to the barcode schema including the propPanel, but you should be able to work it out if you have some JS experience.

Let us know how you get on. This could either be implemented as a separate plugin, or possibly a PR to extend the existing barcode one if the code changes are smaller.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants