Spaces:
Runtime error
Runtime error
Update findspecsv1.py
Browse files- findspecsv1.py +2 -1
findspecsv1.py
CHANGED
|
@@ -538,7 +538,8 @@ def extract_section_under_header(pdf_path, target_header_LIST):
|
|
| 538 |
encoded_link = '&'.join([f"{key}={value}" for key, value in encoded_params.items()])
|
| 539 |
|
| 540 |
# Correctly construct the final URL with page and zoom
|
| 541 |
-
|
|
|
|
| 542 |
|
| 543 |
# Get current date and time
|
| 544 |
now = datetime.now()
|
|
|
|
| 538 |
encoded_link = '&'.join([f"{key}={value}" for key, value in encoded_params.items()])
|
| 539 |
|
| 540 |
# Correctly construct the final URL with page and zoom
|
| 541 |
+
zoom_str = f"{zoom},{left},{top}"
|
| 542 |
+
final_url = f"{baselink}{encoded_link}#page={str(pageNumberFound)}&zoom={zoom_str}"
|
| 543 |
|
| 544 |
# Get current date and time
|
| 545 |
now = datetime.now()
|