Activate pdf thumbnails for XnViewMP on Ubuntu 24

Ask for help and post your question on how to use XnView MP.

Moderators: XnTriq, helmut, xnview

Arnache
Posts: 6
Joined: Sat Jun 15, 2024 7:44 am

Activate pdf thumbnails for XnViewMP on Ubuntu 24

Post by Arnache »

Hi.

I get SVG thumbnails but no thumbnail for my pdf images. How do I activate this?

XnViewMP 1.7.2 on Ubuntu 24.04LTS.

In Settings>File list>Custom Filters the AI/PS/PDF "Visible" and "Show as thumbnail" checkboxes are checked
In Settings>View>Filter "Custom" is selected and "AI/PS/PDF" is checked

sudo apt list ghostscript shows:
ghostscript/noble,now 10.02.1~dfsg1-0ubuntu7 amd64 [installed,automatic]
ghostscript/noble 10.02.1~dfsg1-0ubuntu7 i386

In the file browser of Ubuntu (Files, aka Nautilus) the pdf thumbnails show, and the pdf can be opened and displayed (Document viewer, aka Evince).
User avatar
xnview
Author of XnView
Posts: 45561
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Activate pdf thumbnails for XnViewMP on Ubuntu 24

Post by xnview »

you can launch the command gs?
Pierre.
Arnache
Posts: 6
Joined: Sat Jun 15, 2024 7:44 am

Re: Activate pdf thumbnails for XnViewMP on Ubuntu 24

Post by Arnache »

Yes, from a terminal.

> gs

it opens and writes the following in the terminal and opens a white frame:

GPL Ghostscript 10.02.1 (2023-11-01)
Copyright (C) 2023 Artifex Software, Inc. All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
GS>
User avatar
xnview
Author of XnView
Posts: 45561
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Activate pdf thumbnails for XnViewMP on Ubuntu 24

Post by xnview »

when using XnView, what do you have as log when selecting a pdf file?
Pierre.
Arnache
Posts: 6
Joined: Sat Jun 15, 2024 7:44 am

Re: Activate pdf thumbnails for XnViewMP on Ubuntu 24

Post by Arnache »

Thanks for your answer. I could not find the log.
User avatar
xnview
Author of XnView
Posts: 45561
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Activate pdf thumbnails for XnViewMP on Ubuntu 24

Post by xnview »

Arnache wrote: Tue Jun 25, 2024 6:03 am Thanks for your answer. I could not find the log.
start XnView in a terminal
Pierre.
Arnache
Posts: 6
Joined: Sat Jun 15, 2024 7:44 am

Re: Activate pdf thumbnails for XnViewMP on Ubuntu 24

Post by Arnache »

Here is the part of the log that appears when I select a pdf which I randomly chose.
In the text below, I replaced the full path by [...]

######### CategoryModel :: checkAndSave()
MyView::set LOAD FULL [...]/xntest/3-set-0.pdf
BitmapLoadThread :: stop()
## BitmapLoadThread :: load -1 -1
## Bitmap :: load 0
###### GFF:load <[...]/xntest/3-set-0.pdf>
######### CategoryModel :: checkAndSave()
Unrecoverable error: rangecheck in .putdeviceprops
## MyView::onLoaded <[...]/xntest/3-set-0.pdf> <[...]xntest/3-set-0.pdf> <[...]/xntest/3-set-0.pdf> (0)
## MyView::onLoaded ok
@@ BitmapResizeThread:: clear
MyView::change [...]/xntest/3-set-0.pdf
@@ BitmapResizeThread:: clear
## Bitmap :: load 0
###### GFF:load <[...]/3-set-0.pdf>
Unrecoverable error: rangecheck in .putdeviceprops
@@ BitmapResizeThread:: clear


############################################ InfoPropertiesView
User avatar
xnview
Author of XnView
Posts: 45561
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Activate pdf thumbnails for XnViewMP on Ubuntu 24

Post by xnview »

is it possible to have the pdf file? so Ghostscript 10.02.1?
Pierre.
Arnache
Posts: 6
Joined: Sat Jun 15, 2024 7:44 am

Re: Activate pdf thumbnails for XnViewMP on Ubuntu 24

Post by Arnache »

Yes, version 10.02.1 on Ubuntu 24.04 LTS

Very good point to suspect the pdfs: I did not realize that it seems to only fail for pdfs that I recently produced (I made a lot of illustrations in the recent months). They are produced by various recent versions of Inkscape, including 1.2.2 and Inkscape 1.4-beta (62f545b, 2024-04-22). It shows well under every viewer, including gs called from a terminal. I joined one to this message (if I understood how to attach files in this newsgroup) that I just created with Inkscape 1.2.2.
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 45561
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Activate pdf thumbnails for XnViewMP on Ubuntu 24

Post by xnview »

other PDFs work?
Pierre.
Arnache
Posts: 6
Joined: Sat Jun 15, 2024 7:44 am

Re: Activate pdf thumbnails for XnViewMP on Ubuntu 24

Post by Arnache »

Yes, this one for instance works.
You do not have the required permissions to view the files attached to this post.