31298 Commits

Author SHA1 Message Date
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
Kovid Goyal
1e9517f40f
When listing fonts check if they are used 2019-09-13 09:12:23 +05:30
Kovid Goyal
dfc09ede98
Get the tests to pass with webengine 2019-09-13 09:12:22 +05:30
Kovid Goyal
a528cef0ee
py3 fixes 2019-09-13 09:12:22 +05:30
Kovid Goyal
10e5d3c486
Code to get used fonts in a page 2019-09-13 09:12:22 +05:30
Kovid Goyal
c4e3fda682
Code to list fonts in a PDF file 2019-09-13 09:12:22 +05:30
Kovid Goyal
e575be49e3
Add support for page number mapping 2019-09-13 09:12:22 +05:30
Kovid Goyal
43d7e2119a
Implement printable ToC for PDF Output 2019-09-13 09:12:22 +05:30
Kovid Goyal
089789dd19
Report progress in PDF text output plugin 2019-09-13 09:12:22 +05:30
Kovid Goyal
9f87cd7f99
Add a note about using page margins from the input document 2019-09-13 09:12:22 +05:30
Kovid Goyal
974070ef93
Log toc entry resolution failures 2019-09-13 09:12:22 +05:30
Kovid Goyal
32e83987d6
PDF Outline generation now works 2019-09-13 09:12:22 +05:30
Kovid Goyal
39dae008c2
Use PdfDestination to create destinations 2019-09-13 09:12:22 +05:30
Kovid Goyal
27c200ea8d
Run conversion of each margin group to PDF in parallel 2019-09-13 09:12:22 +05:30
Kovid Goyal
f0584b8fdb
Get document links working when PDF is generated in parts 2019-09-13 09:12:21 +05:30
Kovid Goyal
7b03c7567c
Some TODOs 2019-09-13 09:12:21 +05:30
Kovid Goyal
0cebe16938
Get anchor locations from PDF segments 2019-09-13 09:12:21 +05:30
Kovid Goyal
600f71fda6
Fix preview going to top anchor not working 2019-09-13 09:12:21 +05:30
Kovid Goyal
5067454aa4
PDF Output: Add support for document margins 2019-09-13 09:12:21 +05:30
Kovid Goyal
19fc96cb31
Remove no longer implementable option 2019-09-13 09:12:21 +05:30
Kovid Goyal
6814d9e424
Report progress writing images 2019-09-13 09:12:21 +05:30
Kovid Goyal
56a3427b99
Use PDFStream to set metadata for image PDFs
No need to reparse via PoDoFo
2019-09-13 09:12:21 +05:30
Kovid Goyal
22ba6c3ab7
Pass JPEG images unmodified when creating PDF image pages 2019-09-13 09:12:21 +05:30
Kovid Goyal
4815c6167e
Use the calibre PDF engine for image to PDF conversion
Will allow us to pass through JPG images unmodified
2019-09-13 09:12:21 +05:30
Kovid Goyal
8029b3cc83
Code to add cover to textual PDF output 2019-09-13 09:12:21 +05:30
Kovid Goyal
6c78ae2105
Nicer page break insertion 2019-09-13 09:12:20 +05:30