This project allows you to generate a PDF with UUID-based QR codes using customizable settings such as page size, QR code size, and position. You can visit the deployed page: CreateUuidPdf.
- Generate UUID-based QR codes.
- Customize the page size (width, height).
- Customize the QR code size.
- Set the QR code position (x, y) on the page.
- Supports multiple pages.
- Query parameters can be used to pre-fill form inputs.
You need to have Node.js and npm installed on your machine.
-
Clone this repository:
git clone https://github.com/otahi/createUuidPdf.git
-
Navigate to the project directory:
cd createUuidPdf
-
Install the dependencies:
npm install
-
Modify and Update:
npx webpack
-
Start a local server (you can use any local server tool like
live-server
orhttp-server
):npx live-server
-
Open the project in your browser:
http://127.0.0.1:8080
-
Customize the settings in the form and click "Generate PDF" to download the PDF with your QR codes.
You can pre-fill the form by using query parameters in the URL. The available parameters are:
numPages
: Number of pages (e.g.,?numPages=2
)qrSize
: QR code size in pixels (e.g.,?qrSize=150
)pageWidth
: Page width in millimeters (e.g.,?pageWidth=210
)pageHeight
: Page height in millimeters (e.g.,?pageHeight=297
)qrX
: QR code X position in millimeters (e.g.,?qrX=50
)qrY
: QR code Y position in millimeters (e.g.,?qrY=50
)
For example:
http://127.0.0.1:8080/
or
http://127.0.0.1:8080/?numPages=2&qrSize=150&qrX=50&qrY=50
This project is licensed under the MIT License.