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 ¶
PagesAtPath opens a PDF file at the given file path, returning the number of pages found.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.