is the toUnicode CMap editable?
- July 8, 2025
- 1 reply
- 552 views
I have a PDF that uses several fonts, and in one of them, entering a space renders a 'W' instead of an actual space character. Upon inspecting the font's internal data in the PDF, I found that the ToUnicode CMap has an incorrect mapping. Is it possible to edit the ToUnicode CMap?
reference to the font internal and attached a PDF and font file for reference
/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo
<< /Registry (Adobe)
/Ordering (UCS)
/Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<00> <FF>
endcodespacerange 68
beginbfchar <01> <0020>
<02> <0028>
<03> <0029>
<04> <002c>
<05> <002d>
<06> <002e>
<07> <002f>
<08> <0030>
<09> <0031>
<0a> <0034>
<0b> <0035>
<0c> <0036>
<0d> <003a>
<0e> <003b>
<0f> <0041>
<10> <0042>
<11> <0043>
<12> <0044>
<13> <0046>
<14> <0047>
<15> <0049>
<16> <004b>
<17> <004c>
<18> <004d>
<19> <004e>
<1a> <004f>
<1b> <0050>
<1c> <0052>
<1d> <0053>
<1e> <0054>
<1f> <0055>
<20> <0057>
<21> <0058>
<22> <005a>
<23> <0061>
<24> <0062>
<25> <0063>
<26> <0064>
<27> <0065>
<28> <0066>
<29> <0067>
<2a> <0068>
<2b> <0069>
<2c> <006a>
<2d> <006b>
<2e> <006c>
<2f> <006d>
<30> <006e>
<31> <006f>
<32> <0070>
<33> <0071>
<34> <0072>
<35> <0073>
<36> <0074>
<37> <0075>
<38> <0076>
<39> <0077>
<3a> <0078>
<3b> <0079>
<3c> <007a>
<3d> <00b0>
<3e> <00b2>
<3f> <2013>
<40> <2019>
<41> <201c>
<42> <201d>
<43> <00660069>
<44> <0066006c>
endbfchar
endcmap
CMapName currentdict /CMap defineresource pop
end
end
