PDFの保護解除

stackoverflow.com

!pip install pikepdf
import pikepdf

with pikepdf.open("data.pdf") as pdf:
    pdf.save("output.pdf")