
If a page has an optional CropBox which has a different offset compared to its required MediaBox, then this can impact the positioning for Ink strokes applied to the page. Update the transform generation used when applying Ink strokes into the PDF page to account for any offset from the intersection of these two boxes. Fixed: 402043701 Change-Id: I4126dc52ddf3533580a94d2f186a46b043f0985b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6346007 Commit-Queue: Alan Screen <awscreen@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org> Reviewed-by: Andy Phan <andyphan@chromium.org> Cr-Commit-Position: refs/heads/main@{#1432426}
//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.