Is a simple pdf file generator in the golang programming language. programs that are supported from the simple program code above
- create a qr-code (.png)
- add a icon to the qr-code
- create a pdf file from an image file
- add metadata to pdf files (Tittle, Author, Description, Keywords)
- modify pdf producer
- encrypt and decrypt pdf files
- add an image (qr-code) to the pdf file
- convert docx to pdf using Ghostscript
This section should list any major frameworks that you built your project using. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.
Before we get started, it's important to know that we run this code just from unit testing. So i didn't write a code to main.go So, let start it.
You can start the first step from 2 different methods :
- Generate PDF file first, or
- Generate QR Code first.
If you want to use method number 1, you just need to run unit testing in serive/pdf/pdf_test.go
directory.
Similarly, if you want to use method number 2, you just need to run unit testing in serive/qrcode
directory.
But, we have something different in second method, you need to generetae QR Code first by running generate_new_qr_code_test.go
first, and than generate_add_icon_to_qr_code_test.go
Hopefully, it can be easily understood and useful. Thank you~