Compress embedded font and ToUnicode streams
Route-D PDFs embedded full FontFile2 programs and ToUnicode CMaps uncompressed. Deflate both streams and declare /Filter /FlateDecode while keeping /Length1 as the uncompressed font length. The minimal route-D PDF now renders to 13.5 KB, and the pdfTeX raster comparison still matches.
This commit is contained in:
1 parent
aeacf53518
commit
e052a0d0f3
6 files changed
+25
-7
No files matched your search
@@ -2455,6 +2455,7 @@ mod tests {
|
||||
assert!(text.contains("/BaseFont /LiberationSerif"));
|
||||
assert!(text.contains("/Subtype /Type0"));
|
||||
assert!(text.contains("/FontFile2"));
|
||||
assert!(text.contains("/Filter /FlateDecode"));
|
||||
assert!(text.contains("/ToUnicode"));
|
||||
assert!(text.contains("Tj"));
|
||||
assert!(text.trim_end().ends_with("%%EOF"));
|
||||
|
||||
Reference in new issue
Block a user