[luatex] error opening generated PDF in Adobe Reader
Ulrike Fischer
luatex at nililand.de
Fri Apr 26 12:27:32 CEST 2024
Am Fri, 26 Apr 2024 11:06:15 +0200 schrieb Matthias Schneider:
> Hi,
>
> I'm getting an error in Adobe Reader when I open the PDF generated by
> the following input (replace anyPNG with a valid PNG filename):
> os.setlocale('de_DE.UTF-8')
Well the luatex manual contains the remark
"When LuaTEX starts it sets the locale to a neutral value. If for
some reason you use os.setlocale, you need to make sure you nil it
afterwards because otherwise it can interfere with code that for
instance generates dates."
I can confirm that it breaks for me on windows with your
os.setlocale setting: I get tons of warnings from pdftex.map and no
pdf is produced (the image doesn't matter, and setting it to nil
directly again didn't help).
I don't know what you are trying to achieve but you should better
not do it
(Unrelated but you should not use \usepackage[T1]{fontenc} with
lualatex, that switches to the wrong fontencoding. With luatex you
should use the default TU encoding.).
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
More information about the luatex
mailing list.