IRONSOFTWARE
  • PRODUCTS
  • ENTERPRISE
  • FREE TOOLS
  • USE CASES
  • COMPANY
  • CONTACT US
205 N. Michigan Ave. Chicago, IL 60601, USA
+1 (312) 500-3060
CONTACT US
Icon Triangle related to 
									Extract Text
  • Sales
  • Support
  • Partnerships
  • Corporate
Live Chat 24/5
  • En
      Icon Triangle related to 
									Extract Text
    • English
    • Español
    • Deutsch
    • Français
    • 日本語
    • 简体中文
    • 繁體中文
  • Icon Triangle related to 
									Extract Text
    • Customers Case Studies
    • Industry White Papers
    Icon Triangle related to 
									Extract Text
    • About Us
      Icon Text Wearehiring related to 
									Extract Text
    • Company News
      Icon Text Wearehiring related to 
									Extract Text
    • Customers & Case Studies
      Icon Text Wearehiring related to 
									Extract Text
    • Environmental Commitments
      Icon Text Wearehiring related to 
									Extract Text
    • Startup Impact Grant
      Icon Text Wearehiring related to 
									Extract Text
    • Beta Program
      Icon Text Wearehiring related to 
									Extract Text
    • Year in Review: 2024
      Icon Text Wearehiring related to 
									Extract Text
    • Careers
      Icon Text Wearehiring related to 
									Extract Text
    • Consulting Partners
    • Content Creators
    • Resellers Partners
    • Technology Partners
    • Microsoft MVPs
    • Affiliates
    • Global Resellers
    • Merchant of Record
    • Trust Center
    • Sales
    • Support
    • Partnerships
    • Corporate
    Live Chat 24/5
    Icon Triangle related to 
									Extract Text
    Icon Logo Ironsuite related to 
									Extract Text

    IRONSUITE

    All 10 for the Price of 2

    Save 80% with Iron Suite
    Logo 1 Percent related to 
									Extract Text
    Logo IronPDF
    Logo IronPDF

    Create, read, and edit PDFs

    Logo IronPPT
    Logo IronPPT

    Edit PowerPoint Files. No Office Interop required

    Logo IronQR
    Logo IronQR

    Read and write QR codes with ML detection

    Logo IronWebscraper
    Logo IronWebscraper

    Extract structured data from website

    Logo IronWord
    Logo IronWord

    Edit DOCX Word Files. No Office Interop required

    Logo IronOCR
    Logo IronOCR

    Image to text in 127 languages

    Logo IronPrint
    Logo IronPrint

    Customized Printing Files

    Logo IronXL
    Logo IronXL

    Edit Excel & CSV Files. No Office Interop required

    Logo IronBarcode
    Logo IronBarcode

    Read and write Barcodes

    Logo IronZIP
    Logo IronZIP

    Zip and unzip archives

    Icon Triangle related to 
									Extract Text
    Icon Logo Ironsuite related to 
									Extract Text
    Icon Text Ironsuite related to 
									Extract Text

    Enterprise Licensing

    Icon Logo Ironsecuredoc related to 
									Extract Text
    Icon Text Ironsecuredoc related to 
									Extract Text

    PDF Security & Compliance

    Icon Triangle related to 
									Extract Text
    Icon Logo Irondrawing related to 
									Extract Text
    Icon Text Irondrawing related to 
									Extract Text

    System.Drawing.Common Replacement

    Icon Logo Ironfreetools related to 
									Extract Text
    Icon Text Ironfreetools related to 
									Extract Text

    Free Software Development Tools

    IronPDF - Library for Python
    for
    Python
    • .NET
    • Java
    • Python
    • Node.js
    • Home
    • Licensing
      • Licensing
      • EULA
      • How to Use License Keys
      • Start Free Trial
    • Demos
      • Code Examples
      • Book a Live Demo
    • Docs
      • Get Started
      • Tutorials
      • How-Tos
      • Troubleshooting
      • Product Updates
    Search
    Ctrl
    K
    Start for Free
    pip Download Start Free Trial
    Logo Icon related to 
									Extract Text
    IronPDF - Library for Python
    for
    • .NET
    • Java
    • Python
    • Node.js
    • IRONSOFTWARE HOME
    • PRODUCTS
      • IRONSUITE

      • IRONPDF
        UPDATED
      • IRONWORD
      • IRONXL
      • IRONPPT
      • IRONOCR
      • IRONBARCODE
      • IRONQR
      • IRONZIP
      • IRONPRINT
      • IRONWEBSCRAPER
    • ENTERPRISE
      • IRONSUITE ENTERPRISE
      • IRONSECUREDOC
    • OPEN SOURCE
      • IRONDRAWING
      • IRONFREETOOLS
    • ABOUT US
      • About Us
      • Company News
      • Customers
      • Environmental Commitments
      • Beta Program
      • Year in Review: 2024
      • Live Chat
      • Global Resellers
      • Join our team
    • CONTACT US
    • HOME
    • LICENSING
      • Licensing
      • EULA
      • How to Use License Keys

      • Start Free Trial
    • DEMOS
      • Code Examples
      • Book a Live Demo
    • DOCS
      • Get Started
      • Tutorials
      • How-Tos
      • Troubleshooting

      • Product Updates
    Message icon
    IronPDF Code Example
    Generating PDFs
    HTML to PDF
    • HTML to PDF
    • HTML Files to PDF
    • URL to a PDF
    Convert Images
    • Images To PDF
    • TIFF to PDF with Multi-Page Support
    • Embedding Bitmaps and Images
    • Add Barcodes in HTML to PDF
    Apply Settings
    • HTML Rendering Settings
    • Set Temp PDF File Path
    Supports
    • RTF to PDF
    • Markdown to PDF
    • Rasterize a PDF to Images
    • Website & System Logins
    • Parallel PDF Generation
    • Async PDF Generation
    • PDF/A Document Export
    Formatting PDFs
    Use HTML Assets
    • JavaScript in HTML To PDF
    • Execute Custom JavaScript
    • Angular.JS to PDF
    • Rendering Charts in PDFs
    • Custom Fonts in HTML to PDF
    Set View
    • Responsive HTML to PDF
    Apply Templates
    • Add Classic Text Headers & Footers
    • Add HTML Headers & Footers
    • Add Headers/Footers on Specific Pages
    • Page Numbers and Page Breaks
    • Attach a Cover Page
    Apply Page Settings
    • Set Custom Margins
    • Custom PDF Size
    • Portrait & Landscape Orientation
    • Set to Grayscale
    International Languages
    • Unicode & UTF-8 Support
    Editing PDFs
    Change Page Structure
    • Joining Two or More PDFs
    • Split a PDF and Extract Pages
    • Remove Specific PDF Pages
    • Copying Pages between PDF Files
    Edit Content
    • Editing PDFs
    • Stamping HTML Content
    • Watermarking
    • Backgrounds & Foregrounds
    • Adding HTML Content Efficiently
    • Annotations
    • Outlines & Bookmarks
    • Add Attachments
    Use Forms
    • PDF Forms
    Apply Document Settings
    • PDF Compression
    • Passwords, Security & Metadata
    • Digital Signatures
    • PDF Encryption & Decryption
    Send PDF to a Printer
    • Paper Printing PDFs
    Read a PDF
    • Extract Image
    • Extract Text
    Extract Text
    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)

    Extract Text

    Related Docs Links

    Report an Issue on this page

    Ready to get started? Version: 2025.4 just released

    Start for Free
    pip Download Start Free Trial
    View Licenses >
    Try IronPDF for Free
    Get Set Up in 5 Minutes
    Icon Lightbulb related to 
									Extract Text
    Python Module Download for PDF
    Install with pip
    Version: 2025.4
     pip install ironpdf
    https://pypi.org/project/IronPdf/
    1. Download and install Python 3.7+.
    2. Install pip from pypi.org if it isn't installed already.
    3. Execute the above command in the terminal.
    Python PDF Module
    Download Module
    Version: 2025.4
    Download Now
    Manually install into your project
    1. Download the package
    2. Run this command from the terminal
      pip install ironpdf-2025.4-py37-none-win_amd64.whi
    Licenses from $749

    Have a question? Get in touch with our development team.

    15 1000 1
    PyPi Logo
    Now you've installed with PyPi
    Your browser is now downloading IronPDF

    Next step: Start free 30-day Trial

    No credit card required

    • Test in a live environment
    • Fully-functional product
    • 24/5 technical support
    Get your free 30-day Trial Key instantly.
    Thank you.
    If you'd like to speak to our licensing team:

    badge_greencheck_in_yellowcircle
    The trial form was submitted
    successfully.

    Your trial key should be in the email.
    If it is not, please contact
    support@ironsoftware.com

    Schedule a call
    Have a question? Get in touch with our development team.
    No credit card or account creation required
    15 1000 1
    PyPi Logo
    Now you've installed with PyPi
    Your browser is now downloading IronPDF

    Next step: Start free 30-day Trial

    No credit card required

    • Test in a live environment
    • Fully-functional product
    • 24/5 technical support
    Thank you.
    View your license options:
    Thank you.
    If you'd like to speak to our licensing team:
    View Licensing
    Schedule a call
    Have a question? Get in touch with our development team.
    Have a question? Get in touch with our development team.
    IronPDF for Python

    Get started for FREE

    No credit card required

    Test in a live environment

    Test in production without watermarks.
    Works wherever you need it to.

    bullet_test
    Fully-functional product

    Get 30 days of fully functional product.
    Have it up and running in minutes.

    bullet_calendar
    24/5 technical support

    Full access to our support engineering team during your product trial

    bullet_support
    Support Team Member 6 related to 
									Extract Text									Support Team Member 3 related to 
									Extract Text									Support Team Member 14 related to 
									Extract Text									Support Team Member 4 related to 
									Extract Text									Support Team Member 2 related to 
									Extract Text
    IronPDF for Python
    Get your free 30-day Trial Key instantly.

    bullet_checkedNo credit card or account creation required

    badge_greencheck_in_yellowcircle
    The trial form was submitted
    successfully.

    Your trial key should be in the email.
    If it is not, please contact
    support@ironsoftware.com

    Trusted by Millions of Engineers Worldwide
    • aetna_logo
    • wwf_logo
    • nasa_logo
    • usda_logo
    • 3m_logo
    • tesla_logo
    IronPDF for Python

    Get started for FREE

    No credit card required

    Test in a live environment

    Test in production without watermarks.
    Works wherever you need it to.

    bullet_test
    Fully-functional product

    Get 30 days of fully functional product.
    Have it up and running in minutes.

    bullet_calendar
    24/5 technical support

    Full access to our support engineering team during your product trial

    bullet_support
    Support Team Member 6 related to 
									Extract Text									Support Team Member 3 related to 
									Extract Text									Support Team Member 14 related to 
									Extract Text									Support Team Member 4 related to 
									Extract Text									Support Team Member 2 related to 
									Extract Text
    IronPDF for Python
    Get your free 30-day Trial Key instantly.
    Install with pip
    View Licensing

    Licenses from $749. Have a question? Get in touch.

    Trusted by Millions of Engineers Worldwide
    • aetna_logo
    • wwf_logo
    • nasa_logo
    • usda_logo
    • 3m_logo
    • tesla_logo
    IronPDF for .Net
    Book Free Live Demo

    Book a 30-minute, personal demo.

    No contract, no card details, no commitments.

    Iron Software Product Demo Team
    Here's what to expect:
    • A live demo of our product and its key features
    • Get project specific feature recommendations
    • All your questions are answered to make sure you have all the information you need.
      (No commitment whatsoever.)
    CHOOSE TIME
    YOUR INFO
    Book your free Live Demo
    Booking Badge related to 
									Extract Text

    Trusted by Over 2 Million Engineers Worldwide

    Iron Software's customer logos
    Experience the full power of IronPDF Start Free Trial
    Logo 1 Percent related to 
									Extract Text
    Textlogo Iron Suite related to 
									Extract Text

    IronPDF is a part of IRONSUITE

    10 .NET API products for your office documents

    Get 10 products for the price of 2   Start Free Trial
    • Icon Hash related to 
									Extract Text
      ironpdf_logo
      - Create, read, and edit PDFs. HTML to PDF for .NET.
    • Icon Hash related to 
									Extract Text
      ironword_logo
      - Edit DOCX Word Files. No Office Interop required.
    • Icon Hash related to 
									Extract Text
      ironxl_logo
      - Edit Excel & CSV files. No Office Interop required.
    • Icon Hash related to 
									Extract Text
      ironppt_logo
      - Create, read, and edit presentations. No Office Interop required.
    • Icon Hash related to 
									Extract Text
      ironocr_logo
      - OCR (extract text from images) in 127 languages.
    • Icon Hash related to 
									Extract Text
      ironbarcode_logo
      - Read and write QR & Barcodes.
    • Icon Hash related to 
									Extract Text
      ironqr_logo
      - Read and write QR codes.
    • Icon Hash related to 
									Extract Text
      ironzip_logo
      - Zip and unzip archives.
    • Icon Hash related to 
									Extract Text
      ironprint_logo
      - Print documents in .NET applications.
    • Icon Hash related to 
									Extract Text
      ironwebscraper_logo
      - Scrape structured data from websites.
    1% for the Planet
    IronPDF is a part of IRONSUITE

    10 .NET API products for your office documents

    Get 10 products for the price of 2
       Start Free Trial 
    • ironpdf_logo
      - Create, read, and edit PDFs. HTML to PDF for .NET.
    • ironword_logo
      - Edit DOCX Word Files. No Office Interop required.
    • ironxl_logo
      - Edit Excel & CSV files. No Office Interop required.
    • ironppt_logo
      - Create, read, and edit presentations. No Office Interop required.
    • ironocr_logo
      - OCR (extract text from images) in 127 languages.
    • ironbarcode_logo
      - Read and write QR & Barcodes.
    • ironqr_logo
      - Read and write QR codes.
    • ironzip_logo
      - Zip and unzip archives.
    • ironprint_logo
      - Print documents in .NET applications.
    • ironwebscraper_logo
      - Scrape structured data from websites.
    IronPDF for Python

    When you need your PDF to look like HTML, fast.

    Search

    CtrlK

    Documentation

    • Code Examples
    • How-Tos
    • Blog

    Tutorials

    • Get Started
    • HTML to PDF

    VS Alternatives

    • IronPDF vs Aspose
    • IronPDF vs Syncfusion

    Licensing

    • Buy a License
    • Find a Reseller
    • How to Use License Keys
    • EULA

    Try IronPDF Free

    • Download with pip
    • Start Free Trial
    1. IronPDF
    2. Code Examples
    3. Extract Text
    Back to top
    Iron Software
    205 N. Michigan Ave. Chicago, IL 60601 USA +1 (312) 500-3060
    • About Us
    • News
    • Customers
    • Careers
    • Academy
    • Contact Us
    • English
      • English
      • Español
      • Deutsch
      • Français
      • 日本語
      • 简体中文
      • 繁體中文
    Github related to 
									Extract Text									Youtube related to 
									Extract Text									Twitter X related to 
									Extract Text									Facebook related to 
									Extract Text									Linkedin related to 
									Extract Text
    Slack Icon related to 
									Extract Text									Join Iron Slack

    Supporting Teamseas

    Copyright © Iron Software LLC 2013-2025

    • Terms
    • Privacy
    • Cookie