Remove use of begin_edit and end_edit from makePDF.py