Add pages test
This commit is contained in:
+2
-2
@@ -22,7 +22,7 @@ class PDFHandler(object):
|
||||
Filepath or URL of the PDF file.
|
||||
pages : str, optional (default: '1')
|
||||
Comma-separated page numbers.
|
||||
Example: '1,3,4' or '1,4-end'.
|
||||
Example: '1,3,4' or '1,4-end' or 'all'.
|
||||
password : str, optional (default: None)
|
||||
Password for decryption.
|
||||
|
||||
@@ -50,7 +50,7 @@ class PDFHandler(object):
|
||||
Filepath or URL of the PDF file.
|
||||
pages : str, optional (default: '1')
|
||||
Comma-separated page numbers.
|
||||
Example: 1,3,4 or 1,4-end.
|
||||
Example: '1,3,4' or '1,4-end' or 'all'.
|
||||
|
||||
Returns
|
||||
-------
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import warnings
|
||||
|
||||
from .handlers import PDFHandler
|
||||
@@ -18,7 +19,7 @@ def read_pdf(filepath, pages='1', password=None, flavor='lattice',
|
||||
Filepath or URL of the PDF file.
|
||||
pages : str, optional (default: '1')
|
||||
Comma-separated page numbers.
|
||||
Example: '1,3,4' or '1,4-end'.
|
||||
Example: '1,3,4' or '1,4-end' or 'all'.
|
||||
password : str, optional (default: None)
|
||||
Password for decryption.
|
||||
flavor : str (default: 'lattice')
|
||||
|
||||
Reference in New Issue
Block a user