Skip to main content

emit_to_unicode_cmap

Function emit_to_unicode_cmap 

Source
pub(crate) fn emit_to_unicode_cmap(pdf: &mut Pdf, id: Ref, enc: &DocEncoding)
Expand description

Emits a /ToUnicode CMap stream that round-trips every byte used by enc back to its original Unicode codepoint, so copy-paste and full-text search work for both WinAnsi natives and /Differences-remapped slots.