Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed .installer.sh.swp
Binary file not shown.
Binary file modified src/.DS_Store
Binary file not shown.
Binary file removed src/.termpdf_unstable.py.swp
Binary file not shown.
7 changes: 5 additions & 2 deletions src/termpdf_unstable.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ def display_search_results(doc, total_pages, keyword, start_page):
# Placeholder for opening the page; implement logic here
elif choice == 'r':
return start_page
# Testing option
# display_current_page(doc, page_num, total_pages, keyword)

return found_pages[-1] # Return the last found page

Expand Down Expand Up @@ -132,9 +134,10 @@ def display_pdf(pdf_filename):
doc.close()

def display_about():
print("*************************************************")
print("------------------------------------------------------------------")
print("******************************************************************")
print("TermPDF Viewer - view and navigate PDF files within the terminal.")
print("*************************************************")
print("------------------------------------------------------------------")
print("* Simple: TermPDF Viewer is a Python program that enables users to ")
print("* view and navigate PDF files directly within the terminal.")
print("*************************************************")
Expand Down