1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-07-08 10:50:33 +00:00
Commit Graph

740 Commits

Author SHA1 Message Date
Lu Wang
dd41565c3c dump empty frames for split-pages 2013-06-09 22:19:12 +08:00
Michele Redolfi
a59c6a8865 fix bug: JS error when pdf contained single quotes in its name; add myself in AUTHORS as kindly request by Lu 2013-05-31 12:24:12 +02:00
Lu Wang
92454a9883 new option --embed, --embed-*; better ArgEntry 2013-05-27 07:43:26 +08:00
Lu Wang
de26cf056e add json encoding 2013-05-09 20:30:49 +08:00
Lu Wang
57a687ccf8 remove unuseful code 2013-05-06 19:54:29 +08:00
Lu Wang
7c12b228c2 disable dragging on background images 2013-05-06 19:53:56 +08:00
Lu Wang
c1104cb00f clear map file on error; trim spaces in manifest 2013-05-06 17:25:41 +08:00
Lu Wang
6ff5b8be32 disable text optimization by default 2013-05-06 11:08:29 +08:00
Lu Wang
12f2b97445 fix space width for IE 2013-05-04 23:09:49 +08:00
Lu Wang
769f081609 set std glyph name when creating empty char 2013-05-04 22:05:43 +08:00
Lu Wang
daece48bd7 fix build for g++ 4.4.6 2013-05-04 21:21:29 +08:00
Lu Wang
a82996eeb7 check clip changes 2013-05-04 21:17:35 +08:00
Lu Wang
c30bc8a353 clipbox fix 2013-05-04 19:36:18 +08:00
Lu Wang
0cd9405565 simple clipping 2013-05-04 19:26:26 +08:00
Lu Wang
84a2490200 workaround of soft hyphen 2013-05-04 13:52:58 +08:00
Lu Wang
ebc32a9fb1 .. 2013-05-04 03:30:18 +08:00
Lu Wang
bcf3bd793e remove special handling of base 14 fonts 2013-05-04 03:29:10 +08:00
Lu Wang
8bad93c8e5 use the code2gid table when there is no one embedded 2013-05-04 02:52:30 +08:00
Lu Wang
fe4aca9faf reinitialize vertical_align in check_state 2013-05-03 15:19:09 +08:00
Lu Wang
2b96c9d7d5 .. 2013-05-03 02:10:56 +08:00
Lu Wang
9d69539fe5 do not reencode external fonts 2013-05-03 01:47:55 +08:00
Lu Wang
3ed7389ad9 dump font encoding for debug; do not force using to-unicode for ttf fonts 2013-05-03 00:51:58 +08:00
Lu Wang
64279bd26d --page-filename; a default HTML when --split-pages is on; Fixes #125 2013-05-02 16:09:42 +08:00
Lu Wang
cf5507f997 workaround for NBSP 2013-05-02 14:32:17 +08:00
Lu Wang
e7a55c6371 working on nbsp 2013-05-02 00:56:37 +08:00
Lu Wang
b8cfac4574 escape input file name; aware of 0xa0 as space 2013-05-01 23:56:20 +08:00
Lu Wang
ca69f28a4f UI tweaking; --remove-unused-glyph is off by default 2013-05-01 20:01:24 +08:00
Lu Wang
a1d8e1bf0b typo 2013-04-30 19:51:11 +08:00
Lu Wang
4d3f4655e5 new option --printing 2013-04-30 19:07:55 +08:00
Lu Wang
e65791e5ae embed-exteranl-font is on by default 2013-04-30 15:58:26 +08:00
Lu Wang
d5f9c23ec1 remove a double entrance of str_fmt 2013-04-26 15:19:12 +08:00
Lu Wang
1da9be54d9 refactor line/page stuffs, preparing to support clip 2013-04-07 23:50:23 +08:00
Lu Wang
fb7423dccd .. 2013-04-07 22:39:02 +08:00
Lu Wang
91347b2683 .. 2013-04-07 17:30:07 +08:00
Lu Wang
6746a3a0ab .. 2013-04-07 17:14:51 +08:00
Lu Wang
2799244987 .. 2013-04-07 17:11:49 +08:00
Lu Wang
cf9b917ba1 .. 2013-04-07 17:10:36 +08:00
Lu Wang
33e9d2d750 .. 2013-04-07 17:01:37 +08:00
Lu Wang
4a0f422b31 working 2013-04-07 16:10:52 +08:00
Lu Wang
da0b6fcabb .. 2013-04-07 14:25:39 +08:00
Lu Wang
ed2c6c78bf .. 2013-04-07 14:12:43 +08:00
Lu Wang
5b72899a80 .. 2013-04-07 01:13:37 +08:00
Lu Wang
d39a5331a1 .. 2013-04-07 00:58:15 +08:00
Lu Wang
68791299e5 add HTMLTextPage for further optimization 2013-04-07 00:42:54 +08:00
Lu Wang
eb26833dd1 .. 2013-04-06 23:55:32 +08:00
Lu Wang
c609f5e8e8 .. 2013-04-06 23:54:07 +08:00
Lu Wang
e64a0cfab0 .. 2013-04-06 23:52:14 +08:00
Lu Wang
8f929a663a TextLineBuffer -> HTMLTextLine 2013-04-06 23:51:33 +08:00
Lu Wang
fcb61a8fc4 base64stream -> Base64Stream 2013-04-06 23:41:58 +08:00
Lu Wang
842101d75c remove friend class 2013-04-06 17:50:06 +08:00
Lu Wang
7e5fc3080d vim modeline 2013-04-06 17:13:19 +08:00
Lu Wang
a846598ba3 clean 2013-04-06 17:10:18 +08:00
Lu Wang
ecebfb46e8 use reference instead of pointer 2013-04-06 17:01:05 +08:00
Lu Wang
1ddcaafd57 rearrange files 2013-04-06 16:45:01 +08:00
Lu Wang
bc9318e33d separate TextLinebuffer and HTMLRenderer 2013-04-06 16:32:31 +08:00
Lu Wang
88724a7bd5 clean 2013-04-06 13:01:38 +08:00
Lu Wang
eb632c529e use unique_ptr in ArgParser 2013-04-06 00:00:03 +08:00
Lu Wang
86961b2a80 restrict letter space optimization 2013-04-05 22:44:49 +08:00
Lu Wang
952cd4d3c9 merge states with different (but proportional) matrices 2013-04-05 22:17:40 +08:00
Lu Wang
ab2588a5fd merge sub/sup into one line 2013-04-05 21:53:34 +08:00
Lu Wang
623de175f5 remove incorrect code of tracking rise 2013-04-05 18:53:41 +08:00
Lu Wang
72a92bcd46 .. 2013-04-05 18:32:22 +08:00
Lu Wang
50bc976d36 .. 2013-04-05 18:27:09 +08:00
Lu Wang
111edcec47 rewrite the line merging code, to ease future optimizations 2013-04-05 18:25:46 +08:00
Lu Wang
cf636fd41f fix word space 2013-04-05 18:07:37 +08:00
Lu Wang
6a8d111db6 clean 2013-04-04 22:57:50 +08:00
Lu Wang
19b1852d62 add missing files 2013-04-04 22:14:49 +08:00
Lu Wang
c9b05d323f space-as-offset is off by default 2013-04-04 22:10:25 +08:00
Lu Wang
0b2bbbfa2e .. 2013-04-04 22:07:12 +08:00
Lu Wang
ed82bed2c3 fix 2013-04-04 21:25:23 +08:00
Lu Wang
7275ebde8b refactor state managers 2013-04-04 21:19:28 +08:00
Lu Wang
09ae5415a3 .. 2013-04-04 18:22:21 +08:00
Lu Wang
e3706538b8 .. 2013-04-04 18:17:29 +08:00
Lu Wang
7d8775ea53 optimize the first state of each line 2013-04-04 16:28:59 +08:00
Lu Wang
793c781e2b .. 2013-04-04 15:31:15 +08:00
Lu Wang
8a9d3225e5 .. 2013-04-04 14:41:49 +08:00
Lu Wang
f9a9ef2719 prevent accumulated offset 2013-04-04 12:39:49 +08:00
Lu Wang
7cc6f1efcd clean code 2013-04-04 01:35:44 +08:00
Lu Wang
add45cde74 restrict letter space optimization 2013-04-03 18:15:06 +08:00
Lu Wang
59f49cccbd embed-base-font should be default 2013-04-03 16:44:18 +08:00
Lu Wang
5102e8c3e0 make sure contents are cleared in TextLineBuffer::flush 2013-04-03 16:28:06 +08:00
Lu Wang
eaa3b35cfd still letter space optimization 2013-04-03 15:51:55 +08:00
Lu Wang
adefede660 optimize letter-space 2013-04-03 15:44:28 +08:00
Lu Wang
65fa519f2c working 2013-04-03 14:17:27 +08:00
Lu Wang
78fe4b99e8 comments 2013-04-03 14:10:11 +08:00
Lu Wang
3f962b5a9c improve text optimization 2013-04-03 14:04:39 +08:00
Lu Wang
2c96e52626 add --optimize-text; make --space-as-offse default 2013-04-03 09:06:32 +08:00
Lu Wang
0f6e8879d1 .. 2013-03-31 23:53:53 +08:00
Lu Wang
e454d784bd clean code 2013-03-31 12:53:44 +08:00
Lu Wang
472b3564e6 .. 2013-03-31 12:50:31 +08:00
Lu Wang
99213d4e0b don't add space for tiny gaps 2013-03-31 01:21:14 +08:00
Lu Wang
b1121bf02b improve space optimization 2013-03-31 01:00:04 +08:00
Lu Wang
495b04f046 fix space optimization 2013-03-30 22:37:20 +08:00
Lu Wang
0268a9d966 Merge branch 'master' of github.com:coolwanglu/pdf2htmlEX 2013-03-28 14:59:48 +08:00
Lu Wang
c24e10064c use correct metric when use cropbox; fixes 110 2013-03-28 14:59:24 +08:00
Lu Wang
7857527e9e .. 2013-03-25 22:53:39 +08:00
Lu Wang
ffd4072aa8 .. 2013-03-25 22:52:00 +08:00
Lu Wang
8942f92a9c working on space optimization 2013-03-25 12:23:29 +08:00
Lu Wang
88c18d56d6 .. 2013-03-25 00:15:08 +08:00
Lu Wang
3bdb8fdacd .. 2013-03-24 23:37:41 +08:00
Lu Wang
6b9b12afdd create empty glyphs if missing, in order to prevent displaying the .notdef glyph 2013-03-24 23:27:19 +08:00
Lu Wang
9531a3d8c2 fix line merging 2013-03-24 21:42:51 +08:00
Lu Wang
19a86e98bf .. 2013-03-24 19:06:47 +08:00
Lu Wang
f8ee702dfe .. 2013-03-24 18:24:09 +08:00
Lu Wang
90d99d5000 working on line merging 2013-03-24 17:18:13 +08:00
Lu Wang
b337163361 Merge branch 'master' of github.com:coolwanglu/pdf2htmlEX 2013-03-21 22:30:01 +08:00
Lu Wang
21a57dc324 temporarily disable the optimize function 2013-03-21 22:29:38 +08:00
Lu Wang
c57bd1a655 Merge branch 'master' of github.com:coolwanglu/pdf2htmlEX 2013-03-21 19:03:48 +08:00
Lu Wang
ab884e8dd4 fix for old gcc 2013-03-21 19:03:20 +08:00
Lu Wang
821a65ac73 fix space optimization 2013-03-21 12:27:07 +08:00
Lu Wang
8ef466714e working on space optimization 2013-03-21 12:18:26 +08:00
Lu Wang
b83611bd65 working 2013-03-20 23:46:58 +08:00
Ryan Morlok
6298c19a3b combined the sanitize and validate funcitons into a single function; limited the format characters supported to avoid validation complexity; updated documentation; feature implemented by Ryan Morlok (ryan.morlok@morlok.com) on behalf of Docalytics (http://www.docalytics.com/) 2013-03-18 01:39:02 -05:00
Ryan Morlok
ccc8ff4761 updated sanitize filename code to use size_t instead of raw number types 2013-03-18 00:29:30 -05:00
Ryan Morlok
c0972e1baa fixed missing include causing ci build to fail; cleaned up warnings about signed/unsigned comparison; cleaned up local string declarations 2013-03-17 23:51:14 -05:00
Ryan Morlok
3cafb540c6 updated split page filename formatting to not rely on regex to be compatible with older compilers. added several test cases to account for new implementation. updated documenation to more accurately reflect how split page filenames are generated. 2013-03-17 23:31:43 -05:00
Ryan Morlok
83c947462a added input sanitation for split page generation when accepting a custom outfile file name format. Added unit tests for various file name generation scenarios. 2013-03-17 00:08:06 -05:00
Ryan Morlok
af8e9c10ae Merge remote-tracking branch 'upstream/master' 2013-03-16 13:30:42 -05:00
Lu Wang
4fabd5abf0 fix #100 2013-03-10 18:17:28 +08:00
Lu Wang
942b11633d .. 2013-03-10 13:23:52 +08:00
Lu Wang
bd1c9c138f fallback mode 2013-03-09 01:45:13 +08:00
Lu Wang
72e010acf2 use cropbox by default 2013-03-07 09:37:27 +08:00
Lu Wang
34a53f9d14 use img instead of background-image for better printing 2013-03-01 13:24:29 +08:00
Lu Wang
4cf8ffb95b hide annotations for print 2013-03-01 00:00:06 +08:00
Lu Wang
f982a6964c background image css for print 2013-02-28 22:37:15 +08:00
Lu Wang
c32cb95c45 change css names 2013-02-28 15:59:14 +08:00
Ryan Morlok
ff59857ef4 Added ability to explicitly specify page name format when splitting
output across multiple pages. Can include page number position
in the output file name.

Examples:
pdf2htmlEX --split-pages 1 foo.pdf bar%d.html
pdf2htmlEX --split-pages 1 foo.pdf bar%02d.page
2013-02-27 23:59:07 -06:00
Lu Wang
81934107e0 .. 2013-02-28 12:14:45 +08:00
Lu Wang
2d5dc47367 fix build for gcc 4.4.6 2013-02-28 10:15:01 +08:00
Lu Wang
80fc92defe fix css 2013-02-28 02:52:00 +08:00
Lu Wang
eb0a1ef8a3 consistent css class names 2013-02-28 02:11:34 +08:00
Lu Wang
086a725863 .. 2013-02-26 00:40:35 +08:00
Lu Wang
7a9d98b194 simplify base64stream 2013-02-25 21:08:47 +08:00
Lu Wang
2deef0d6dd clean base64stream constructor 2013-02-25 21:05:36 +08:00
Lu Wang
f4613ceea5 process hidden text (render == 3), make them selectable in HTML. BREAK TEXT STROKE SIMULATION IN FIREFOX 2013-02-23 22:30:21 +08:00
Lu Wang
d3b935d1b3 Merge pull request #96 from iapain/process-outline-disable-error
process_outline 0 was trying to write manifest which did not exists.
2013-02-22 01:27:40 -08:00
Deepak Thukral
a22857b8ef better error messages. 2013-02-22 10:11:27 +01:00
Deepak Thukral
88d5a5b0ca process_outline 0 was trying to write manifest which did not exists. 2013-02-22 10:06:13 +01:00
Lu Wang
6d8b5d518d todo 2013-02-22 16:59:06 +08:00
Lu Wang
bc078cef78 .. 2013-02-21 17:55:58 +08:00
Lu Wang
1103f74b8a Don't mess up original glyphs when inserting a new empty char 2013-02-21 17:36:43 +08:00
Lu Wang
5947b1b953 .. 2013-02-21 16:40:15 +08:00
Lu Wang
1ba86a3764 url escape for outline items 2013-02-15 22:28:30 +08:00
Deepak Thukral
628e8897b1 process_outline only creates outline file if it's enabled 2013-02-15 10:25:54 +01:00
Lu Wang
03b0f382c8 url escaping in HTML 2013-02-15 13:07:00 +08:00
Lu Wang
e3e732971b .. 2013-02-11 15:57:10 +08:00
Lu Wang
3bc732ae0f ugly fix for FF 2013-02-06 20:52:53 +08:00
Lu Wang
3789842b47 generate css with printing metrics 2013-02-06 20:36:00 +08:00
Lu Wang
bc80a79ac0 .. 2013-02-06 20:29:48 +08:00
Lu Wang
a2ed253454 more state managers 2013-02-06 20:09:40 +08:00