Laurent Montel
c2fc9836e8
Fix iterator
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=882957
18 years ago
Pino Toscano
d51be3729b
add a way to disable the internal page cache, and disable it by default in the generator
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=843095
18 years ago
Pino Toscano
2f12a3a3d6
allocate less temporary buffers; this should make the backend use less memory when rendering
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=843088
18 years ago
Pino Toscano
16b864fe24
statically allocate the format mask instead of creating+deleting
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=843087
18 years ago
Pino Toscano
27fc7f9144
Apply workaround as suggested by DjVuLibre's maintainer Leon Bottou to avoid a potential crash in rare situations.
...
The real fix should be applied already in DjVuLibre's CVS.
Thanks Leon!
BUG: 168030
svn path=/trunk/KDE/kdegraphics/okular/; revision=842846
18 years ago
Pino Toscano
c3bb88f01d
free the minilisp expression of the outline after the conversion to the dom document
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=784821
18 years ago
Pino Toscano
57cbf9fa91
add dynamic getters and setters for color, comment and line width
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=784136
18 years ago
Pino Toscano
2f985db7d0
Store the miniexp_t for annotations in the KDjVu::Annotation object directly, and parse all the properties there.
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=784025
18 years ago
Pino Toscano
823edf52b1
make KDjVu no more a QObject, and remove the traces of "async" loading (never really implemented)
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=716072
19 years ago
Pino Toscano
ee925f2e58
add a postscript export overload that takes a QFile*, so we can properly use KTemporaryFile with printing
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=709582
19 years ago
Pino Toscano
dea213be87
use the proper zero-method with DDJVUAPI_VERSION >= 18
...
svn path=/trunk/KDE/kdegraphics/okular/; revision=695779
19 years ago
Pino Toscano
a9f0d2eb46
Try to extract the text entities (thus the text) from a DjVu document.
...
At the moment the granularuty of the extracted text is "word", as "char" is quite difficult to find in documents.
Kind of works, let's hope it will like all the documents around.
svn path=/trunk/KDE/kdegraphics/okular/; revision=695740
19 years ago
Pino Toscano
5150419e81
adapt the debug stuff to the new kdebug way:
...
- make the output looking more or less like before (using nospace() or removing the spaces)
- remove endl and '\n' at the end of debug outputs
- fixing the QDebug operator<<'s around
- isolate the debug area number of the core into a separate header, and apply it instead of the numbers found in textpage.cpp
svn path=/trunk/KDE/kdegraphics/okular/; revision=694667
19 years ago
Pino Toscano
59f8fa67e5
ok i was wrong with this...
...
svn path=/trunk/playground/graphics/okular/; revision=627424
19 years ago
Pino Toscano
2db51ef56b
Read information like 'title', 'author', 'editor', 'publisher', 'year' and 'volume' from DjVu documents, and make them visible in the Information dialog.
...
A big Thanks! to liquidat for pointing me in the right place to look for :)
CCMAIL: liquidat <liquidat@gmail.com>
svn path=/trunk/playground/graphics/okular/; revision=627217
19 years ago
Pino Toscano
2479bb7cb5
one more check, and try opening the file as first action
...
svn path=/trunk/playground/graphics/okular/; revision=625705
19 years ago
Pino Toscano
3d989381f9
don't look twice in the hash
...
svn path=/trunk/playground/graphics/okular/; revision=625703
19 years ago
Pino Toscano
d0744fa204
use a feature from v18 only if we have it
...
svn path=/trunk/playground/graphics/okular/; revision=625656
19 years ago
Pino Toscano
f0a80b14fc
Take a bit less time to load a DjVu document: instead of decoding all the pages during the loading to get their info, just decode their status, doing the real page loading when needed (usually when generating their pixmaps).
...
svn path=/trunk/playground/graphics/okular/; revision=625636
19 years ago
Pino Toscano
2de89d6eb8
don't leak the format mask and the (empty) kdjvu
...
svn path=/trunk/playground/graphics/okular/; revision=620781
19 years ago
Pino Toscano
5c0de8b638
Add printing support for DjVu files. (It is also PostScript exporting, as you can print to file to get a PS document.)
...
svn path=/trunk/playground/graphics/okular/; revision=606585
20 years ago
Pino Toscano
4f305424bc
read the annotations only once, ie when loading the pages
...
svn path=/trunk/playground/graphics/okular/; revision=605455
20 years ago
Pino Toscano
cb414fbf1d
remember, pino, remember: djvu coordinates refer to the lower-left corner of a page.
...
fix the coordinate loading for the annotations
svn path=/trunk/playground/graphics/okular/; revision=604204
20 years ago
Pino Toscano
28c63b44e8
read the 'width' info for lines
...
svn path=/trunk/playground/graphics/okular/; revision=604196
20 years ago
Pino Toscano
825c725eaf
change the internal KDjVu data storage to an hash of variants
...
svn path=/trunk/playground/graphics/okular/; revision=604173
20 years ago
Pino Toscano
0c4a081174
Add preliminary support for DjVu Text and Line annotations.
...
This means we can read them almost correctly, but there are some problems with placements and colors.
svn path=/trunk/playground/graphics/okular/; revision=604165
20 years ago
Pino Toscano
a29cbda39e
The DjVu backend can now read hyperlinks whose url is decoded as "(url href target)".
...
svn path=/trunk/playground/graphics/okular/; revision=604073
20 years ago
Pino Toscano
eb83fc5d27
adapt the djvu generator (and kdjvu) to handle images instead of pixmaps
...
add a basic TODO
svn path=/trunk/playground/graphics/okular/; revision=599108
20 years ago
Tobias Koenig
fccd412d69
* Added documentation to Generator API
...
* Moved all implementations to generator.cpp
* Added 'const' where it make sense
* Adapted all generators (except gs)
svn path=/trunk/playground/graphics/okular/; revision=597525
20 years ago
Pino Toscano
2d64d446d7
Read correctly the 'poly' links for DjVu documents.
...
svn path=/trunk/playground/graphics/okular/; revision=561918
20 years ago
Pino Toscano
67fabc7659
- adapted the DjVu generators to the new ObjectRect API
...
- read also the links with an elliptic shape
- some code less
svn path=/trunk/playground/graphics/okular/; revision=561892
20 years ago
Pino Toscano
0211c662e9
now that KDjVu works nicely, reduce the debug
...
svn path=/trunk/playground/graphics/okular/; revision=559952
20 years ago
Pino Toscano
c39fdf8f5c
Improve the hyperlink support, and make it less error-prone. Micro suppport for URL hyperlinks.
...
svn path=/trunk/playground/graphics/okular/; revision=555968
20 years ago
Pino Toscano
39e73f95f6
Read correctly the DjVu area maps (aka links) referring to local pages.
...
svn path=/trunk/playground/graphics/okular/; revision=555915
20 years ago
Pino Toscano
a5795e2726
Now the DjVu generator is able to extract the list of bookmarks (aka Table of Contents) from the DjVy document, if it has any.
...
svn path=/trunk/playground/graphics/okular/; revision=555320
20 years ago
Pino Toscano
5242e3bd7e
encode the file name correctly
...
svn path=/trunk/playground/graphics/okular/; revision=552037
20 years ago
Pino Toscano
dc0168a8f4
add the info about the number of components of the current document
...
svn path=/branches/work/kde4/playground/graphics/okular/; revision=550300
20 years ago
Pino Toscano
d0ac95dafd
A new backend for oKular: DjVu:
...
* uses the DjVuLibre for loading the DjVu files
* can rotate the pages
* has a cache (with few elements) with the most recently used generated pixmaps,
to reduce a bit the number of pixmap generation
There could be some issues, but mainly it works nicely.
svn path=/branches/work/kde4/playground/graphics/cmake/; revision=549184
20 years ago