Friday, 20 October 2023

python program horizontal stapled booklet integration in google doc

I have a Google doc with around 60 pages, it's in vertical scrolling format. I am thinking of converting this doc into another doc that is printable horizontally such that it can be stapled in the middle.

mypage_content_vertical = [
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16
]

horizontal output needs to be:

page 1: 
 front:
   first-half: page 2(start to center)
   second-half: page 15(center to end)
 rear:
   first-half: page 16(start to center)
   second-half: page 1(center to end)

page 2:
 front:
   first-half: page 4(start to center)
   second-half: page 13(center to end)
 rear:
   first-half: page 14(start to center)
   second-half: page 3(center to end)
....

I can write the Python program that would do this, but I am not sure how I can integrate it into Google Docs, as manually updating the doc can be error-prone and tedious.

The Google doc is in a horizontal layout with Format->Columns set to 2 parts split in the middle

Any other tools or methods that can transform the vertical pages into horizontal ones such that they can be stapled in the middle of the horizontal page would be appreciated.



from python program horizontal stapled booklet integration in google doc

No comments:

Post a Comment