from ironpdf import * # Load existing PDF document pdf = PdfDocument.FromFile("content.pdf") # Extract text from PDF document all_text = pdf.ExtractAllText() # Extract text from specific page in the document page_2_text = pdf.ExtractTextFromPage(1)
提取文本