How to enable preview using Sumatra, while using Acrobat as default PDF editor

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
insight
Posts: 30
Joined: 29 Apr 2020 10:44

Re: How to enable preview using Sumatra, while using Acrobat as default PDF editor

Post by insight »

highend wrote: 29 Jul 2021 15:14 All combinations work

Configuration | Other | Shell Integration | 64-bit Windows | [x] Use 64-bit preview handlers for preview
Configuration | Other | Shell Integration | 64-bit Windows | [x] Fall back to preview handlers of the other bitness

should be ticked if you use e.g. Sumatra 64-bit
Thanks for the inputs.

Its goofy as some things work for me on Laptop vs others on Desktop. - I am wondering if I should UNINSTALL/ NUKE with Uninstall Cleaning and start fresh.

But afraid I may I break it further and lose out existing working.

Is there a procedure & files VERSIONS you'd recommend?
PS: https://www.xyplorer.com/faq-topic.php?id=PDFthumbs

I read something about Sumatra needing a "Non Stable special version to work" - Not sure where I read that.

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

Re: How to enable preview using Sumatra, while using Acrobat as default PDF editor

Post by highend »

I'm using Sumatra x64 (https://forum.sumatrapdfreader.org/t/eb ... dows/505/4)
and it works absolutely fine previewing pdf and epub...
One of my scripts helped you out? Please donate via Paypal

insight
Posts: 30
Joined: 29 Apr 2020 10:44

Re: How to enable preview using Sumatra, while using Acrobat as default PDF editor

Post by insight »

highend wrote: 29 Jul 2021 15:14 All combinations work

Configuration | Other | Shell Integration | 64-bit Windows | [x] Use 64-bit preview handlers for preview
Configuration | Other | Shell Integration | 64-bit Windows | [x] Fall back to preview handlers of the other bitness

should be ticked if you use e.g. Sumatra 64-bit
You had mentioned this here: viewtopic.php?f=5&t=22024&p=186285#p186285
highend wrote: 24 Mar 2021 14:25 The 64-bit versions (Sumatra / Office e.g. 2019) work fine installed as x64.

It might be necessary to install the x64 version from here (https://mega.nz/folder/WwIiFDyZ#eA2g4lws9YNOuEI0a9Dkpw)
to be able to preview .epub / .mobi...
Belonging thread: https://forum.sumatrapdfreader.org/t/eb ... dows/505/4
So my cumulative question is - is this still applicable / requirement (the Pre Release) ? instead of Stable Release?

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

Re: How to enable preview using Sumatra, while using Acrobat as default PDF editor

Post by highend »

That isn't a pre-release, it's a different version with a different feature set and you can use the current stable (of the original Sumatra) as well
One of my scripts helped you out? Please donate via Paypal

insight
Posts: 30
Joined: 29 Apr 2020 10:44

Re: How to enable preview using Sumatra, while using Acrobat as default PDF editor

Post by insight »

highend wrote: 29 Jul 2021 15:14 All combinations work

Configuration | Other | Shell Integration | 64-bit Windows | [x] Use 64-bit preview handlers for preview
Configuration | Other | Shell Integration | 64-bit Windows | [x] Fall back to preview handlers of the other bitness

should be ticked if you use e.g. Sumatra 64-bit
Had to go through all these threads again - I do not see these options in that Section - 20.90. Old or maybe 32 bit?
highend wrote: 29 Jul 2021 19:09 That isn't a pre-release, it's a different version with a different feature set and you can use the current stable (of the original Sumatra) as well
Is there a summary or detail as to what this diff ver & feature set entail?

insight
Posts: 30
Joined: 29 Apr 2020 10:44

Re: How to enable preview using Sumatra, while using Acrobat as default PDF editor

Post by insight »

So I updated XY Plorer to latest Setup from site, and Sumatra x64 3.3.3 install from siite. (even prev 3.2 had same Error response).

Also enabled the settings you suggested.

And now its back to just showing the "TEXT" of the selected PDFs. Go figure.

Should I uninstall both and fresh install? Do I need to install x32 Sumatra instead? Or is this some trigger from pre installed PDF X Change?

And my previous version of the older versions on my laptop work all fine. Here' on desktop. Poof!

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.FormatException: Unrecognized Guid format.
   at System.Guid.GuidResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument, String failureArgumentName, Exception innerException)
   at System.Guid.TryParseGuid(String g, GuidStyles flags, GuidResult& result)
   at System.Guid..ctor(String g)
   at PreviewHandlers.PreviewHandlerHost.GetPreviewHandlerGUID(String filename)
   at PreviewHandlers.PreviewHandlerHost.Open(String filename, IntPtr handlePassed, Int32 colBack, Int32 colText, String guidUser)
   at Preview64.Form1.handlePreview(String[] arguments)
   at Preview64.Form1.Form1_Load(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at Preview64.Form1.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3928.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
XY64
    Assembly Version: 1.0.7611.17313
    Win32 Version: 1.0.0.23
    CodeBase: file:///C:/Program%20Files%20(x86)/XYplorer/XY64.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3928.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3928.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3928.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.



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

Re: How to enable preview using Sumatra, while using Acrobat as default PDF editor

Post by highend »

Execute fresh; from the address bar,

tick both settings in this fresh instance:
Configuration | Other | Shell Integration | 64-bit Windows | [x] Use 64-bit preview handlers for preview
Configuration | Other | Shell Integration | 64-bit Windows | [x] Fall back to preview handlers of the other bitness

and then show a screenshot of the full XY window with the preview pane open and a .pdf selected
One of my scripts helped you out? Please donate via Paypal

insight
Posts: 30
Joined: 29 Apr 2020 10:44

Re: How to enable preview using Sumatra, while using Acrobat as default PDF editor

Post by insight »

highend wrote: 23 Aug 2021 16:34 Execute fresh; from the address bar,

tick both settings in this fresh instance:
Configuration | Other | Shell Integration | 64-bit Windows | [x] Use 64-bit preview handlers for preview
Configuration | Other | Shell Integration | 64-bit Windows | [x] Fall back to preview handlers of the other bitness

and then show a screenshot of the full XY window with the preview pane open and a .pdf selected
Image

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

Re: How to enable preview using Sumatra, while using Acrobat as default PDF editor

Post by admin »

Screenshot not readable. Please use native attach function for images:
Attachments
XYForumAttachImage2.png
XYForumAttachImage2.png (19.38 KiB) Viewed 1358 times

insight
Posts: 30
Joined: 29 Apr 2020 10:44

Re: How to enable preview using Sumatra, while using Acrobat as default PDF editor

Post by insight »

admin wrote: 23 Aug 2021 19:28 Screenshot not readable. Please use native attach function for images:
Did not notice. A bit sleepy. Sorry, here it is: Let me know if there' anything else ya need.
Attachments
2021-08-23 22_43_02-C__DOWNLOADS_XYplorer 22.10.0200.png
2021-08-23 22_43_02-C__DOWNLOADS_XYplorer 22.10.0200.png (449.47 KiB) Viewed 1354 times

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

Re: How to enable preview using Sumatra, while using Acrobat as default PDF editor

Post by admin »

Are you using User-Defined Preview Handlers? Did you supply a valid GUID?

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

Re: How to enable preview using Sumatra, while using Acrobat as default PDF editor

Post by highend »

He does not, at least not in the fresh instance.

Execute this in the fresh and in the configured instance and post the results:
text get("previewhandler", "pdf") . <crlf> . "Assoc: " . get("assoc", "pdf");
One of my scripts helped you out? Please donate via Paypal

Horst
Posts: 1085
Joined: 24 Jan 2021 12:27
Location: Germany

Re: How to enable preview using Sumatra, while using Acrobat as default PDF editor

Post by Horst »

highend wrote: 23 Aug 2021 20:07 He does not, at least not in the fresh instance.

Execute this in the fresh and in the configured instance and post the results:
text get("previewhandler", "pdf") . <crlf> . "Assoc: " . get("assoc", "pdf");
This does not give correct results in my environment.
I have installed SumatraPDF and its used if a PDF file is double clicked
but I have set the PDF-XChange Editor as PDF preview handler, which is realy used by XY.
The text get command line says SumatraPDF is preview handler which is wrong.
Screenshot - 23.08.2021 , 22_33_44.png
Screenshot - 23.08.2021 , 22_33_44.png (12.2 KiB) Viewed 1327 times
Screenshot - 23.08.2021 , 22_35_55.png
Screenshot - 23.08.2021 , 22_35_55.png (13.76 KiB) Viewed 1327 times
Screenshot - 23.08.2021 , 22_37_55.png
Screenshot - 23.08.2021 , 22_37_55.png (7.84 KiB) Viewed 1327 times
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69

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

Re: How to enable preview using Sumatra, while using Acrobat as default PDF editor

Post by admin »

The return looks alright to me.

The first 3 lines are from:
text get("previewhandler", "pdf") . <crlf> . ...

The last line is from:
... "Assoc: " . get("assoc", "pdf");

Horst
Posts: 1085
Joined: 24 Jan 2021 12:27
Location: Germany

Re: How to enable preview using Sumatra, while using Acrobat as default PDF editor

Post by Horst »

You are right :)
Didn't read enough, it was to late.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
Portable XYplorer (actual version, including betas)
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69

Post Reply