https://github.com/rsc/pdf

Last synced: about 1 month ago

Repository metadata:

PDF reader


Owner metadata:


Committers metadata

Last synced: about 1 month ago

Total Commits: 13
Total Committers: 4
Avg Commits per committer: 3.25
Development Distribution Score (DDS): 0.308

Commits in past year: 0
Committers in past year: 0
Avg Commits per committer in past year: 0.0
Development Distribution Score (DDS) in past year: 0.0

Name Email Commits
Russ Cox r****c@g****g 9
Leigh McCulloch l****h@m****m 2
Emmanuel Odeke e****e@g****m 1
Functionary Robot f****t@g****m 1

Issue and Pull Request metadata

Last synced: about 1 month ago


Package metadata

go: rsc.io/pdf

Package pdf implements reading of PDF files. PDF is Adobe's Portable Document Format, ubiquitous on the internet. A PDF document is a complex data format built on a fairly simple structure. This package exposes the simple structure along with some wrappers to extract basic information. If more complex information is needed, it is possible to extract that information by interpreting the structure exposed by this package. Specifically, a PDF is a data structure built from Values, each of which has one of the following Kinds: The accessors on Value—Int64, Float64, Bool, Name, and so on—return a view of the data as the given type. When there is no appropriate view, the accessor returns a zero result. For example, the Name accessor returns the empty string if called on a Value v for which v.Kind() != Name. Returning zero values this way, especially from the Dict and Array accessors, which themselves return Values, makes it possible to traverse a PDF quickly without writing any error checking. On the other hand, it means that mistakes can go unreported. The basic structure of the PDF file is exposed as the graph of Values. Most richer data structures in a PDF file are dictionaries with specific interpretations of the name-value pairs. The Font and Page wrappers make the interpretation of a specific Value as the corresponding type easier. They are only helpers, though: they are implemented only in terms of the Value API and could be moved outside the package. Equally important, traversal of other PDF data structures can be implemented in other packages as needed.

  • Homepage: https://github.com/rsc/pdf
  • Documentation: https://pkg.go.dev/rsc.io/pdf#section-documentation
  • Licenses: BSD-3-Clause
  • Latest release: v0.1.1 (published over 6 years ago)
  • Last Synced: 2024-11-10T07:32:21.973Z (about 1 month ago)
  • Versions: 2
  • Dependent Packages: 73
  • Dependent Repositories: 28,789
  • Docker Downloads: 1,690,196
  • Rankings:
    • Dependent repos count: 0.034%
    • Docker downloads count: 0.512%
    • Dependent packages count: 0.549%
    • Average: 1.107%
    • Forks count: 1.734%
    • Stargazers count: 2.704%
go: github.com/rsc/pdf

Package pdf implements reading of PDF files. PDF is Adobe's Portable Document Format, ubiquitous on the internet. A PDF document is a complex data format built on a fairly simple structure. This package exposes the simple structure along with some wrappers to extract basic information. If more complex information is needed, it is possible to extract that information by interpreting the structure exposed by this package. Specifically, a PDF is a data structure built from Values, each of which has one of the following Kinds: The accessors on Value—Int64, Float64, Bool, Name, and so on—return a view of the data as the given type. When there is no appropriate view, the accessor returns a zero result. For example, the Name accessor returns the empty string if called on a Value v for which v.Kind() != Name. Returning zero values this way, especially from the Dict and Array accessors, which themselves return Values, makes it possible to traverse a PDF quickly without writing any error checking. On the other hand, it means that mistakes can go unreported. The basic structure of the PDF file is exposed as the graph of Values. Most richer data structures in a PDF file are dictionaries with specific interpretations of the name-value pairs. The Font and Page wrappers make the interpretation of a specific Value as the corresponding type easier. They are only helpers, though: they are implemented only in terms of the Value API and could be moved outside the package. Equally important, traversal of other PDF data structures can be implemented in other packages as needed.

  • Homepage: https://github.com/rsc/pdf
  • Documentation: https://pkg.go.dev/github.com/rsc/pdf#section-documentation
  • Licenses: BSD-3-Clause
  • Latest release: v0.1.1 (published over 6 years ago)
  • Last Synced: 2024-11-11T01:12:41.049Z (about 1 month ago)
  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Forks count: 1.097%
    • Stargazers count: 1.634%
    • Average: 4.769%
    • Dependent packages count: 6.999%
    • Dependent repos count: 9.346%