We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 565f36f commit dee42a3Copy full SHA for dee42a3
1 file changed
examples/patent_data_example.py
@@ -154,6 +154,13 @@
154
overwrite=True,
155
)
156
print(f"Downloaded document to: {downloaded_path}")
157
+
158
+ print("\nStreaming same document to memory...")
159
+ with client.stream_document(
160
+ document=document_to_download, format="PDF"
161
+ ) as response:
162
+ content = response.content
163
+ print(f"Streamed {len(content)} bytes")
164
else:
165
print(
166
"No downloadable formats available for the first document or document identifier missing."
0 commit comments