KO
|
EN
gitlite — search
Search
#javascript
#docker
#golang
#android
#game
#scala
#dotnet
#ruby
#kafka
#php
#windows
#qt5
pdf-ts
★ 49
Open GitHub ↗
PDF text extraction in TypeScript
Download README (.md)
Explore Similar Repositories
dumpCake
:
It's easy as cake to dump your secrets
comap_crawler_2023
:
美赛爬虫,2022美赛获奖证书爬虫,2023美赛获奖证书爬虫,2024美赛获奖证书爬虫
AIT
:
This was orginally written by: https://github.com/hlky
alx-checker
:
A checker for all alx-low_level_programming projects.
CapacitorWatch
:
Build apps for watches with Capacitor
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
pdf-ts
?
Download (.md)
# pdf-ts pdf-ts is a TypeScript library for PDF text extraction. It uses [Mozilla's PDF.js](https://mozilla.github.io/pdf.js) to expose a simple API for text extraction. ```shell npm i pdf-ts ``` ## Examples Extract text from a PDF. ```ts import {pdfToText} from 'pdf-ts'; const pdf = await fs.readFile('./path/to/file.pdf'); const text = await pdfToText(pdf); console.log(text); ``` Extract a list of pages from a PDF. ```ts import {pdfToPages} from 'pdf-ts'; const pdf = await fs.readFile('./path/to/file.pdf'); const pages = await pdfToPages(pdf); console.log(pages); // [{page: 1, text: '...'}, {page: 2, text: '...'}, ...] ``` ## License [MIT](LICENSE)