@@ -271,7 +271,7 @@ def web_crawl_md(
271271 max_age_ms : int | Omit = omit ,
272272 max_depth : int | Omit = omit ,
273273 max_pages : int | Omit = omit ,
274- parse_pdf : bool | Omit = omit ,
274+ pdf : web_web_crawl_md_params . Pdf | Omit = omit ,
275275 shorten_base64_images : bool | Omit = omit ,
276276 timeout_ms : int | Omit = omit ,
277277 url_regex : str | Omit = omit ,
@@ -310,9 +310,8 @@ def web_crawl_md(
310310
311311 max_pages: Maximum number of pages to crawl. Hard cap: 500.
312312
313- parse_pdf: When true (default), PDF pages are fetched and their text layer is extracted and
314- converted to Markdown alongside HTML pages. When false, PDF pages are skipped
315- entirely (not included in results and not counted as failures).
313+ pdf: PDF parsing controls. Use start/end to limit text extraction and OCR to an
314+ inclusive 1-based page range.
316315
317316 shorten_base64_images: Truncate base64-encoded image data in the Markdown output
318317
@@ -348,7 +347,7 @@ def web_crawl_md(
348347 "max_age_ms" : max_age_ms ,
349348 "max_depth" : max_depth ,
350349 "max_pages" : max_pages ,
351- "parse_pdf " : parse_pdf ,
350+ "pdf " : pdf ,
352351 "shorten_base64_images" : shorten_base64_images ,
353352 "timeout_ms" : timeout_ms ,
354353 "url_regex" : url_regex ,
@@ -369,7 +368,7 @@ def web_scrape_html(
369368 url : str ,
370369 include_frames : bool | Omit = omit ,
371370 max_age_ms : int | Omit = omit ,
372- parse_pdf : bool | Omit = omit ,
371+ pdf : web_web_scrape_html_params . Pdf | Omit = omit ,
373372 timeout_ms : int | Omit = omit ,
374373 wait_for_ms : int | Omit = omit ,
375374 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -391,9 +390,8 @@ def web_scrape_html(
391390 younger than this many milliseconds. Defaults to 1 day (86400000 ms) when
392391 omitted. Max is 30 days (2592000000 ms). Set to 0 to always scrape fresh.
393392
394- parse_pdf: When true (default), PDF URLs are fetched and their text layer is extracted and
395- returned wrapped in <html><pdf>…</pdf></html>. When false, PDF URLs are skipped
396- and a 400 WEBSITE_ACCESS_ERROR is returned.
393+ pdf: PDF parsing controls. Use start/end to limit text extraction and OCR to an
394+ inclusive 1-based page range.
397395
398396 timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
399397 than this value, it will be aborted with a 408 status code. Maximum allowed
@@ -423,7 +421,7 @@ def web_scrape_html(
423421 "url" : url ,
424422 "include_frames" : include_frames ,
425423 "max_age_ms" : max_age_ms ,
426- "parse_pdf " : parse_pdf ,
424+ "pdf " : pdf ,
427425 "timeout_ms" : timeout_ms ,
428426 "wait_for_ms" : wait_for_ms ,
429427 },
@@ -507,7 +505,7 @@ def web_scrape_md(
507505 include_images : bool | Omit = omit ,
508506 include_links : bool | Omit = omit ,
509507 max_age_ms : int | Omit = omit ,
510- parse_pdf : bool | Omit = omit ,
508+ pdf : web_web_scrape_md_params . Pdf | Omit = omit ,
511509 shorten_base64_images : bool | Omit = omit ,
512510 timeout_ms : int | Omit = omit ,
513511 use_main_content_only : bool | Omit = omit ,
@@ -536,9 +534,8 @@ def web_scrape_md(
536534 younger than this many milliseconds. Defaults to 1 day (86400000 ms) when
537535 omitted. Max is 30 days (2592000000 ms). Set to 0 to always scrape fresh.
538536
539- parse_pdf: When true (default), PDF URLs are fetched and their text layer is extracted and
540- converted to Markdown. When false, PDF URLs are skipped and a 400
541- WEBSITE_ACCESS_ERROR is returned.
537+ pdf: PDF parsing controls. Use start/end to limit text extraction and OCR to an
538+ inclusive 1-based page range.
542539
543540 shorten_base64_images: Shorten base64-encoded image data in the Markdown output
544541
@@ -574,7 +571,7 @@ def web_scrape_md(
574571 "include_images" : include_images ,
575572 "include_links" : include_links ,
576573 "max_age_ms" : max_age_ms ,
577- "parse_pdf " : parse_pdf ,
574+ "pdf " : pdf ,
578575 "shorten_base64_images" : shorten_base64_images ,
579576 "timeout_ms" : timeout_ms ,
580577 "use_main_content_only" : use_main_content_only ,
@@ -877,7 +874,7 @@ async def web_crawl_md(
877874 max_age_ms : int | Omit = omit ,
878875 max_depth : int | Omit = omit ,
879876 max_pages : int | Omit = omit ,
880- parse_pdf : bool | Omit = omit ,
877+ pdf : web_web_crawl_md_params . Pdf | Omit = omit ,
881878 shorten_base64_images : bool | Omit = omit ,
882879 timeout_ms : int | Omit = omit ,
883880 url_regex : str | Omit = omit ,
@@ -916,9 +913,8 @@ async def web_crawl_md(
916913
917914 max_pages: Maximum number of pages to crawl. Hard cap: 500.
918915
919- parse_pdf: When true (default), PDF pages are fetched and their text layer is extracted and
920- converted to Markdown alongside HTML pages. When false, PDF pages are skipped
921- entirely (not included in results and not counted as failures).
916+ pdf: PDF parsing controls. Use start/end to limit text extraction and OCR to an
917+ inclusive 1-based page range.
922918
923919 shorten_base64_images: Truncate base64-encoded image data in the Markdown output
924920
@@ -954,7 +950,7 @@ async def web_crawl_md(
954950 "max_age_ms" : max_age_ms ,
955951 "max_depth" : max_depth ,
956952 "max_pages" : max_pages ,
957- "parse_pdf " : parse_pdf ,
953+ "pdf " : pdf ,
958954 "shorten_base64_images" : shorten_base64_images ,
959955 "timeout_ms" : timeout_ms ,
960956 "url_regex" : url_regex ,
@@ -975,7 +971,7 @@ async def web_scrape_html(
975971 url : str ,
976972 include_frames : bool | Omit = omit ,
977973 max_age_ms : int | Omit = omit ,
978- parse_pdf : bool | Omit = omit ,
974+ pdf : web_web_scrape_html_params . Pdf | Omit = omit ,
979975 timeout_ms : int | Omit = omit ,
980976 wait_for_ms : int | Omit = omit ,
981977 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -997,9 +993,8 @@ async def web_scrape_html(
997993 younger than this many milliseconds. Defaults to 1 day (86400000 ms) when
998994 omitted. Max is 30 days (2592000000 ms). Set to 0 to always scrape fresh.
999995
1000- parse_pdf: When true (default), PDF URLs are fetched and their text layer is extracted and
1001- returned wrapped in <html><pdf>…</pdf></html>. When false, PDF URLs are skipped
1002- and a 400 WEBSITE_ACCESS_ERROR is returned.
996+ pdf: PDF parsing controls. Use start/end to limit text extraction and OCR to an
997+ inclusive 1-based page range.
1003998
1004999 timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
10051000 than this value, it will be aborted with a 408 status code. Maximum allowed
@@ -1029,7 +1024,7 @@ async def web_scrape_html(
10291024 "url" : url ,
10301025 "include_frames" : include_frames ,
10311026 "max_age_ms" : max_age_ms ,
1032- "parse_pdf " : parse_pdf ,
1027+ "pdf " : pdf ,
10331028 "timeout_ms" : timeout_ms ,
10341029 "wait_for_ms" : wait_for_ms ,
10351030 },
@@ -1113,7 +1108,7 @@ async def web_scrape_md(
11131108 include_images : bool | Omit = omit ,
11141109 include_links : bool | Omit = omit ,
11151110 max_age_ms : int | Omit = omit ,
1116- parse_pdf : bool | Omit = omit ,
1111+ pdf : web_web_scrape_md_params . Pdf | Omit = omit ,
11171112 shorten_base64_images : bool | Omit = omit ,
11181113 timeout_ms : int | Omit = omit ,
11191114 use_main_content_only : bool | Omit = omit ,
@@ -1142,9 +1137,8 @@ async def web_scrape_md(
11421137 younger than this many milliseconds. Defaults to 1 day (86400000 ms) when
11431138 omitted. Max is 30 days (2592000000 ms). Set to 0 to always scrape fresh.
11441139
1145- parse_pdf: When true (default), PDF URLs are fetched and their text layer is extracted and
1146- converted to Markdown. When false, PDF URLs are skipped and a 400
1147- WEBSITE_ACCESS_ERROR is returned.
1140+ pdf: PDF parsing controls. Use start/end to limit text extraction and OCR to an
1141+ inclusive 1-based page range.
11481142
11491143 shorten_base64_images: Shorten base64-encoded image data in the Markdown output
11501144
@@ -1180,7 +1174,7 @@ async def web_scrape_md(
11801174 "include_images" : include_images ,
11811175 "include_links" : include_links ,
11821176 "max_age_ms" : max_age_ms ,
1183- "parse_pdf " : parse_pdf ,
1177+ "pdf " : pdf ,
11841178 "shorten_base64_images" : shorten_base64_images ,
11851179 "timeout_ms" : timeout_ms ,
11861180 "use_main_content_only" : use_main_content_only ,
0 commit comments