XMBC Version: 2.20.5
Installed or Portable version: Installed
Windows Version: Windows 10 x64
Mouse Information (brand/model): Redagron M901
Relevant Computer Information (CPU, RAM etc): Intel 16gb
Did the problem occur after an upgrade of XMBC? (If so, from what version?): No
Did the problem occur after a Windows update/upgrade? (If so, from what version?): No
How long have you used XMBC?: More than 5 years
What language and keyboard layout do you use in Windows?: English
Clear description of the problem - try and include as much information as possible, including what button and mappings you are having problems with (if applicable).:
I am using Firefox. When I visit this page (and the like), https://media.vbgov.com/rea/plats/202000097006.pdf, I would like to use the mouse wheel to zoom in/out. There are buttons at the top of the page to zoom, but after a zoom it requires using the scroll bars to reposition the image. Therefore, I would also like to find a way to implement left drag to pan.
I know how to set the per program settings, but I cannot find a way to implement this functionality. Is it even possible?
Zoom PDF in Firefox
Forum rules
Please read the forum rules before posting for the first time.
The more information you can provide, the quicker and more accurately someone can help.
NOTE: To reduce spam, new users can not post links, files or images until they have at least 4 posts.
Please read the forum rules before posting for the first time.
The more information you can provide, the quicker and more accurately someone can help.
NOTE: To reduce spam, new users can not post links, files or images until they have at least 4 posts.
-
phil
- Site Admin
- Posts: 7962
- Joined: Sun Apr 06, 2003 11:12 pm
Re: Zoom PDF in Firefox
Zoom in and out is easy, as CTRL + mouse wheel already does that - but automatically dragging/panning left might be more of a problem... Except maybe using the left/up arrow keys will "solve" that. Or shift+home + ctrl+home pans to top left.
The problem maybe how to determine if its a PDF. You may be able to create a profile that matches firefox + window title *.pdf - that should work in theory assuming the page name always ends in .pdf (the one you linked does). You may need to enable regular expression matching and use \*\.pdf in the window title field.
Then to zoom in and pan top left you could use simulated keys with something like:
{CTRL}{MWUP}{CTRL}{HOME}{SHIFT}{HOME}
You could put on mouse wheel up/down but then that will stop scroll from working. You could put it on other buttons, or use button chording (hold right button then scroll the wheel maybe)... I guess that's up to you how you want to enable/active it?!
The problem maybe how to determine if its a PDF. You may be able to create a profile that matches firefox + window title *.pdf - that should work in theory assuming the page name always ends in .pdf (the one you linked does). You may need to enable regular expression matching and use \*\.pdf in the window title field.
Then to zoom in and pan top left you could use simulated keys with something like:
{CTRL}{MWUP}{CTRL}{HOME}{SHIFT}{HOME}
You could put on mouse wheel up/down but then that will stop scroll from working. You could put it on other buttons, or use button chording (hold right button then scroll the wheel maybe)... I guess that's up to you how you want to enable/active it?!
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 11 x64 24H2, AMD Ryzen 9950x3D, MSI x870E Tomahawk, 64GB DDR%,
nVidia RTX 2070s (still lol)
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 11 x64 24H2, AMD Ryzen 9950x3D, MSI x870E Tomahawk, 64GB DDR%,
nVidia RTX 2070s (still lol)
-
dvertz
- Member
- Posts: 15
- Joined: Tue Jan 07, 2020 2:15 am
Re: Zoom PDF in Firefox
Thanks Phil,
I got the zoom part working but I am stuck on the profile part. Without getting the profile correct I end up with the zoom applying to all websites (not just the pages that have PDF in the title). My "Find Window" does not show a "Window Title". I assumed that "Caption" would be correct, but that also did not work. Then I tried the Reg X and still no avail. Could you point me in the correct direction?
Here's the fields I have and their current values:
Handle: *empty*
Caption: \*\.pdf
Process: firefox.exe
Class: MozillaCompositorWindowClass
Parent Class: MozillaWindowClass
Match Type: Window and Parent Window
Enable Regular Expression Matching is checked
Thanks
I got the zoom part working but I am stuck on the profile part. Without getting the profile correct I end up with the zoom applying to all websites (not just the pages that have PDF in the title). My "Find Window" does not show a "Window Title". I assumed that "Caption" would be correct, but that also did not work. Then I tried the Reg X and still no avail. Could you point me in the correct direction?
Here's the fields I have and their current values:
Handle: *empty*
Caption: \*\.pdf
Process: firefox.exe
Class: MozillaCompositorWindowClass
Parent Class: MozillaWindowClass
Match Type: Window and Parent Window
Enable Regular Expression Matching is checked
Thanks
-
phil
- Site Admin
- Posts: 7962
- Joined: Sun Apr 06, 2003 11:12 pm
Re: Zoom PDF in Firefox
My mistake,, the regex search term should be .*\.pdf
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 11 x64 24H2, AMD Ryzen 9950x3D, MSI x870E Tomahawk, 64GB DDR%,
nVidia RTX 2070s (still lol)
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 11 x64 24H2, AMD Ryzen 9950x3D, MSI x870E Tomahawk, 64GB DDR%,
nVidia RTX 2070s (still lol)
-
dvertz
- Member
- Posts: 15
- Joined: Tue Jan 07, 2020 2:15 am
Re: Zoom PDF in Firefox
Thanks Phil, That works, Kinda.
When using Tabs, once the page loads, everything zooms in/out as it should. But if you change to another tab, It will zoom, then it stops zooming and starts scrolling. Then when you change back to the PDF, it scrolls instead of zooming. You then have to refresh the page to get the zoom back. Firefox remains confused about what it supposed to do on which tab.
However, if I detach the tab from the main window, then everything does exactly what its supposed to do. The PDF zooms and the other web pages scroll. Now I just need to find a way to have PDFs open in a new window instead of a tab. But that's not an issue for XMBC to perform (that's a Firefox issue).
Thanks for your help.
When using Tabs, once the page loads, everything zooms in/out as it should. But if you change to another tab, It will zoom, then it stops zooming and starts scrolling. Then when you change back to the PDF, it scrolls instead of zooming. You then have to refresh the page to get the zoom back. Firefox remains confused about what it supposed to do on which tab.
However, if I detach the tab from the main window, then everything does exactly what its supposed to do. The PDF zooms and the other web pages scroll. Now I just need to find a way to have PDFs open in a new window instead of a tab. But that's not an issue for XMBC to perform (that's a Firefox issue).
Thanks for your help.
-
phil
- Site Admin
- Posts: 7962
- Joined: Sun Apr 06, 2003 11:12 pm
Re: Zoom PDF in Firefox
I suspect this is a problem when XMBC is looking for the window title, it assumes it has not changed because its the "same" window when changing tabs... Browsers are (all) a bit of a pain, because the tabs can actually be separate processes too. In an attempt not to suck up too much CPU XMBC caches things like the active window/parent window and I suspect in this instance, that is causing this problem if it not picking up the new "window title" when the tab changes....
I might be able to improve that in the future, but it probably wont be a quick fix.
I might be able to improve that in the future, but it probably wont be a quick fix.
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 11 x64 24H2, AMD Ryzen 9950x3D, MSI x870E Tomahawk, 64GB DDR%,
nVidia RTX 2070s (still lol)
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 11 x64 24H2, AMD Ryzen 9950x3D, MSI x870E Tomahawk, 64GB DDR%,
nVidia RTX 2070s (still lol)
-
dvertz
- Member
- Posts: 15
- Joined: Tue Jan 07, 2020 2:15 am
Re: Zoom PDF in Firefox
Thanks Phil,
Not really required to have XMBC take more resources to do that. I would think this is a specialty thing that wouldn't be needed by most users. I found how to make Firefox open all PDFs in a new window by default. Simply change browser.link.open_newwindow.override.external to a value of 2. That works.
Not really required to have XMBC take more resources to do that. I would think this is a specialty thing that wouldn't be needed by most users. I found how to make Firefox open all PDFs in a new window by default. Simply change browser.link.open_newwindow.override.external to a value of 2. That works.
Highrez Forums