npdfpages

package module
v0.0.0-...-af9aed8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2012 License: BSD-3-Clause Imports: 3 Imported by: 0

README

Usage is straightforward for common cases:

import "github.com/extemporalgenome/npdfpages"
var pages = npdfpages.PagesAtPath("somefile.pdf")

Documentation

Overview

Package npdfpages has no purpose other than to determine the number of pages in a PDF file. No checking is done to determine that the input is well formatted.

It's possible, but extremely unlikely that PDF streams could contain byte sequences that result in false positives, though the number returned will be no less than the number of actual pages in the PDF.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pages

func Pages(reader io.ByteReader) (pages int)

Pages reads the given io.ByteReader until EOF is reached, returning the number of pages encountered.

func PagesAtPath

func PagesAtPath(path string) (pages int)

PagesAtPath opens a PDF file at the given file path, returning the number of pages found.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL