Marthee commited on
Commit
5e8acd5
·
verified ·
1 Parent(s): c154ce9

Update findspecsv1.py

Browse files
Files changed (1) hide show
  1. findspecsv1.py +2 -2
findspecsv1.py CHANGED
@@ -527,7 +527,7 @@ def extract_section_under_header(pdf_path, target_header_LIST):
527
  zoom = 200
528
  zoom_str = f"{zoom},{left},{top}"
529
  print('zoooom',zoom_str)
530
- pageNumberFound = pageNum + 1
531
  params = {
532
  'pdfLink': pdf_path, # Your PDF link
533
  'keyword': heading_to_search, # Your keyword (could be a string or list)
@@ -541,7 +541,7 @@ def extract_section_under_header(pdf_path, target_header_LIST):
541
 
542
  # Correctly construct the final URL with page and zoom
543
  zoom_str = f"{zoom},{left},{top}"
544
- final_url = f"{baselink}{encoded_link}#page={str(pageNumberFound)}&zoom={zoom_str}"
545
  print(final_url)
546
  # Get current date and time
547
  now = datetime.now()
 
527
  zoom = 200
528
  zoom_str = f"{zoom},{left},{top}"
529
  print('zoooom',zoom_str)
530
+ pageNumberFound = page_num +1
531
  params = {
532
  'pdfLink': pdf_path, # Your PDF link
533
  'keyword': heading_to_search, # Your keyword (could be a string or list)
 
541
 
542
  # Correctly construct the final URL with page and zoom
543
  zoom_str = f"{zoom},{left},{top}"
544
+ final_url = f"{baselink}{encoded_link}#page={str(page_num)}&zoom={zoom_str}"
545
  print(final_url)
546
  # Get current date and time
547
  now = datetime.now()