attachment
attachment
attachment
attachment

Arrange this type for 90 page

I can see the pattern from your images. The notebook shows a "Right → Left" arrangement where odd numbers go right-to-left across columns, and even numbers fill in between.
Let me analyze the pattern:
Image 1 (odd numbers, right to left):
  • Row 1: 1, 3, 5
  • Row 2: 7, 9, 11
  • Row 3: 13, 15, 17
Image 2 (even numbers, right to left - crossed out above, written below):
  • Row 1: 6, 4, 2
  • Row 2: 12, 10, 8
  • Row 3: 18, 16, 14
So the pattern is: 3 columns, numbers going Right → Left, odds on one page, evens on another.
Here is the full arrangement up to 90, following the same pattern:

ODD Numbers (Right → Left across 3 columns)

Col 1Col 2Col 3
135
7911
131517
192123
252729
313335
373941
434547
495153
555759
616365
676971
737577
798183
858789

EVEN Numbers (Right → Left across 3 columns)

Col 1Col 2Col 3
642
12108
181614
242220
302826
363432
424038
484644
545250
605856
666462
727068
787674
848280
908886

Each group has 15 rows x 3 columns = 45 numbers, covering all odd numbers (1-89) and all even numbers (2-90) up to 90. ✓

Arrange this pdf in this manner but only for 54 pages

Here is the full arrangement for 54 pages, following the same pattern:

ODD Numbers (Right → Left across 3 columns)

Col 1Col 2Col 3
135
7911
131517
192123
252729
313335
373941
434547
495153
(9 rows × 3 = 27 odd numbers: 1 to 53)

EVEN Numbers (Right → Left across 3 columns)

Col 1Col 2Col 3
642
12108
181614
242220
302826
363432
424038
484644
545250
(9 rows × 3 = 27 even numbers: 2 to 54)

Total: 27 odd + 27 even = 54 pages

Aarange pages only

Reading File
Running Command

python3 << 'EOF' from pypdf import PdfReader, PdfWriter input_path = "/tmp/workspace/attachments/8ba49562-16cc-4f5a-8e31-759aef90f381/anat ii paper final print.pdf" output_path = "/tmp/workspace/anat_ii_rearranged.pdf" reader = PdfReader(input_path) total_pages = len(reader.pages) print(f"Total pages in PDF: {total_pages}") # Build the page order (1-indexed page numbers from the notebook pattern) # Part 1: Odd pages in order: 1, 3, 5, ..., 53 odd_pages = list(range(1, 54, 2)) # [1,3,5,...,53] # Part 2: Even pages right-to-left in groups of 3: # Row 1: 6,4,2 # Row 2: 12,10,8 # ... # Row 9: 54,52,50 even_pages = [] for group in range(1, 10): # groups 1-9 high = group * 6 mid = high - 2 low = high - 4 even_pages.extend([high, mid, low]) print(f"Odd pages ({len(odd_pages)}): {odd_pages}") print(f"Even pages ({len(even_pages)}): {even_pages}") full_order = odd_pages + even_pages print(f"\nFull page order ({len(full_order)} pages): {full_order}") # Write rearranged PDF (convert 1-indexed to 0-indexed) writer = PdfWriter() for page_num in full_order: idx = page_num - 1 if idx < total_pages: writer.add_page(reader.pages[idx]) else: print(f"WARNING: Page {page_num} does not exist (PDF only has {total_pages} pages)") with open(output_path, "wb") as f: writer.write(f) print(f"\nDone! Saved to: {output_path}") EOF

Done! Your PDF has been rearranged with exactly 54 pages in the notebook pattern.

anat ii rearranged

PDF Document · PDF

Page order applied:
SectionPages
Odd (27 pages)1, 3, 5, 7, 9, 11 ... 49, 51, 53
Even right→left (27 pages)6,4,2 / 12,10,8 / 18,16,14 / 24,22,20 / 30,28,26 / 36,34,32 / 42,40,38 / 48,46,44 / 54,52,50
Total: 54 pages exactly as in your notebook layout.
This is a shared conversation. Sign in to Orris to start your own chat.