Since 1-2 years, instant preview of PDF files when inserting graphics is not working properly anymore (Lyx 2.3.7 on Mac OS). Some PDFs are shown properly, some not at all, and some are rotated by 90 degrees. When exporting the Lyx file to PDF everything is fine, so only the instant preview is affected.
I think the problematic PDFs are those that I cropped or rotated in Apple Preview (built-in PDF viewer). This used to work fine, but since a few years the resulting PDFs do not show correctly in Lyx. A related problem starting around the same time is that Lyx's built-in crop option does not work reliably for me anymore.
The PDFs in question look fine in any other PDF viewer (i.e., are correctly rotated).
I've searched if others have the same problem, but did not find anything. For some people, the instant preview does not work at all, but it does work for me for most PDFs. It is only some that don't show correctly. Anyone has stumbled across this problem?
I reinstalled Lyx, but same problem. I also tried installing Lyx 2.4 (RC3), but again same problem.
Any help much appreciated!
LyX ⇒ Instant preview not working properly
Instant preview not working properly
Just adding to this, the issue is clearly that the instant preview in Lyx cannot handle cropped PDFs (anymore, it used to work in older versions). It shows the top part of the PDF rather than its cropped part. So if there is a small table on a blank page, it will just show blank space. The problem is only with instant preview, it will respect the crop box when compiling the Lyx file and exporting it as a PDF.