14 lines
525 B
Python
14 lines
525 B
Python
import pymupdf
|
|
import sys
|
|
|
|
sys.stdout.reconfigure(encoding='utf-8')
|
|
|
|
doc = pymupdf.open("resources/knowledge/original/행정규칙/임도 품셈 적용기준 (현 산림사업 표준품셈)/첨부/(산림청고시 제2025-82호) 산림사업 표준품셈.pdf")
|
|
|
|
# Print entire page 52 (0-indexed 51) and 53 (0-indexed 52)
|
|
print("==================== PDF PAGE 52 (1-indexed) ====================")
|
|
print(doc[51].get_text())
|
|
|
|
print("==================== PDF PAGE 53 (1-indexed) ====================")
|
|
print(doc[52].get_text())
|