feat: metagpt-Python-PDF-Feedback-UI-20260326
This commit is contained in:
24
resources/seq_flow/20260326175651.mmd
Normal file
24
resources/seq_flow/20260326175651.mmd
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
sequenceDiagram
|
||||
participant M as Main
|
||||
participant AP as argparse
|
||||
participant PO as PDFOpener
|
||||
participant PR as PdfReader(pypdf)
|
||||
|
||||
M->>AP: parse_args()
|
||||
AP-->>M: args(file_path, start_page, end_page)
|
||||
M->>PO: __init__(file_path, start_page, end_page)
|
||||
M->>PO: run()
|
||||
PO->>PO: open()
|
||||
PO->>PR: PdfReader(file_path)
|
||||
PR-->>PO: reader
|
||||
PO->>PO: get_info(reader)
|
||||
PR-->>PO: info(num_pages, metadata)
|
||||
PO->>PO: display_info(info)
|
||||
PO-->>M: print info to console
|
||||
PO->>PO: extract_text(reader)
|
||||
loop for each page in range
|
||||
PR-->>PO: page.extract_text()
|
||||
end
|
||||
PO->>PO: display_text(texts)
|
||||
PO-->>M: print text to console
|
||||
Reference in New Issue
Block a user