hej, używam poniższego skryptu w pythonie from pypdf import PdfReader reader =…
- User
hej, używam poniższego skryptu w pythonie
from pypdf import PdfReader
reader = PdfReader("twoj_plik.pdf")
for i, page in enumerate(reader.pages): print(f"\n--- Strona {i + 1} ---") if "/Annots" in page: for annot in page["/Annots"]: annot_obj = annot.get_object() field_type = annot_obj.get("/FT") field_value = annot_obj.get("/V") field_name = annot_obj.get("/T") ap = annot_obj.get("/AP") print(f"Nazwa: {field_name}, Typ: {field_type}, Wartość: {field_value}") if ap: print(f" Możliwe opcje: {list(ap['/N'].keys()) if '/N' in ap else 'brak'}")
Assistant
Hej! Widzę, że używasz skryptu w Pythonie do analizy formularzy PDF. Twój kod używa biblioteki pypdf do odczytywania pól formularza z pliku PDF.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.