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

Add option to customize height and width of the certificate #26

Open
4 tasks
jatinkatyal13 opened this issue Jul 24, 2020 · 0 comments
Open
4 tasks

Add option to customize height and width of the certificate #26

jatinkatyal13 opened this issue Jul 24, 2020 · 0 comments

Comments

@jatinkatyal13
Copy link
Contributor

Currently, the certificates generated have the fixed height and width of an A4 size paper. Users should be able to store height and width in pixels beside each layout.

To start

ToDo

Backend

  • In file src/services/layouts/schema.js change UPDATE and CREATE schema to accept height and width in the body
  • In file src/plugins/worker/handler.js:82 update the pdf document opts to use the height and width from the layout and use the current as default

Frontend

  • In file frontend/components/layouts/LayoutEditor.js update the component to incorporate height and width input.
  • Also change the ASPECT RATIO of the preview on the right when the user changes height and width.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant