pyPDF merging and displaying as httpresponse through django
问题 I'm having trouble incorporating pyPDF logic to merge two pdf files into my django site. I have written code that works to merge files when run in a python file on the local server(but I need to explicitly identify which files to merge: from pyPdf import PdfFileReader, PdfFileWriter output = PdfFileWriter() input1 = PdfFileReader(file("abc_form0.pdf", "rb")) input2 = PdfFileReader(file("abc_form1.pdf", "rb")) total_pages = input1.getNumPages() total_pages1 = input2.getNumPages() for page in