How can I convert a PDF form into a read-only PDF for sending it to my client?
Currently I am doing this by opening each of the PDF forms in Mac Preview and printing to a PDF. This is a very time consuming process.
I am already using some python scripts to automate some of my project tasks. Is there is a python module, that I can use to make these PDF forms read-only in place of having to open each of them in preview?
Here is code I use to merge PDFs. It merges great but the merged forms are still fillable forms. I need them to be read-only.
from PyPDF2 import PdfFileMerger
merger = PdfFileMerger()
merger.append(open("pdf1.pdf",'rb'))
merger.append(open("pdf2.pdf",'rb'))
merger.write("merged.pdf")