Skip to content

Commit

Permalink
[mw] Fix access to USPTO documents using USPTO PPUBS
Browse files Browse the repository at this point in the history
USPTO PatFT and AppFT are deprecated.

On September 30 2022, the United States Patent and Trademark Office’s
(USPTO) new Patent Public Search tool (PPUBS) replaced four legacy
tools—Public-Examiner’s Automated Search Tool (PubEAST), Public-Web-
based Examiner’s Search Tool (PubWEST), Patent Full-Text and Image
Database (PatFT), and Patent Application Full-Text and Image Database
(AppFT).

See also https://meta.ip-tools.org/t/178.
  • Loading branch information
amotl committed Nov 28, 2022
1 parent 1113ad6 commit 0d630f2
Show file tree
Hide file tree
Showing 10 changed files with 390 additions and 180 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ coverage.xml
o-*.min.js
o-*.min.map
yarn-error.log
patzilla-uspto-cache.sqlite
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Development
- [mw] Add CLI interface for basic operations on EPO/OPS
- [mw] Fix access to DPMAregister due to upstream changes
- [mw] Add CLI interface for search operation on IFI CLAIMS
- [mw] Fix access to USPTO documents using USPTO PPUBS, PatFT and AppFT are deprecated


2019-11-01 0.169.3
Expand Down
7 changes: 2 additions & 5 deletions patzilla/access/uspto/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
import logging
import sys

from patzilla.access.uspto.pdf import fetch_pdf, UsptoPdfSection, run_examples
from patzilla.util.image.convert import pdf_extract_image
from patzilla.access.uspto.pdf import fetch_png, run_examples, UsptoPdfSection

log = logging.getLogger(__name__)

Expand All @@ -45,9 +44,7 @@ def fetch_first_drawing(patent):
docnumber = patent

log.info('Fetching first drawing of document {docnumber}'.format(docnumber=docnumber))
drawing_pdf = fetch_pdf(docnumber, section=UsptoPdfSection.DRAWINGS)
drawing_tiff = pdf_extract_image(drawing_pdf)
return drawing_tiff
return fetch_png(docnumber, section=UsptoPdfSection.DRAWINGS)


if __name__ == '__main__': # pragma: nocover
Expand Down
Loading

0 comments on commit 0d630f2

Please sign in to comment.