Console View
|
|
|
|||
| 8ff00d5231e7... |
Albert Astals Cid
aacid@kde.org |
|
|
| Enable -Wunused-parameter | |||
| 104cc3864bc7... |
Albert Astals Cid
aacid@kde.org |
|
|
| update po files | |||
| 8007f50d43ec... |
Albert Astals Cid
aacid@kde.org |
|
|
|
Add two goo/glibc.h includes that were wrongly removed We need them for MSVC |
|||
| 9872aafd9811... |
Albert Astals Cid
aacid@kde.org |
|
|
|
Add an ifdef for __MINGW32__ Yes, it's also defined with the mingw-64 compiler I have not been able to find a format that makes gcc, clang and mingw happy :( |
|||
| 11f70896299d... |
Albert Astals Cid
aacid@kde.org |
|
|
| Remove unused parameters | |||
| 822f1a0a322a... |
Albert Astals Cid
aacid@kde.org |
|
|
| Add missing include | |||
| 1bc43354dac2... |
Albert Astals Cid
aacid@kde.org |
|
|
|
Remove gmem.h from Object.h We don't need to use gmalloc there makes it easier to see which other places use gmem.h |
|||
| 9cdc862ef8c1... |
Albert Astals Cid
aacid@kde.org |
|
|
|
Include cleanup As suggested by QtCreator |
|||
| 9b071a11d22d... |
Albert Astals Cid
aacid@kde.org |
|
|
|
Sound: Take/return const reference instead of pointer We know it's never going to be null |
|||
| ed030c5d3130... |
Albert Astals Cid
aacid@kde.org |
|
|
| Update (C) | |||
| f472b4abca92... |
Stefan Brüns
stefan.bruens@rwth-aachen.de |
|
|
|
Qt: Allow Poppler::Page to dump text in reading order, extend test utility When extracting content from PDFs, the text should be extracted in text flow/reading order, i.e. in the pdftotext default order. Extend the TextLayout enum with a corresponding value to support this use case. |
|||
| c4513b96fc81... |
Stefan Brüns
stefan.bruens@rwth-aachen.de |
|
|
|
TextOutputDev: Use dump() to implement getText() As all missing features were added to the getText(...) method, it is possible to leverage it for the getText(...) implementation, and thus to remove a large amount of mostly duplicate code. This also adds support for retrieving the text in "flow" order, while formerly only PhysicalLayout and raw (document stream) order were possible. This also fixes differences between pdftotext and the Qt bindings for some PhysicalLayout cases, i.e. insertion of blank lines for empty page regions or spaces between paragraphs. Fixes poppler#1476. |
|||
| 9ef19b9e6e92... |
Stefan Brüns
stefan.bruens@rwth-aachen.de |
|
|
|
TextOutputDev: Pass `PhysicalLayout` flag to TextPage::getText explicitly TextPage::getText behaves as if the TextOutputDev physLayout flag was set. Set the flag in the Qt wrappers, pass it down, and add a comment where the code is lacking. |
|||
| 71c7edc2d34f... |
Stefan Brüns
stefan.bruens@rwth-aachen.de |
|
|
|
TextOutputDev: Extend TextPage::dump capabilities to match getText `dump()` and `getText()` are very similar, though there are a few differences: - getText() allows to specify an area - dump() supports a "text flow" output, while getText() only supports raw and physical layout. Add support for an extraction `area`, which defaults to the whole page, to the dump() method. |
|||
| eb97c8501db9... |
Stefan Brüns
stefan.bruens@rwth-aachen.de |
|
|
|
TextOutputDev: Extract code to determine line/selection overlap from getText method Currently the check if and where the selection overlaps a given line is open coded in the getText line loop, making it hard to read. It also misses to optimize the trivial case where the line is fully in the selection. |
|||
| c0dba4c914f2... |
Stefan Brüns
stefan.bruens@rwth-aachen.de |
|
|
|
Move PDFRectangle to a separate header file, make methods constexpr The class is very lightweight, without any further dependencies. Making it available outside of Page.h allows to consolidate several cases where e.g. bounding boxes are declared as a quadruple of doubles, while PDFRectangle would be a much better fit - most notably also for several methods which use four pointers to double to return a BBox. All methods of PDFRectangle can be constexpr, including the constructors. This also allows it to test it at compile time using static_assert. All methods but clipTo were already implicitly inline. It is slightly more complex than the other methods, but having it constexpr is a requirement for testing it via static_assert. |
|||
| 46236104112b... |
Stefan Brüns
stefan.bruens@rwth-aachen.de |
|
|
|
TextOutputDev: Fix erroneous newline for flipped pages The word space condition evaluates to false in too many case cases, resulting in a newline after almost every word instead of a regular space. |
|||
| 8109826642bb... |
Stefan Brüns
stefan.bruens@rwth-aachen.de |
|
|
|
[TextOutputDev] Use word center point for sorting text lines Typically when words are sorted by position, the relation (a.xMin <=> b.xMin) == (a.xMax <=> b.xMax) holds. I.e sorting words by left/center/right position yields the exact same result, i.e. this change has no visible effect. Though with some legacy/non-Unicode typefaces which use combining marking character, words are broken up in the middle, and the resulting word fragments may overlap or even be contained in preceding word fragments - the combining mark bounding boxes are contained in the bounding box of the associated glyph. One such typeface is the Indic Devanagari KrutiDev family. For these, comparing the center position of the words is required to restore the original text stream. Fixes poppler#1624. |
|||
|
|||
| 9827661c15d6... |
Albert Astals Cid
aacid@kde.org |
|
|
| Tweak ifdef to make clang-tidy happy | |||
| 868efcce2172... |
Albert Astals Cid
aacid@kde.org |
|
|
| Update (C) | |||
| c7113017dda0... |
Albert Astals Cid
aacid@kde.org |
|
|
| pointer to const reference | |||
| f39026946438... |
Albert Astals Cid
aacid@kde.org |
|
|
| Make SplashPattern functions const | |||
| f60d35ddeda0... |
Albert Astals Cid
aacid@kde.org |
|
|
| Make the SplashClip in SplashState a unique ptr | |||
| 708282b585a8... |
Albert Astals Cid
aacid@kde.org |
|
|
| Remove unused functions | |||
| 7367c260cbfd... |
Albert Astals Cid
aacid@kde.org |
|
|
| Splash: std::array<SplashCoord> instead of pointer | |||
| c2378a0fe66d... |
Albert Astals Cid
aacid@kde.org |
|
|
| Splash: Take objects by const & instead of pointer | |||
| 2236924ca602... |
Albert Astals Cid
aacid@kde.org |
|
|
| Splash: Return unique_ptr in two functions | |||
| ccba2574090d... |
Albert Astals Cid
aacid@kde.org |
|
|
|
Splash: Implement 4 blending modes for mono1/8 It may not be the best/most efficient but it fixes 5 files in my private test suite and regresses none. Fixes #1651 |
|||
| 660c0230a55f... |
Albert Astals Cid
aacid@kde.org |
|
|
| Update po[t] files | |||
| 808094b11c07... |
Albert Astals Cid
aacid@kde.org |
|
|
|
cmakedefine -> cmakedefine01 This means the define is always defined, either 0 or 1, which means we change the #ifdefs to #ifs It helped surfacing a bug in which ENABLE_ZLIB_UNCOMPRESS should be in poppler-config.h and not config.h since it's used in Stream.h |
|||
| 5c8fbf0c96aa... |
Albert Astals Cid
aacid@kde.org |
|
|
|
pdfsig: Use optional for signatureNumber Instead of using -1 as "optional no value marker" |
|||
| 57f429d72bf6... |
Albert Astals Cid
aacid@kde.org |
|
|
| I'm relatively sure this code does not compile with djgpp | |||
| 5f68ea463947... |
Albert Astals Cid
aacid@kde.org |
|
|
|
Remove EmbedStream rewind and restore We can achieve what we want with careful use of reset and setting back the replay variable to false once we read the end of what we have recorded It also contains a fix for EmbedStream::getChars in the replay case that was ignoring the amount of requested characters (how did not crash?) and not moving the bufPos forward |
|||
| 55a05e3452a7... |
Albert Astals Cid
aacid@kde.org |
|
|
|
Fix EmbedStream::reset One can't really reset EmbedStreams The previous code tried to move the base stream to the same position as before when resetting, but that's not good enough because the position is based on file position, but that stream may be compressed so there are many actual characters that correspond to the same file position so reading the stream until we are in that position is not enough So reuse the record/replay functionality that was introduced much earlier to solve this "can not reset problem" |
|||
| a22bd51bc17d... |
Albert Astals Cid
aacid@kde.org |
|
|
| glib: change iterator internal indexes to their actual types | |||
| 61521a511e29... |
Albert Astals Cid
aacid@kde.org |
|
|
|
cpp: Change stream operator signature now that we broke BC Makes clazy happier |
|||
| 745432763149... |
Albert Astals Cid
aacid@kde.org |
|
|
|
cpp: Extract the (size_t)-1 to a const variable Makes the core easier to read and isolates the "uglyness" of casting -1 to an unsigned type |
|||
| 73babce9e7a4... |
Albert Astals Cid
aacid@kde.org |
|
|
|
cpp: Remove deprecated time functions that have a Y2K38 problem Their counterparts were added more than 3 years ago, hopefully anyone using them has already ported to the new ones |
|||
| 7369704d41df... |
Albert Astals Cid
aacid@kde.org |
|
|
| DCTStream: less type casting | |||
| 02b4fab490ac... |
Albert Astals Cid
aacid@kde.org |
|
|
| pdfunite: Move iterator variable declaration to the for loop itself | |||