PDF Viewer plugin for TC 64-bit in 2021?

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
massor
Junior Member
Junior Member
Posts: 24
Joined: 2022-05-01, 18:30 UTC

Re: PDF Viewer plugin for TC 64-bit in 2021?

Post by *massor »

For me the plugin crash not only itself, but the all Total Commmander app, when i try to select some text in the viewed PDF and then try to dismiss the plugin with Esc key. Don't know why... If I don't touch the PDF inside, and only view it and scroll with mouse, it never freeze.
(Plugin 1.7 / Sumatra 3.5.2 / TC 11.02 32-bit / Win 10 Pro 22H2)
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6495
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: PDF Viewer plugin for TC 64-bit in 2021?

Post by *Horst.Epp »

massor wrote: 2024-03-21, 22:50 UTC For me the plugin crash not only itself, but the all Total Commmander app, when i try to select some text in the viewed PDF and then try to dismiss the plugin with Esc key. Don't know why... If I don't touch the PDF inside, and only view it and scroll with mouse, it never freeze.
(Plugin 1.7 / Sumatra 3.5.2 / TC 11.02 32-bit / Win 10 Pro 22H2)
I can't reproduce this problem,
while viewing and copying text from PDF files.
I do this a lot of times without any crash.

SumatraPDF x64 version 3.6.15987.
Plugin is actual version 1.7
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
massor
Junior Member
Junior Member
Posts: 24
Joined: 2022-05-01, 18:30 UTC

Re: PDF Viewer plugin for TC 64-bit in 2021?

Post by *massor »

Horst.Epp wrote: 2024-03-22, 09:08 UTC I can't reproduce this problem,
while viewing and copying text from PDF files.
I do this a lot of times without any crash.
SumatraPDF x64 version 3.6.15987.
Plugin is actual version 1.7
Well... Maybe is a faulty setting in the Plugin or the Sumatra config file(s). It happens the same way on two different computers, with the same portable TC.
Just tried the prerelease 3.6. The same. :(
User avatar
tuska
Power Member
Power Member
Posts: 3760
Joined: 2007-05-21, 12:17 UTC

Re: PDF Viewer plugin for TC 64-bit in 2021?

Post by *tuska »

massor wrote: 2024-03-21, 22:50 UTC ... TC 11.02 32-bit ...)
You could try TC 11.03 by simply installing this version over the existing one.
Or maybe try the "64-bit+32-bit combined" version?

You could also use my settings for testing purposes:
SumatraPDF-settings.txt

Code: Select all

# For documentation, see https://www.sumatrapdfreader.org/settings/settings3-5-1.html
Theme = Light
FixedPageUI [
	TextColor = #000000
	BackgroundColor = #ffffff
	SelectionColor = #f5fc0c
	WindowMargin = 2 4 2 4
	PageSpacing = 4 4
	InvertColors = false
	HideScrollbars = false
]
ComicBookUI [
	WindowMargin = 0 0 0 0
	PageSpacing = 4 4
	CbxMangaMode = false
]
ChmUI [
	UseFixedPageUI = false
]

SelectionHandlers [
]
ExternalViewers [
]

ZoomLevels = 8.33 12.5 18 25 33.33 50 66.67 75 100 125 150 200 300 400 600 800 1000 1200 1600 2000 2400 3200 4800 6400
ZoomIncrement = 0

PrinterDefaults [
	PrintScale = shrink
]
ForwardSearch [
	HighlightOffset = 0
	HighlightWidth = 15
	HighlightColor = #6581ff
	HighlightPermanent = false
]
Annotations [
	HighlightColor = #ffff00
	UnderlineColor = #00ff00
	SquigglyColor = #ff00ff
	StrikeOutColor = #ff0000
	FreeTextColor = 
	FreeTextSize = 12
	FreeTextBorderWidth = 1
	TextIconColor = #ffff00
	TextIconType = 
	DefaultAuthor = 
]

RememberOpenedFiles = false
RememberStatePerDocument = true
RestoreSession = true
UiLanguage = de
EnableTeXEnhancements = false
DefaultDisplayMode = single page
DefaultZoom = fit page
Shortcuts [
]
EscToExit = true
ReuseInstance = true
ReloadModifiedDocuments = true

MainWindowBackground = #80fff200
FullPathInTitle = false
ShowMenubar = true
ShowToolbar = true
ShowFavorites = false
ShowToc = true
NoHomeTab = false
TocDy = 0
SidebarDx = 284
ToolbarSize = 18
TabWidth = 300
TreeFontSize = 0
TreeFontWeightOffset = 0
TreeFontName = automatic
SmoothScroll = false
ShowStartPage = true
CheckForUpdates = false
WindowState = 1
WindowPos = 348 2 1509 1140
UseTabs = false
UseSysColors = false
CustomScreenDPI = 0

