How to Solve NameError: name 'Optimizer' is not defined -- PDFNetPython3

Solution: Import the 'Optimizer' module

To Solve the error, add the following line to the top of your code.

from PDFNetPython3 import Optimizer

 

For more information:
Python PDFNetPython3 Optimizer