Does not work with version 7.0.1
The problem is probably in the file "plot.py" on line 174: https://gitlab.com/dennevi/Board2Pdf/-/blob/main/plot.py#L174
layer_names[pcbnew.BOARD_GetStandardLayerName(i)] = i
There is no "BOARD_GetStandardLayerName" function in the pcbnew API
Thank you for the correction.