FileStates [
	[
		FilePath = C:\totalcmd\Tools\CHIP\CHIP_Archiv_Heftausgaben im PDF-Format\CHIP_2008-05.pdf
		Favorites [
		]
		IsPinned = false
		IsMissing = false
		OpenCount = 0
		UseDefaultState = true
	]
	[
		FilePath = C:\totalcmd\Tools\CHIP\CHIP_Archiv_Heftausgaben im PDF-Format\CHIP_2008-07.pdf
		Favorites [
		]
		IsPinned = false
		IsMissing = false
		OpenCount = 0
		UseDefaultState = true
	]
	[
		FilePath = D:\Daten\Programme\Totalcmd\Tools\CHIP\CHIP_Archiv_Heftausgaben im PDF-Format\CHIP_2008-03.pdf
		Favorites [
		]
		IsPinned = false
		IsMissing = false
		OpenCount = 0
		UseDefaultState = true
	]
	[
		FilePath = D:\Daten\Programme\Totalcmd\Tools\CHIP\CHIP_Archiv_Heftausgaben im PDF-Format\CHIP_2022-01.pdf
		Favorites [
		]
		IsPinned = false
		IsMissing = false
		OpenCount = 0
		UseDefaultState = true
	]
	[
		FilePath = C:\totalcmd\Tools\CHIP\CHIP_Archiv_Heftausgaben im PDF-Format\CHIP_2008-08.pdf
		Favorites [
		]
		IsPinned = false
		IsMissing = false
		OpenCount = 0
		UseDefaultState = true
	]
	[
		FilePath = D:\Daten\Programme\Totalcmd\Migration\_Forumsanfragen\Schnellansicht von PDF mit PDF24 - sLister SumatraPDF\DoorJammer.pdf
		Favorites [
		]
		IsPinned = false
		IsMissing = false
		OpenCount = 0
		UseDefaultState = true
	]
	[
		FilePath = D:\Videos\Office_2010\chip100\files\CHIP1988_10Jahre.pdf
		Favorites [
		]
		IsPinned = false
		IsMissing = false
		OpenCount = 0
		UseDefaultState = true
	]
	[
		FilePath = D:\Daten\Programme\Totalcmd\Tools\CHIP\CHIP_Archiv_Heftausgaben im PDF-Format\CHIP_2008-07.pdf
		Favorites [
		]
		IsPinned = false
		IsMissing = false
		OpenCount = 0
		UseDefaultState = true
	]
	[
		FilePath = D:\Daten\Programme\Totalcmd\Tools\CHIP\CHIP_Archiv_Heftausgaben im PDF-Format\CHIP_2022-04.pdf
		Favorites [
		]
		IsPinned = false
		IsMissing = false
		OpenCount = 0
		UseDefaultState = true
	]
	[
		FilePath = D:\Daten\Programme\Totalcmd\Tools\CHIP\CHIP_Archiv_Heftausgaben im PDF-Format\CHIP_2008-05.pdf
		Favorites [
		]
		IsPinned = false
		IsMissing = false
		OpenCount = 0
		UseDefaultState = true
	]
]
SessionData [
]
TimeOfLastUpdateCheck = 30975603 47977599
OpenCountWeek = 689

# Settings below are not recognized by the current version
LazyLoading = true
ShowLinks = false
EbookUI [
	FontName = Georgia
	FontSize = 12.5
	TextColor = #5f4b32
	BackgroundColor = #fbf0d9
	UseFixedPageUI = false
]
AssociateSilently = false
AkulaBig
Senior Member
Senior Member
Posts: 372
Joined: 2021-09-09, 17:28 UTC

Re: PDF Viewer plugin for TC 64-bit in 2021?

Post by *AkulaBig »

massor wrote: 2024-03-22, 10:44 UTC Maybe is a faulty setting in the Plugin or the Sumatra config file(s).
This is easy to check. Save the settings file somewhere and delete it in the plugin. The file will automatically create itself and you will be able to control your settings. Don't forget to disable UseTabs and saving browsing history. They interfere with testing.
massor
Junior Member
Junior Member
Posts: 24
Joined: 2022-05-01, 18:30 UTC

Re: PDF Viewer plugin for TC 64-bit in 2021?

Post by *massor »

On a clean TC install, no other plugin than TCSumatraPDF 1.7, it works well. Now... I strongly suspect that it interfere with other of my plugins, best candidate TLister.
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6495
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: PDF Viewer plugin for TC 64-bit in 2021?

Post by *Horst.Epp »

