0
Files
src/pdf
Chu-Hsuan Yang 4e6814c0c7 PDF: Return earlier when important tasks in Searchify fail
Skip further tasks whenever:
- The `perform_ocr_callback` passed to `Searchify` returns null.
- FPDFPage_GenerateContent() fails.

Bug: 331592549
Test: pdf_unittests --gtest_filter="PDFiumEngineExportsTest*"
Change-Id: If33bcc050c3527111b437541160b80ba97790567
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5491175
Commit-Queue: Chu-Hsuan Yang <chuhsuan@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1295238}
2024-05-02 02:31:51 +00:00
..
2024-04-19 01:47:45 +00:00

//pdf contains the PDF plugin, its Blink-based replacement, as well as PDF utility functions that leverage PDFium. It can use low-level components that live below the content layer, as well as other foundational code like //printing. It should not use //content or anything in //components that lives above the content layer. Code that lives above the content layer should live in //components/pdf, or in the embedder. All the code here should run in sandboxed child processes.

TODO(crbug.com/40186598): Remove existing //content dependencies.