slidedeckai.helpers.file_manager.validate_page_range#

slidedeckai.helpers.file_manager.validate_page_range(pdf_file: UploadedFile, start: int, end: int) tuple[int, None] | tuple[int, int][source]#

Validate the page range for the uploaded PDF file. Adjusts start and end to be within the valid range of pages in the PDF.

Parameters:
  • pdf_file – The uploaded PDF file.

  • start – The start page

  • end – The end page

Returns:

The validated page range tuple