it will be used for both passwords in this examplewe copied the pages of meetingminutes pdf to pdffilewriter object we encrypted the pdffilewriter with the password swordfishopened new pdf called encryptedminutes pdfand wrote the contents of the pdffilewriter to the new pdf before anyone can view encryptedminutes pdfthey'll have to enter this password you may want to delete the originalunencrypted meetingminutes pdf file after ensuring its copy was correctly encrypted projectcombining select pages from many pdfs say you have the boring job of merging several dozen pdf documents into single pdf file each of them has cover sheet as the first pagebut you don' want the cover sheet repeated in the final result even though there are lots of free programs for combining pdfsmany of them simply merge entire files together let' write python program to customize which pages you want in the combined pdf at high levelhere' what the program will do find all pdf files in the current working directory sort the filenames so the pdfs are added in order write each pageexcluding the first pageof each pdf to the output file in terms of implementationyour code will need to do the following call os listdir(to find all the files in the working directory and remove any non-pdf files call python' sort(list method to alphabetize the filenames create pdffilewriter object for the output pdf loop over each pdf filecreating pdffilereader object for it loop over each page (except the firstin each pdf file add the pages to the output pdf write the output pdf to file named allminutes pdf for this projectopen new file editor tab and save it as combinepdfs py step find all pdf files firstyour program needs to get list of all files with the pdf extension in the current working directory and sort them make your code look like the following#python combinepdfs py combines all the pdfs in the current working directory into into single pdf import pypdf os working with pdf and word documents