Add pages test

This commit is contained in:
Vinayak Mehta
2019-01-02 16:35:49 +05:30
parent ea5747c5c4
commit 859610e0dc
3 changed files with 22 additions and 3 deletions
+2 -2
View File
@@ -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
View File
@@ -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')