GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - pdfix/pdfix_sdk_example_python: PDFix SDK samples for Python. PDF manipulation, content extraction, conversion , accessibility and more...

BranchesTags
Open more actions menu

Latest commit

 

History

94 Commits
94 Commits

Folders and files

NameName
Last commit message
Last commit date
resources
resources
 
 
src
src
 
 
.gitignore
.gitignore
 
 
.mypy.ini
.mypy.ini
 
 
Example.py
Example.py
 
 
README.md
README.md
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

PDFix SDK example for Python

For more information please visit https://pdfix.net.

Installation

Initialize and activate a Python virtual environment:

python3 -m venv env

Linux, macOS:

source env/bin/activate

Windows (PowerShell):

.\env\Scripts\Activate.ps1

Windows (Command Prompt):

env\Scripts\activate.bat

Installation using requirements

pip install -r requirements.txt

Manual installation

pip3 install pdfix-sdk

Code example

from pdfixsdk import *

pdfix = GetPdfix()
if pdfix is None:
    raise RuntimeError("Pdfix initialization failed")

doc = pdfix.OpenDoc("test.pdf", "")
if doc is None:
    raise RuntimeError(f"Unable to open PDF: {pdfix.GetError()}")

print(f"Number of pages: {doc.GetNumPages()}")
doc.Close()

Other Python projects with PDFix SDK

https://github.com/topics/pdfix-actions

Have a question? Need help?

Let us know and we’ll get back to you. Write to [email protected] or use the contact form.

About

PDFix SDK samples for Python. PDF manipulation, content extraction, conversion , accessibility and more...

Resources

Readme
Activity
Custom properties

Stars

30 stars

Watchers

5 watching

Forks

8 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.