Problem viewing PDF in the preview pane

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
julietgolf
Posts: 7
Joined: 04 Oct 2017 00:28

Problem viewing PDF in the preview pane

Post by julietgolf »

When I select a pdf file, the preview pane shows a mess of garbled ASCII text rather than a render of the pdf file. Does anyone know how I can get it to display pdfs properly? It used to work but stopped working once I reinstalled XYplorer.

Thanks!

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Problem viewing PDF in the preview pane

Post by highend »

When you type

Code: Select all

fresh;
in the address bar and hit enter
afterwards, does the preview work
in that new XYplorer instance?
One of my scripts helped you out? Please donate via Paypal

julietgolf
Posts: 7
Joined: 04 Oct 2017 00:28

Re: Problem viewing PDF in the preview pane

Post by julietgolf »

Preview pane says: "Cannot Preview." .....(!!)

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Problem viewing PDF in the preview pane

Post by highend »

Show the output of this little script (you can paste it into the address bar and hit enter afterwards):

Code: Select all

text get("PreviewHandler", "pdf");
One of my scripts helped you out? Please donate via Paypal

julietgolf
Posts: 7
Joined: 04 Oct 2017 00:28

Re: Problem viewing PDF in the preview pane

Post by julietgolf »

it's blank....

(thanks for taking the time to reply, btw - really appreciate it)

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Problem viewing PDF in the preview pane

Post by highend »

You don't have a 32-bit preview handler installed...

To solve this, use e.g. this:
viewtopic.php?f=3&t=15910
One of my scripts helped you out? Please donate via Paypal

julietgolf
Posts: 7
Joined: 04 Oct 2017 00:28

Re: Problem viewing PDF in the preview pane

Post by julietgolf »

Thanks so much for that. Followed the instructions but doesn't seem to work still.... I'll try again.

julietgolf
Posts: 7
Joined: 04 Oct 2017 00:28

Re: Problem viewing PDF in the preview pane

Post by julietgolf »

Your text get("PreviewHandler", "pdf"); Script outputs the following:


GUID: {CF822AB4-6DB5-4FDA-BC28-E61DF36D2583}
DefaultName: PDF-XChange PDF Preview Provider
DisplayName: PDF-XChange PDF Preview Provider

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Problem viewing PDF in the preview pane

Post by highend »

And you are sure you don't have an entry like

Code: Select all

*.pdf, PDF-Document
in ANY other category (e.g. "Text Files") than
"Office Files" (the only place where it belongs!)
under: Configuration - Preview - Previewed Formats?

Additionally, you're using a 64-bit OS, right?
One of my scripts helped you out? Please donate via Paypal

klownboy
Posts: 4109
Joined: 28 Feb 2012 19:27

Re: Problem viewing PDF in the preview pane

Post by klownboy »

I had the exact same problem. This may sound strange, but if you have an entry for pdf files under the 'text' format or 'image' formats in Tools | Configuration |Previewed Formats, instead of simply unchecking those entries, delete the entries such that the only entry you have have pdf files is under Office Files. Save and restart and check that preview pane works properly. If that works for you too, possibly that's a sign of a bug.
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

julietgolf
Posts: 7
Joined: 04 Oct 2017 00:28

Re: Problem viewing PDF in the preview pane

Post by julietgolf »

@highend, I do have such an entry. And yes, I am using a 64bit OS

@klownboy, cool. Will definitely try that!

julietgolf
Posts: 7
Joined: 04 Oct 2017 00:28

Re: Problem viewing PDF in the preview pane

Post by julietgolf »

OMG that worked.

On hindsight, it's pretty obvious, but not without first knowing how the file assocations work.
It turns out that pdf appeared under both the text files and office files "previewed formats".
I thought the bottom half of that menu setting page was the same for all formats (in fact, i stupidly didn't think that the top and bottom lists were linked).
But now that i deleted pdf from the text files "previewed formats", it works. So XYPlorer was treating pdfs as a text file and chucking out ASCII characters.

Thanks so much for your help, guys.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Problem viewing PDF in the preview pane

Post by admin »

julietgolf wrote:It turns out that pdf appeared under both the text files and office files "previewed formats".
I thought the bottom half of that menu setting page was the same for all formats (in fact, i stupidly didn't think that the top and bottom lists were linked).
You are not the first. I really need to rethink this interface...

klownboy
Posts: 4109
Joined: 28 Feb 2012 19:27

Re: Problem viewing PDF in the preview pane

Post by klownboy »

Don the initial problem reported in this thread was not having pdf files to display properly in preview pane even though they display fine in Floating and Full Screen previews. I had this problem as well as julietgolf. In addition to the interface issue, I think a major issue is: un-checking the 'pdf' extension in Text file category in itself did not 'fix' the problem. I had to go one step further and actually delete the 'pdf' file entry in the text file category to correct the problem and have pdf files display properly in a Preview Pane. To me that doesn't seem right. Shouldn't unchecking the pdf files in the text category alone be sufficient? Thanks.
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Problem viewing PDF in the preview pane

Post by admin »

You are right, something is wrong here. :eh:

Post Reply