0

In the first 9.2.2 release w/Windows 10 Pro (1909 : 1863.1198), there was no problem.
But now in the 9.2.2 release w/Windows 10 Pro (20H2 : 19042.630), Garbled characters are occurring.
( 2020/12/08 16:47 37,163,008 pdf24-creator-9.2.2.msi )

I compared the results of the two installations.

There was one difference.

OK installation: "C:\Program Files (x86)\PDF24\gs\lib\cidfmap" file exist.
NG installation: not exist.

-----< cidfmap >-----
%!
% cidfmap generated automatically by mkcidfm.ps from fonts found in
% C:/windows/Fonts

% Substitutions
...

- - - - - - - - - -

I looked at that file.

-----< mkcidfm.ps >-----
...
% Generate a cidfmap file for substituting CID fonts with TrueType
% fonts, based on fonts found in the directory FONTDIR.
...

% Usage: gswin32c -q -dBATCH -sFONTDIR=c:/windows/fonts
% -sCIDFMAP=c:/gs/cidfmap mkcidfm.ps

...

- - - - - - - - - -

I try this in the garbled problem environment.

"C:\Program Files (x86)\PDF24\gs\bin\gswin32c" -q -dBATCH -sFONTDIR=C:\Windows\Fonts -sCIDFMAP="C:\Program Files (x86)\PDF24\gs\lib\cidfmap" mkcidfm.ps

As a result, the cidfmap file was created and there were no garbled characters. It's ok.

The new version 10.0.4 has the same problem.
( 2020/12/08 16:29 148,963,328 pdf24-creator-10.0.4.msi )

But,

C:\Program Files\PDF24\gs\lib>"C:\Program Files\PDF24\gs\bin\gswinc" -q -dBATCH -sFONTDIR=C:\Windows\Fonts -sCIDFMAP="C:\Program Files\PDF24\gs\lib\cidfmap" mkcidfm.ps

Error: /invalidfileaccess in --file--
Operand stack:
cidfmap (C:\\Program Files\\PDF24\\gs\\lib\\cidfmap) (w)
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1990 1 3 %oparray_pop 1989 1 3 %oparray_pop 1977 1 3 %oparray_pop 1833 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
Dictionary stack:
--dict:732/1123(ro)(G)-- --dict:0/20(G)-- --dict:75/200(L)--
Current allocation mode is local
Last OS error: Permission denied
Current file position is 1691
GPL Ghostscript 9.53.3: Unrecoverable error, exit code 1

C:\Program Files\PDF24\gs\lib>

It didn't work the same way.

cmasa2ki Posted new comment 2020-12-11

Both were executed with administrator privileges.

Whether the method is good or not,
copy from created cidfmap file to 10.0.4 environment (same location),
It seems to work well.

In the new release 10.0.6 w/Windows 10 Pro (20H2 : 19042.630), Garbled characters are occurring. It happens in the same way.
I copy the 9.2.2 cidfmap file to 10.0.6, It seems to work well, too.