Marthee commited on
Commit
25c148f
·
verified ·
1 Parent(s): c6f3e06

Update Doors_Schedule.py

Browse files
Files changed (1) hide show
  1. Doors_Schedule.py +2 -2
Doors_Schedule.py CHANGED
@@ -595,8 +595,6 @@ def modify_author_in_pypdf2(pdf_bytes, new_authors):
595
  if "/Annots" in page: #Check if annotations exist
596
  for annot in page["/Annots"]:
597
  annot_obj = annot.get_object()
598
- if len(new_authors) == 0:
599
- break
600
  # Assign each annotation a unique author
601
  if author_index < len(new_authors):
602
  annot_obj.update({"/T": TextStringObject(new_authors[author_index])})#Convert to PdfString
@@ -658,6 +656,8 @@ def mainRun(schedule, plan, searcharray):
658
  widths = get_widths_bb_format(cleaned_width, kelma)
659
  if selected_columns_new.shape[1] == 2:
660
  widths = []
 
 
661
  final_pdf_bytes= process_pdf(plan, "final_output_width.pdf", new_data, widths)
662
 
663
 
 
595
  if "/Annots" in page: #Check if annotations exist
596
  for annot in page["/Annots"]:
597
  annot_obj = annot.get_object()
 
 
598
  # Assign each annotation a unique author
599
  if author_index < len(new_authors):
600
  annot_obj.update({"/T": TextStringObject(new_authors[author_index])})#Convert to PdfString
 
656
  widths = get_widths_bb_format(cleaned_width, kelma)
657
  if selected_columns_new.shape[1] == 2:
658
  widths = []
659
+ for j in range(len(locations)):
660
+ widths.append("Dimensions not found in schedule")
661
  final_pdf_bytes= process_pdf(plan, "final_output_width.pdf", new_data, widths)
662
 
663