Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/ScriptRock/pdf

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/ScriptRock/pdf

  • v0.0.14
  • Source
  • Go
  • Socket score

Version published
Created
Source

PDF Reader

A simple Go library which enables reading PDF files text content. Fork tree:

  • https://github.com/ledongthuc/pdf
  • https://github.com/rsc/pdf

Reader.GetText returns the text content annotated with text size and weight information. Text is returned in stream order - irrespectve of where it appears on the page, the returned text order is how it appears in the PDF stream.

Attempts are made to separate text blocks that are displayed in separate blocks in the PDF as separate paragraphs.

e.g. with tabular PDF content:

Col 1 headerCol 2 header
Text in row 1 col 1Text in row 1 col 2
Text in row 2 col 1Text in row 2 col 2

Reader.GetText returns content as:

Col 1 header

Col 2 header

Text in row 1 col 1

Text in row 1 col 2

Text in row 2 col 1

Text in row 2 col 2

FAQs

Package last updated on 12 Sep 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc