code: def get_full_page_box_list_assigning_media_and_crop(input_doc, quiet=False):
      
  
      full_page_box_list = []
      rotation_list = []
  
      if args.verbose and not quiet:
          print("\nOriginal full page sizes, in PDF format (lbrt):")
  
      for page_num in range(input_doc.getNumPages()):
  
          # Get the current page and find the full-page box.
          curr_page = input_doc.getPage(page_num)
          full_page_box = get_full_page_box_assigning_media_and_crop(curr_page)
  
          if args.verbose and not quiet:
              # want to display page num numbering from 1, so add one
              print("\t"+str(page_num+1), "  rot =",
                    curr_page.rotationAngle, "\t", full_page_box)
  
          # Convert the RectangleObject to floats in an ordinary list and append.
          ordinary_box = [float(b) for b in full_page_box]
          full_page_box_list.append(ordinary_box)
  
          # Append the rotation value to the rotation_list.
          rotation_list.append(curr_page.rotationAngle)
  
      return full_page_box_list, rotation_list
docs: Get a list of all the full-page box values for each page.  The argument
      input_doc should be a PdfFileReader object.  The boxes on the list are in the
      simple 4-float list format used by this program, not RectangleObject format.