38896 Commits

Author SHA1 Message Date
Kovid Goyal
55fbc89eb6
Slow an initial load spinner while book is being rendered 2019-09-13 09:12:27 +05:30
Kovid Goyal
67fcb5345d
DRYer 2019-09-13 09:12:27 +05:30
Kovid Goyal
a38defca58
Implement loading of annotations from multiple sources 2019-09-13 09:12:27 +05:30
Kovid Goyal
742f322f89
Implement save/restore of last read position 2019-09-13 09:12:27 +05:30
Kovid Goyal
2eefa97a1d
When displaying book, ensure the iframe has focus 2019-09-13 09:12:27 +05:30
Kovid Goyal
85b8ee0130
Use the newer technique for setting app uid 2019-09-13 09:12:26 +05:30
Kovid Goyal
8cb9dc1ca1
py3: Fix compilation of viewer code 2019-09-13 09:12:26 +05:30
Kovid Goyal
cd64459718
Fix errors reported in the console for listeners that use preventDefault() 2019-09-13 09:12:26 +05:30
Kovid Goyal
84c8544e14
Cleanup python str -> podofo str 2019-09-13 09:12:26 +05:30
Kovid Goyal
bc4c988fce
typo 2019-09-13 09:12:26 +05:30
Kovid Goyal
66eebb954d
Fix building on py2 2019-09-13 09:12:26 +05:30
Kovid Goyal
e4c763d23e
Add support for maths to PDF output 2019-09-13 09:12:26 +05:30
Kovid Goyal
0f02312390
De-dup images in the PDF 2019-09-13 09:12:26 +05:30
Kovid Goyal
bdebe91156
Spped up fonts_are_identical 2019-09-13 09:12:26 +05:30
Kovid Goyal
e77df26174
Fix merging of loca tables 2019-09-13 09:12:26 +05:30
Kovid Goyal
dd5961af10
Write the loca table in optimum format
Also update the head and maxp tables when subsetting
2019-09-13 09:12:26 +05:30
Kovid Goyal
7b6dc6eed9
Dont bother merging identical TrueType fonts, simply pick one and discard the rest 2019-09-13 09:12:25 +05:30
Kovid Goyal
bf602f48ed
Detect font usage inside XObjects as well 2019-09-13 09:12:25 +05:30
Kovid Goyal
c842a82a0f
When replacing font references do it in XObjects as well 2019-09-13 09:12:25 +05:30
Kovid Goyal
227679985f
Implement imposing headers/footers onto their target pages 2019-09-13 09:12:25 +05:30
Kovid Goyal
848d91c6d8
Hide overflow from headers/footers 2019-09-13 09:12:25 +05:30
Kovid Goyal
b8dc1d791c
Dont use iframes for header/footers
This breaks backwards compat with javascript, but backwards compat is
not really preserved anyway. Much better performance without iframes
2019-09-13 09:12:25 +05:30
Kovid Goyal
e64b8b11fb
Ensure no resources are loaded from outside the container 2019-09-13 09:12:25 +05:30
Kovid Goyal
8fcd240844
Dont need settle_time for header/footer rendering 2019-09-13 09:12:25 +05:30
Kovid Goyal
93b5adacdb
Add support for _SECTION_ in templates 2019-09-13 09:12:25 +05:30
Kovid Goyal
4e3e0f8461
Work on adding headers/footers 2019-09-13 09:12:25 +05:30
Kovid Goyal
316d0c35a1
... 2019-09-13 09:12:25 +05:30
Kovid Goyal
b6c8d9da5e
Dont bother hashing object numbers, just use them directly as the hash 2019-09-13 09:12:25 +05:30
Kovid Goyal
e080435407
Just use size as hash 2019-09-13 09:12:24 +05:30
Kovid Goyal
66b7037cd2
Deduplicate Type3 glyph definitions 2019-09-13 09:12:24 +05:30
Kovid Goyal
32d483b3ce
Cleaner exception handling 2019-09-13 09:12:24 +05:30
Kovid Goyal
157c5a1cb7
py3 porting 2019-09-13 09:12:24 +05:30
Kovid Goyal
6057bcbb5a
Also delete DescendantFonts of Type0 fonts 2019-09-13 09:12:24 +05:30
Kovid Goyal
7f3bd476d3
Add support for removing unused Type3 fonts as well 2019-09-13 09:12:24 +05:30
Kovid Goyal
470193f222
Restore the --uncompressed-pdf option 2019-09-13 09:12:24 +05:30
Kovid Goyal
0d1b99a4a4
Implement merging of cmaps 2019-09-13 09:12:24 +05:30
Kovid Goyal
b573c33d1c
Merging fonts now works for truetype fonts 2019-09-13 09:12:24 +05:30
Kovid Goyal
c383a2ce25
Add a tooltip documenting the use of the custom URL field 2019-09-13 09:12:24 +05:30
Kovid Goyal
d304e08ec1
Code to merge W arrays 2019-09-13 09:12:24 +05:30
Kovid Goyal
d994cf7895
Work on merging fonts 2019-09-13 09:12:24 +05:30
Kovid Goyal
929f65ecf2
Optionally get font data when listing fonts 2019-09-13 09:12:23 +05:30
Kovid Goyal
0705abf946
Convert individual HTML files separately
Merge fonts instead.
2019-09-13 09:12:23 +05:30
Kovid Goyal
19ca8d8bd8
Couple more PDF utilities 2019-09-13 09:12:23 +05:30
Kovid Goyal
4bf5b9c755
Use a namedtuple for margins
Makes it hashable
2019-09-13 09:12:23 +05:30
Kovid Goyal
b2472ea80a
Fix link updating not working 2019-09-13 09:12:23 +05:30
Kovid Goyal
6a56d253dc
Make AnchorLocation mutable 2019-09-13 09:12:23 +05:30
Kovid Goyal
4a362c31b0
Dont load calibre fonts since webengine does not use them anyway 2019-09-13 09:12:23 +05:30
Kovid Goyal
6caf7cf77a
Remove unused fonts from generated PDF 2019-09-13 09:12:23 +05:30
Kovid Goyal
24a344546e
DRYer 2019-09-13 09:12:23 +05:30
Kovid Goyal
4132a874d9
Just use a space char for links 2019-09-13 09:12:23 +05:30