Install the package using your distribution's package manager. In case your distribution is not listed there, please compile the source code. It is not recommended to install the binary compiled for another distribution/version, as it may have been compiled with different settings/libraries. For an example of this kind of issue see: https://github.com/pdfkit/pdfkit/issues/232.
Run the installer and tell PDFKit where it is.
Run the package.
You can also compile from source.