Package: poppler-data
Version: 0.4.7-1
Severity: normal
Dear Maintainer,
We are faced with a PDF form that uses ArialUnicodeMS non-embedded. pdffonts
output is:
name type encoding emb sub
uni object ID
------------------------------------ ----------------- ---------------- --- ---
--- ---------
SNVRMR+ArialUnicodeMS CID TrueType Identity-H yes yes
yes 132 0
SNVRMR+TimesNewRomanPSMT CID TrueType Identity-H yes yes
yes 135 0
ArialUnicodeMS CID TrueType UniJIS-UCS2-H no no
no 117 0
I even have an Arial TTF font installed, but that did not help.
Some recommend Liberation Sans as free Arial replacement.
Thus my ~/.config/fontconfig/fonts.conf is this:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="pattern">
<test name="family">
<string>ArialUnicodeMS</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Liberation Sans</string>
<!-- putting "Arial" here does not help -->
</edit>
</match>
</fontconfig>
I looked at the qpdf --qdf output of the file and found the (probably) relevant
part:
%% Object stream: object 10, index 5; original object ID: 118
<<
/BaseFont /ArialUnicodeMS
/CIDSystemInfo <<
/Ordering (Japan1)
/Registry (Adobe)
/Supplement 4
>>
/DW 1000
/FontDescriptor 11 0 R
/Subtype /CIDFontType2
/Type /Font
I have poppler-data 0.4.7-1 installed, and the file
/usr/share/poppler/cMap/Adobe-Japan1/Adobe-Japan1-4 is there (albeit
suspiciously small - 140 lines).
When entering data into the form's textfields, the data comes out scrambled.
Most likely the mapping is wrong. I do not know if this is a bug in
poppler-data's cMap or in Liberation Sans, but installing the appropriate
language pack for Adobe Reader on Windows makes the form usable without
scrambling.
-- System Information:
Debian Release: 8.6
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/12 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages poppler-data depends on:
ii dpkg 1.17.27
poppler-data recommends no packages.
Versions of packages poppler-data suggests:
pn fonts-arphic-ukai <none>
pn fonts-arphic-uming <none>
pn fonts-japanese-gothic | fonts-ipafont-gothic <none>
pn fonts-japanese-mincho | fonts-ipafont-mincho <none>
pn fonts-nanum <none>
ii ghostscript 9.06~dfsg-2+deb8u3
ii poppler-utils 0.26.5-2+deb8u1
-- no debconf information