ladybird/Userland/Applications/PDFViewer
Nico Weber 21917e7b1e LibPDF+PDFViewer+MacPDF: Don't draw hidden text by default
Text can be rendered in various ways in PDFs: Filled, stroked,
both filled and stroked, set as clipping path, hidden, or
some combinations thereof.

We don't implement any of this at the moment except "filled".

Hidden text is used in scanned documents: The image of the scan is
drawn in the background, and then OCRd text is "drawn" as hidden
on top of the scanned bitmap. That way, the (hidden) text can be
selected and copied, and it looks like you're selecting text from
the scanned bitmap. Find-in-page also works similarly. (We currently
have neither text selection nor find-in-page, but one day we will.)

Now that we have pretty good support for CCITT and are growing some
support for JBIG2, we now draw both the scanned background image
as well as the foreground text. They're not always perfectly aligned.

This change makes it so that we don't render text that's marked as
hidden. (We still do most of the coordinate math, which will probably
come in handy at some point when we implement text selection.)

This makes these scanned documents appear as they're supposed to
appear (at least in documents where we manage to decode the background
bitmap).

This also adds a debug option to force rendering of hidden text.
2024-03-16 13:10:48 -04:00
..
CMakeLists.txt LibGUI+PDFViewer: Move NumericInput into LibGUI 2024-01-10 13:13:27 +00:00
main.cpp Userland: Make Window::set_main_widget() non-fallible 2023-09-21 10:20:23 +02:00
OutlineModel.cpp PDFViewer: Create OutlineModel items with the correct pointer 2023-03-22 22:56:24 +01:00
OutlineModel.h PDFViewer: Inform about selections on Outline view 2022-12-17 19:40:52 +01:00
PDFViewer.cpp LibPDF+PDFViewer+MacPDF: Don't draw hidden text by default 2024-03-16 13:10:48 -04:00
PDFViewer.h LibPDF+PDFViewer+MacPDF: Don't draw hidden text by default 2024-03-16 13:10:48 -04:00
PDFViewerWidget.cpp LibPDF+PDFViewer+MacPDF: Don't draw hidden text by default 2024-03-16 13:10:48 -04:00
PDFViewerWidget.h PDFViewer: Hide the rendering diagnostics window by default 2024-03-04 10:43:41 +01:00
SidebarWidget.cpp Userland: Prefer _string over _short_string 2023-08-08 07:37:21 +02:00
SidebarWidget.h Everywhere: Fix badly-formatted includes 2023-01-02 11:06:15 -05:00