PDF thumbnails and preview problems

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

Moderators: helmut, XnTriq, xnview

Post Reply
george_mpls
Posts: 5
Joined: Fri Apr 20, 2007 6:49 pm

PDF thumbnails and preview problems

Post by george_mpls »

I'm experiencing some problems with the 1.90.3 version of XnView on windows XP SP2. For some PDF files, both the thumbnail generation and the GS preview works just fine. However, for other PDF files, it does not. I get no thumbnails and for preview I get a hex display of the PDF file's contents. There is not consistency as to PDF version and what works and what does not. Also, for those PDF files that do not work, I can view them just fine using ghostscript's viewer.

I experimented a bit with some of the older versions and I noticed a similar behavior when the "display hex" for unsupported files was checked (i.e., was on). If that flag was off, everything worked fine.

Since this option is not available with 1.90.3 I cannot do the same test. However, it will seem that there is a logical "bug" somewhere in the code.

I'm using AFPL Ghostscript 8.54.

thanks in advance.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: PDF thumbnails and preview problems

Post by xnview »

george_mpls wrote:I'm experiencing some problems with the 1.90.3 version of XnView on windows XP SP2. For some PDF files, both the thumbnail generation and the GS preview works just fine. However, for other PDF files, it does not. I get no thumbnails and for preview I get a hex display of the PDF file's contents. There is not consistency as to PDF version and what works and what does not. Also, for those PDF files that do not work, I can view them just fine using ghostscript's viewer.

I experimented a bit with some of the older versions and I noticed a similar behavior when the "display hex" for unsupported files was checked (i.e., was on). If that flag was off, everything worked fine.

Since this option is not available with 1.90.3 I cannot do the same test. However, it will seem that there is a logical "bug" somewhere in the code.

I'm using AFPL Ghostscript 8.54.

thanks in advance.
Please send me files with problem to see thumbnail?
Pierre.
george_mpls
Posts: 5
Joined: Fri Apr 20, 2007 6:49 pm

Re: PDF thumbnails and preview problems

Post by george_mpls »

xnview wrote: Please send me files with problem to see thumbnail?
While I was preparing the test file I realized that the problem may be the length of the filename. That is, if the filename is somewhat long, then the problem occurs, whereas if it is short, there is no problem.
I was able to rename a file to have a filename that is 90 characters long and create the problem. However, if I rename the file to something short, there is no problem.

I'll send you the urls of the test files in a PM.
george_mpls
Posts: 5
Joined: Fri Apr 20, 2007 6:49 pm

Re: PDF thumbnails and preview problems

Post by george_mpls »

george_mpls wrote:
xnview wrote: Please send me files with problem to see thumbnail?
While I was preparing the test file I realized that the problem may be the length of the filename. That is, if the filename is somewhat long, then the problem occurs, whereas if it is short, there is no problem.
I was able to rename a file to have a filename that is 90 characters long and create the problem. However, if I rename the file to something short, there is no problem.

I'll send you the urls of the test files in a PM.
Actually, it is not just the length of the filename but the length of the entire path to the file. The above 90 character example was for a file on the desktop. If I move the file to the c:\, then there is no problem. I guess, there must be a fixed length buffer somewhere in the code to specify the file that is not long enough.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: PDF thumbnails and preview problems

Post by xnview »

george_mpls wrote:
george_mpls wrote:
xnview wrote: Please send me files with problem to see thumbnail?
While I was preparing the test file I realized that the problem may be the length of the filename. That is, if the filename is somewhat long, then the problem occurs, whereas if it is short, there is no problem.
I was able to rename a file to have a filename that is 90 characters long and create the problem. However, if I rename the file to something short, there is no problem.

I'll send you the urls of the test files in a PM.
Actually, it is not just the length of the filename but the length of the entire path to the file. The above 90 character example was for a file on the desktop. If I move the file to the c:\, then there is no problem. I guess, there must be a fixed length buffer somewhere in the code to specify the file that is not long enough.
The pathname is very long??
Pierre.
george_mpls
Posts: 5
Joined: Fri Apr 20, 2007 6:49 pm

Re: PDF thumbnails and preview problems

Post by george_mpls »

xnview wrote:
george_mpls wrote:
george_mpls wrote: While I was preparing the test file I realized that the problem may be the length of the filename. That is, if the filename is somewhat long, then the problem occurs, whereas if it is short, there is no problem.
I was able to rename a file to have a filename that is 90 characters long and create the problem. However, if I rename the file to something short, there is no problem.

I'll send you the urls of the test files in a PM.
Actually, it is not just the length of the filename but the length of the entire path to the file. The above 90 character example was for a file on the desktop. If I move the file to the c:\, then there is no problem. I guess, there must be a fixed length buffer somewhere in the code to specify the file that is not long enough.
The pathname is very long??
Yes, the problem occurs for long pathnames. If the pathnames are short, the PDF thumbnail generation and preview works fine.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: PDF thumbnails and preview problems

Post by xnview »

george_mpls wrote:Yes, the problem occurs for long pathnames. If the pathnames are short, the PDF thumbnail generation and preview works fine.
I can't reproduce the problem, could you show me an example of your long pathname?
Pierre.
george_mpls
Posts: 5
Joined: Fri Apr 20, 2007 6:49 pm

Re: PDF thumbnails and preview problems

Post by george_mpls »

xnview wrote:
george_mpls wrote:Yes, the problem occurs for long pathnames. If the pathnames are short, the PDF thumbnail generation and preview works fine.
I can't reproduce the problem, could you show me an example of your long pathname?
Here is an example

C:\Wxxxxxx\Work\Papers\BioInformatics\Proteins\Localization\2006 Sequence driven features for prediction of subcellular localization for proteins.pdf

(note the file name has spaces)

If I rename it to
C:\Wxxxxxx\Work\Papers\BioInformatics\Proteins\Localization\test.pdf

then it works fine.
Post Reply