PDF显示乱码 win10下emacs pdf-util-assert-pdf-buffer: Buffer is not in PDFView mode

pdf-util-assert-pdf-buffer: Buffer is not in PDFView mode pdf-info-encrypted-p: pdf-info-epdfinfo-program is not executable

显示如图乱码,开启pdf mode无效

pdf tools已经安装

选取pdf tools install后按y image

显示do you have Msys2 install? 按n报错 image

先配置好msys2,然后让emacs能找到它,msys2中的编译器和poppler相关库都装上,然后再装pdf-tools。

或者在网上搜别人编译好的epdfinfo或pdf-tools包,解压到正确的文件夹即可。

还有个办法是使用Wsl里的emacs,然后pdf-tools装起来就很方便了。

装msys2然后安装msys2版的emacs,windows上编译pdf-tool是需要msys2的。msys2版的emacs能自动完成编译,官方给的那个zip包版本需要用msys2手动编译。