How to verify if the PyMuPDF Pro license is applied?

Hello,
I’d like to ask how to verify whether the PyMuPDF Pro license is applied.
I’d like to check it at the beginning of the source code execution.

Hi @PS_JSH - this is visible from the command line prompt when you run your Python code to unlock PyMuPDF Pro:

So when you do e.g.

import pymupdf.pro
pymupdf.pro.unlock(“your_key”)

Then in the command line you will see a message, e.g.:

PyMuPDFPro: Trial Mode, 55 days 8 hours left.

Once you see this message then you will know how the license is applied.

1 Like