diff --git a/README.rst b/README.rst index c3e9800..73a1407 100644 --- a/README.rst +++ b/README.rst @@ -50,13 +50,13 @@ Now let's extract and format a bunch of data all at once:: >>> pdf = pdfquery.PDFQuery("tests/samples/IRS_1040A.pdf") >>> pdf.extract( [ - ('with_parent','LTPage[pageid=1]'), + ('with_parent', 'LTPage[pageid="1"]'), ('with_formatter', 'text'), ('last_name', 'LTTextLineHorizontal:in_bbox("315,680,395,700")'), ('spouse', 'LTTextLineHorizontal:in_bbox("170,650,220,680")'), - ('with_parent','LTPage[pageid=2]'), + ('with_parent', 'LTPage[pageid="2"]'), ('oath', 'LTTextLineHorizontal:contains("perjury")', lambda match: match.text()[:30]+"..."), ('year', 'LTTextLineHorizontal:contains("Form 1040A (")', lambda match: int(match.text()[-5:-1]))