Anyway, now, the mainly remaining task is my rectangle editor cannot save the drawings for some reason. After reopening the pdf doc the drawings are gone. I receive this error "Error when saving the document: this.createNewAppearanceStream is not a function
" from app.js