Some pdf are not recognized

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: XnTriq, helmut, xnview

Post Reply
jSer
Posts: 9
Joined: Fri Nov 29, 2019 9:46 am

Some pdf are not recognized

Post by jSer »

Some pdf are not recognized. Message - "Format of the file ... could not be determined".
XnView 2.49.1 (and 2.49), Ghostscript 9.50 (and 9.26), win 10 1909.
Example attached.
Attachments
123.pdf
(908 Bytes) Downloaded 128 times
jSer
Posts: 9
Joined: Fri Nov 29, 2019 9:46 am

Re: Some pdf are not recognized

Post by jSer »

Any confirmation?
cday
XnThusiast
Posts: 3973
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Some pdf are not recognized

Post by cday »

jSer wrote: Tue Dec 03, 2019 2:54 pm Any confirmation?
Opens for me using XnView MP 0.93 and whichever non-recent version of Ghostscript is installed on my Linux Mint 19.1 computer...

Note that there is a known issue with the latest Ghostscript 9.50, said to be fixed in XnView MP 0.94.1 I believe, however earlier versions possibly including 9.26 which you say you have tried should work AFAIK, although you might test with a slightly earlier version.

There is also some history, not really fully investigated yet, of PDF files that open in other software not opening in XnView software, but that isn't the case here.

Note also that 32-bit versions of XnView software require Ghostscript 32-bit even on Windows x64.

Edit:

You might check that in the viewer File > Format settings... > Ignore read errors is enabled, otherwise perhaps a Windows 10 issue??
jSer
Posts: 9
Joined: Fri Nov 29, 2019 9:46 am

Re: Some pdf are not recognized

Post by jSer »

Xn 2.49.2 - works with some pdf (like attached above), but not with all pdfs.
cday
XnThusiast
Posts: 3973
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Some pdf are not recognized

Post by cday »

jSer wrote: Wed Jan 08, 2020 8:35 am Xn 2.49.2 - works with some pdf (like attached above), but not with all pdfs.
Please upload examples of PDF files that don't open here for Pierre to test...
jSer
Posts: 9
Joined: Fri Nov 29, 2019 9:46 am

Re: Some pdf are not recognized

Post by jSer »

If i turn off
1.png
1.png (12.15 KiB) Viewed 4290 times
unicode utf-8 for worldwide... (current sys locale - different) - all pdf's opens well.
jSer
Posts: 9
Joined: Fri Nov 29, 2019 9:46 am

Re: Some pdf are not recognized

Post by jSer »

Something wrong with locale/filename/path managing... if "unicode utf-8 for worldwide" is on.

Pdf's with filename or filepath in non english locale - problem.
But if rename it to "1.pdf" or/and move to "d:\" all works perfect.
cday
XnThusiast
Posts: 3973
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Some pdf are not recognized

Post by cday »

jSer wrote: Tue Jan 28, 2020 8:05 am Something wrong with locale/filename/path managing... if "unicode utf-8 for worldwide" is on.

Pdf's with filename or filepath in non english locale - problem.
But if rename it to "1.pdf" or/and move to "d:\" all works perfect.
I think this is probably the same issue as reported in this earlier thread:

Warning: 'Error opening the file'

Could you confirm that the same filename issue is present for image files in general, such as a JPEG file?
jSer
Posts: 9
Joined: Fri Nov 29, 2019 9:46 am

Re: Some pdf are not recognized

Post by jSer »

No. Only "Ghostscript" files.
jSer
Posts: 9
Joined: Fri Nov 29, 2019 9:46 am

Re: Some pdf are not recognized

Post by jSer »

Again, if utf-8 locale turned on in win 10 and filename in non english locale, XnView cannot open it!!!
XnView 2.49.3, GS 9.52.
If rename file to 1.pdf or s.pdf - all fine.

Example pdf in attachment (file from viewtopic.php?f=36&t=40435).
Attachments
ы.pdf
(22.34 KiB) Downloaded 77 times
cday
XnThusiast
Posts: 3973
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Some pdf are not recognized

Post by cday »

jSer wrote: Tue May 19, 2020 8:37 am Again, if utf-8 locale turned on in win 10 and filename in non english locale, XnView cannot open it!!!
XnView 2.49.3, GS 9.52.
XnView Classic only claims partial Unicode support, and that recently added I believe, does a file with the same filename and an other extension than PDF open correctly? I doubt if it a Ghostscript issue, although it might possibly an interface issue between XnView Classic and Ghostscript...

However, as XnView MP has full Unicode support, do you have a reason for not using that?
jSer
Posts: 9
Joined: Fri Nov 29, 2019 9:46 am

Re: Some pdf are not recognized

Post by jSer »

File "ы.png" - works fine.
XnView MP Version 0.96.2 64bits - same issue!
cday
XnThusiast
Posts: 3973
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Some pdf are not recognized

Post by cday »

jSer wrote: Tue May 19, 2020 9:32 am File "ы.png" - works fine.
XnView MP Version 0.96.2 64bits - same issue!
With Ghostscript x64 presumably.

I've already tested ы.pdf in XnView MP 0.93.1 on Linux and it worked for me, a configuration issue maybe, but I don't know too much about that...

Pierre?
jSer
Posts: 9
Joined: Fri Nov 29, 2019 9:46 am

Re: Some pdf are not recognized

Post by jSer »

GS x32 and x64 both are installed.
cday
XnThusiast
Posts: 3973
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Some pdf are not recognized

Post by cday »

If your file doesn't open in XnView MP which has full Unicode support, I suggest that you concentrate on that and start a new thread in that section of the forum stating that the attached ы.pdf file doesn't open, that is more likely to result in a solution... :D

Edit:

Your file also opens for me in XnView Classic on Windows 10, so seemingly some configuration issue on your computer, but I still suggest that you start a new thread as above to increase the chances of an early solution, if you are unable to find the solution yourself.
Post Reply