Page 1 of 1
PDF thumbnails and preview problems
Posted: Fri Apr 20, 2007 9:26 pm
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.
Re: PDF thumbnails and preview problems
Posted: Sat Apr 21, 2007 7:31 am
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?
Re: PDF thumbnails and preview problems
Posted: Sat Apr 21, 2007 3:07 pm
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.
Re: PDF thumbnails and preview problems
Posted: Sat Apr 21, 2007 3:21 pm
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.
Re: PDF thumbnails and preview problems
Posted: Tue Apr 24, 2007 12:23 pm
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??
Re: PDF thumbnails and preview problems
Posted: Tue Apr 24, 2007 10:47 pm
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.
Re: PDF thumbnails and preview problems
Posted: Fri May 11, 2007 12:25 pm
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?
Re: PDF thumbnails and preview problems
Posted: Tue May 22, 2007 1:58 pm
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.