diff options
author | bobzel <zzzman@gmail.com> | 2024-04-25 17:15:20 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-04-25 17:15:20 -0400 |
commit | d6720fa48d78cc313d6418acd8cbdaeda965285c (patch) | |
tree | d9cec7f7b031b20bfc5423bc48f8791074b2d5c1 /src/client/views/nodes/PDFBox.tsx | |
parent | bd3b34cce2ad85bfc96c16304b532d1510fd359e (diff) |
changed marqueeAnnotator to save inline annotations as text strings instead of Docs. enabled making image crops of text selections on PDFs. cleaned up webboxrendered lint promses, and Annotation render
Diffstat (limited to 'src/client/views/nodes/PDFBox.tsx')
-rw-r--r-- | src/client/views/nodes/PDFBox.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/views/nodes/PDFBox.tsx b/src/client/views/nodes/PDFBox.tsx index b03b90418..fdba9ff49 100644 --- a/src/client/views/nodes/PDFBox.tsx +++ b/src/client/views/nodes/PDFBox.tsx @@ -110,6 +110,10 @@ export class PDFBox extends ViewBoxAnnotatableComponent<FieldViewProps>() implem crop = (region: Doc | undefined, addCrop?: boolean) => { if (!region) return undefined; const cropping = Doc.MakeCopy(region, true); + cropping.layout_unrendered = false; // text selection have this + cropping.text_inlineAnnotations = undefined; // text selections have this -- it causes them not to be rendered. + cropping.backgroundColor = undefined; // text selections have this -- it causes images to be fully transparent + cropping.opacity = undefined; // text selections have this -- it causes images to be fully transparent const regionData = region[DocData]; regionData.lockedPosition = true; regionData.title = 'region:' + this.Document.title; |