What do I have to do to retrieve a single PDF file for a given publication?
Images are not stored in convenient PDF files which OPS can access and deliver without further processing. OPS could create the illusion of this by converting the images into a single PDF file for you, but this would burden the server to the detriment of other users.
The steps required to fetch the data using the new RESTful OPS are as follows:
Step 1 - Request document availability information:
Here you can see that the full document has 12 pages. You can also see that the abstract and bibliography begin on page 1, the description on page 2, the claims on page 3, the drawings on page 5 and the search report on page 11.
The relevant identifier is also given:
published-data/images/EP/1000000/A1/fullimage
It is also shown that the pages are available in either tiff or PDF format.
Step 2 - Iterate over the pages:
You can iterate over the 12 pages by entering the following requests:
- http://ops.epo.org/rest-services/published-data/images/EP/1000000/A1/fullimage.tiff?Range=1
- http://ops.epo.org/rest-services/published-data/images/EP/1000000/A1/fullimage.tiff?Range=2
- http://ops.epo.org/rest-services/published-data/images/EP/1000000/A1/fullimage.tiff?Range=3
- http://ops.epo.org/rest-services/published-data/images/EP/1000000/A1/fullimage.tiff?Range=4
- http://ops.epo.org/rest-services/published-data/images/EP/1000000/A1/fullimage.tiff?Range=5
- http://ops.epo.org/rest-services/published-data/images/EP/1000000/A1/fullimage.tiff?Range=6
- http://ops.epo.org/rest-services/published-data/images/EP/1000000/A1/fullimage.tiff?Range=7
- http://ops.epo.org/rest-services/published-data/images/EP/1000000/A1/fullimage.tiff?Range=8
- http://ops.epo.org/rest-services/published-data/images/EP/1000000/A1/fullimage.tiff?Range=9
- http://ops.epo.org/rest-services/published-data/images/EP/1000000/A1/fullimage.tiff?Range=10
- http://ops.epo.org/rest-services/published-data/images/EP/1000000/A1/fullimage.tiff?Range=11
- http://ops.epo.org/rest-services/published-data/images/EP/1000000/A1/fullimage.tiff?Range=12
Alternatively, you can request each page as a PDF by using:
Step 3 - Assemble the pages:
Several open source tools are available to help you easily assemble the pages as a single PDF file: