[Tex/LaTex] Lyx, Error Converting to Loadable Format for PDFs

ghostscriptgraphicslyxpdf

I'm using Lyx 2.2 on windows 10 and ghostscript 9.19.
When I have pdfs images embedded in my document they don't display in the Lyx window (they appear in the final PDF however).

Where the images should preview it just says, "Error converting to loadable format".

I've tried looking at the latex log, but I can't seem to gain any insight as to how to resolve this issue.
I've also tried searching many forums online but they all seem to point to updating ghostscript, which doesn't apply to me since I'm running the latest version.

Best Answer

Short answer: https://wiki.lyx.org/LyX/FiguresInLyX

Long answer:

To view a image on the LyX screen, it is required a compatible format with that XForms or Qt GUI libraries, namely bmp, gif, jpeg, pbm, pgm, ppm, tif, xbm or mng, png and xpm, respectively.

A message "Error converting to loadable format" mean that is not possible convert the image to PNG or any of these formats.

then you'll need to augment the list of known converters.

The link shows a detailed example of adding a converter. Pay attention that the converters are in the right path.

However,

If you see the "Error converting to loadable format" message only with PDF files and you've verified that you have the converter tools mentioned above, check which version of GhostScript you are using.

Version 8.7 of GhostScript has a known bug that prevents LyX from loading PDFs. Use the newest version. (The link above also explain a manual fix).

Related Question