evo-pdf-content-extraction
Extracts and analyzes text content from PDF pages to identify author-revealing information including names, affiliations, emails, arXiv IDs, venue/conference mentions, and other identity-leaking conte
Files2
View on GitHubSKILL.mdtasks-evolved/paper-anonymizer/environment/skills/evo-pdf-content-extraction/SKILL.md
GitHubevo-pdf-content-extraction
Extracts text from academic PDFs and identifies all content that could reveal authorship for anonymization purposes.
Key Functions
extract_page_text(page)- Get plain text from a pageextract_words_with_positions(page)- Get words with bounding box coordinatesidentify_author_block_region(page)- Find the author block area on first pagedetect_arxiv_identifiers(text)- Find arXiv IDs in textdetect_email_addresses(text)- Find email addressesdetect_affiliations(text)- Find institutional affiliationsdetect_venue_statements(text)- Find venue/conference acceptance statementsget_all_redaction_targets(pdf_path)- Main function: analyze a PDF and return all strings to redact
Usage
import sys
sys.path.insert(0, '/app/environment/skills/evo-pdf-content-extraction/scripts')
from extraction import get_all_redaction_targets
targets = get_all_redaction_targets('/root/paper1.pdf')
print(targets['exact_strings']) # List of exact strings to redact
print(targets['regex_patterns']) # List of regex patterns to apply
print(targets['link_patterns']) # URL patterns to scrub