massor wrote: 2024-03-22, 13:34 UTC On a clean TC install, no other plugin than TCSumatraPDF 1.7, it works well. Now... I strongly suspect that it interfere with other of my plugins, best candidate TLister.
This plugin is known to produce crashes and was developed in 2011
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
AkulaBig
Senior Member
Senior Member
Posts: 372
Joined: 2021-09-09, 17:28 UTC

Re: PDF Viewer plugin for TC 64-bit in 2021?

Post by *AkulaBig »

massor wrote: 2024-03-22, 13:34 UTC TLister.
I don't use this plugin, but I've read about how glitchy it is. Disable it and check if the problem goes away or not.
User avatar
tuska
Power Member
Power Member
Posts: 3760
Joined: 2007-05-21, 12:17 UTC

Re: PDF Viewer plugin for TC 64-bit in 2021?

Post by *tuska »

massor wrote: 2024-03-22, 13:34 UTC On a clean TC install, no other plugin than TCSumatraPDF 1.7, it works well.
Now... I strongly suspect that it interfere with other of my plugins, best candidate TLister.
Perhaps the suspected problem can be avoided with this setting?

Menu "Configuration" > Options... > Edit/View > Viewer for F3 : Configure internal viewer... > Tab "Multimedia" >
☑️ Define view method by file type... > Add... > *.pdf > OK > Click on the '+' plus sign > 4 Image/Multimedia >
SumatraPDF.wlx > OK > Note: The entries are processed from top to bottom at this point: Check whether the entry
"*.pdf SumatraPDF.wlx" should possibly be positioned further upwards by holding down the left mouse button >
OK > OK > OK.

Restart TC, e.g. with the command: CM_EXIT 9
After F3 on a *.pdf file Lister (sumatrapdf) shows the content of the selected file.
massor
Junior Member
Junior Member
Posts: 24
Joined: 2022-05-01, 18:30 UTC

Re: PDF Viewer plugin for TC 64-bit in 2021?

Post by *massor »

@tuska
Thank you. For now it works, no more freezes. I haven't defined until now anything under multimedia - view by extension. Now pdf is the only entry (so I don't have anything to order). I'll keep testing. Thanks!
Just a observation. With above settings, it evades TLister umbrella, so it opens separate lister instances when I view multiple pdfs. All other file types (texts, images, etc) still open as tabs. So, my first suspicions about TLister not getting along with Sumatra still remains. :wink:
User avatar
tuska
Power Member
Power Member
Posts: 3760
Joined: 2007-05-21, 12:17 UTC

Re: PDF Viewer plugin for TC 64-bit in 2021?

Post by *tuska »

massor wrote: 2024-03-22, 19:15 UTC ... With above settings, it evades TLister umbrella, so it opens separate lister instances when I view multiple pdfs.
All other file types (texts, images, etc) still open as tabs. ...
Maybe it helps to change in SumatraPDF-settings.txt
UseTabs = false
to
UseTabs = true
?
massor
Junior Member
Junior Member
Posts: 24
Joined: 2022-05-01, 18:30 UTC

Re: PDF Viewer plugin for TC 64-bit in 2021?

Post by *massor »

No, it's worse. Viewing one pdf now opens 2 tabs, one "Home" tab and another with the viewed pdf. So, waste to much space on top of Lister. And no, viewing another pdf don't open another tab in existing Lister window, but another Lister instance, with another pair of tabs.
I know, I can disable the Home tab, but the problem remains.
So, for now I'm content with viewer multimedia association of pdf with Sumatra WLX.
(Oh, boy, it's so annoying that we cannot post images here directly!)
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6495
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: PDF Viewer plugin for TC 64-bit in 2021?

Post by *Horst.Epp »

2massor
As your problems are only caused by the very old and buggy TLister plugin
I wouldn't expect much research time from the Author of the SumatraPDF plugin.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1373a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
AkulaBig
Senior Member
Senior Member
Posts: 372
Joined: 2021-09-09, 17:28 UTC

Re: PDF Viewer plugin for TC 64-bit in 2021?

Post by *AkulaBig »

Horst.Epp wrote: 2024-03-23, 10:26 UTC 2massor
As your problems are only caused by the very old and buggy TLister plugin
I wouldn't expect much research time from the Author of the SumatraPDF plugin.
And I won’t be able to solve these problems. Just like opening at 3.6 chm in a small window. This is for the SumatraPDF authors to decide. I do not modify the program itself in any way.
AkulaBig
Senior Member
Senior Member
Posts: 372
Joined: 2021-09-09, 17:28 UTC

Re: PDF Viewer plugin for TC 64-bit in 2021?

Post by *AkulaBig »

I learned how to maximize a window in the plugin using the SumatraPDF settings. But I can't catch the pattern. I hope I can figure it out.
Post Reply