
This reverts commit 8d44e4899d
.
Reason for revert: The agreed upon format needed by Lens changed, so we do need this to retrieve the singular page instead of all the text at once. Reverting and going to reland with the new approach so it is easier to cherrypick.
Original change's description:
> Add PDF engine method to get all text in the document
>
> This will be used by the Lens Overlay to pass a fraction of the document
> to be used for suggest signals while the full PDF is being processed.
> Retrieving the text in the Lens overlay controller will come in a
> followup CL.
>
> Bug: 379344946
> Change-Id: Ie52df82022916a3bb367150207d1b70e03fbce8a
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6032353
> Reviewed-by: Lei Zhang <thestig@chromium.org>
> Commit-Queue: Duncan Mercer <mercerd@google.com>
> Cr-Commit-Position: refs/heads/main@{#1385831}
Bug: 379344946
Change-Id: I87138767e09d82f9b6b93d7a10f177828a0f1291
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6042413
Reviewed-by: Lei Zhang <thestig@chromium.org>
Auto-Submit: Duncan Mercer <mercerd@google.com>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/heads/main@{#1386340}
//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.