Commit dd2ebc7
committed
Add sanitize mode for stripping invisible text
OCR processes typically produce text objects with text render mode 3, so
this option allows stripping OCR layers for recreating them. This can
also simplify documents for print processing without visual impact.1 parent 324e2cb commit dd2ebc7
File tree
5 files changed
+21
-6
lines changed- include/mupdf/pdf
- source
- pdf
- tools
5 files changed
+21
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
763 | 763 | | |
764 | 764 | | |
765 | 765 | | |
| 766 | + | |
766 | 767 | | |
767 | 768 | | |
768 | 769 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
| 365 | + | |
365 | 366 | | |
366 | 367 | | |
367 | 368 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
635 | 635 | | |
636 | 636 | | |
637 | 637 | | |
638 | | - | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
639 | 643 | | |
640 | 644 | | |
641 | 645 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1721 | 1721 | | |
1722 | 1722 | | |
1723 | 1723 | | |
1724 | | - | |
| 1724 | + | |
1725 | 1725 | | |
1726 | 1726 | | |
1727 | 1727 | | |
| |||
1733 | 1733 | | |
1734 | 1734 | | |
1735 | 1735 | | |
1736 | | - | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
1737 | 1739 | | |
1738 | 1740 | | |
1739 | 1741 | | |
| |||
1916 | 1918 | | |
1917 | 1919 | | |
1918 | 1920 | | |
| 1921 | + | |
| 1922 | + | |
1919 | 1923 | | |
1920 | 1924 | | |
1921 | 1925 | | |
| |||
1990 | 1994 | | |
1991 | 1995 | | |
1992 | 1996 | | |
1993 | | - | |
| 1997 | + | |
1994 | 1998 | | |
1995 | 1999 | | |
1996 | 2000 | | |
1997 | 2001 | | |
1998 | | - | |
| 2002 | + | |
1999 | 2003 | | |
2000 | 2004 | | |
2001 | 2005 | | |
| |||
2722 | 2726 | | |
2723 | 2727 | | |
2724 | 2728 | | |
| 2729 | + | |
2725 | 2730 | | |
2726 | 2731 | | |
2727 | 2732 | | |
| |||
2864 | 2869 | | |
2865 | 2870 | | |
2866 | 2871 | | |
| 2872 | + | |
| 2873 | + | |
2867 | 2874 | | |
2868 | 2875 | | |
2869 | 2876 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
136 | | - | |
| 137 | + | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| |||
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| 153 | + | |
152 | 154 | | |
153 | 155 | | |
154 | 156 | | |
| |||
0 commit comments