
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Tool for extracting text and tables from PDF files and saving this data in docx format
pdfwordify is a tool for extracting text and tables from PDF files and saving this data in docx(Word) format. This project is designed to automate the process of transferring information from PDF to formats that are easier to edit and process.
Install Python 3.10 or newer.
Install Google tesseract OCR
Install the library using pip:
pip install pdfwordify
Use the command-line interface to convert from PDF to docx.
pdfwordify example.pdf
Or use it with Python.
from pdfwordify.converter import convert_to_docx
convert_to_docx("example.pdf")
This section will provide arguments for using the converter. They are suitable for use within the command line as well as for use within Python.
pdf_path
:
pdfwordify dir/example.pdf
.convert_to_docx("dir/example.pdf")
.output_dir
:
pdfwordify dir/example.pdf /output/path/
.convert_to_docx("dir/example.pdf", "/output/path/")
method
:
lattice
lattice
for tables that have distinct boundaries.
stream
for tables that have clear borders.
None
if there are no tables in the document.
pdfwordify --method stream dir/example.pdf
.convert_to_docx("example.pdf", method=None)
.lang
:
eng
rus+eng
pdfwordify --lang rus+eng dir/example.pdf
.convert_to_docx("example.pdf", lang="rus+eng")
.To further customize the settings, edit the config.py
file.
FAQs
Tool for extracting text and tables from PDF files and saving this data in docx format
We found that pdfwordify demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.