-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ExternalViewers #4397
Comments
Unclear how that would be defined SumatraPDF based on MuPDF uses screen Top Left XY many related aps would use PDF system of Bottom Left but again many use different scalar / unit for systems call. You can call Edge.lnk test.pdf#page=%p&zoom=175 but trying to force page location is highly variable and fickle among browsers above was from
|
@GitHubRulesOK "SumatraPDF based on MuPDF uses screen Top Left XY"
I need this for set shortcut key to scroll to the top of the page, and like
this:
[
CommandLine = "SumatraPDF.exe" -reuse-instance -scroll %x,0 "%1"
Name = scroll to the top
Key = 8
]
And scroll to the bottom of the page:
[
CommandLine = "SumatraPDF.exe" -reuse-instance -scroll %x,1200 "%1"
Name = scroll to the bottom
Key = 9
]
And for PDF-XChange Editor, the help there says: "
zoom=<scale>[,<left>,<top>] – sets the zoom and scroll factors using
float or integer values. For example, a scale value of 100 indicates a zoom
value of 100%. Scroll values left and top are in a coordinate system where
0,0 represents the top left corner of the visible page regardless of
document rotation.
"
בתאריך יום ד׳, 24 ביולי 2024 ב-23:24 מאת GitHubRulesOK <
***@***.***>:
… Unclear how that would be defined SumatraPDF based on MuPDF uses screen
Top Left XY many related aps would use PDF system of Bottom Left but again
many use different scalar / unit for systems call.
You can call Edge.lnk test.pdf#page=%p&zoom=175 but trying to force page
location is highly variable and fickle among browsers
image.png (view on web)
<https://github.com/user-attachments/assets/f881f33a-c83f-4194-927f-3d0f6528b4d9>
above was from
CommandLine = "C:\Program Files\Microsoft\Edge\Application\msedge.exe" --pdf-upsell-disabled --enable-features=msEdgeEpubReaderEnabled "file:///%1#page=%p&zoom=175"
—
Reply to this email directly, view it on GitHub
<#4397 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZFMFTHHLJPPJF3T2MQWKQDZOAEO7AVCNFSM6AAAAABLNEQEJSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBYHAZTMNZZGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
unclear of what the %x is supposed to be 4 years ago there were 2 examples for different user requirements one to top of page the other to middle top, but there is no concept of "middle" in a PDF
and
|
@GitHubRulesOK "but there is no concept of "middle" in a PDF"
For this exactly I need the %X, so that the scroll to the top of the page
is according to what I manually placed the middle according to the margins
of the document (I use a lot of documents where the left and right margins
are unequal and I have to position the middle manually, which is how I want
it to scroll to the top of the page when the X position is saved).
And as I said, I need it for the PDF-XChange Editor as well.
Hope the developer @kjk can fulfill my request, thanks!
בתאריך יום ה׳, 25 ביולי 2024 ב-20:32 מאת GitHubRulesOK <
***@***.***>:
… @H5820121 <https://github.com/H5820121>
unclear of what the %x is supposed to be 4 years ago there were 2 examples
for different user requirements one to top of page the other to middle top,
but there is no concept of "middle" in a PDF
ExternalViewers [
[
CommandLine = "C:\Program Files\SumatraPDF\SumatraPDF.exe" -reuse-instance -scroll 47,58
Name = Brutalscroll
Filter = *.pdf
]
]
and
ExternalViewers [
[
CommandLine = "C:\Program Files\SumatraPDF\SumatraPDF.exe" "%1" -page %p
-scroll 407,58
Name = &Back To Second Column
Filter = *.pdf
]
]
—
Reply to this email directly, view it on GitHub
<#4397 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZFMFTAJQBXDJ6YKQE5RCZTZOEZC3AVCNFSM6AAAAABLNEQEJSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJRGA2DGMRXGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
For your use case, you probably can use DDE commands: https://www.sumatrapdfreader.org/docs/DDE-Commands |
@GitHubRulesOK Could you please help me, I saw in the DDE documentation
the command
"[SetView("<pdffilepath>","<view mode>",<zoom
level>[,<scrollX>,<scrollY>])]"
What is DDE, and where do I write the DDE command?
בתאריך יום ה׳, 25 ביולי 2024 ב-21:40 מאת Krzysztof Kowalczyk <
***@***.***>:
… For your use case, you probably can use DDE commands:
https://www.sumatrapdfreader.org/docs/DDE-Commands
—
Reply to this email directly, view it on GitHub
<#4397 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZFMFTALOB424AXCIFNW7L3ZOFBBXAVCNFSM6AAAAABLNEQEJSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJRGE3DSNZTGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@kjk
Thanks, but that doesn't help me about the PDF-XChange Editor.
בתאריך יום ה׳, 25 ביולי 2024 ב-21:40 מאת Krzysztof Kowalczyk <
***@***.***>:
… For your use case, you probably can use DDE commands:
https://www.sumatrapdfreader.org/docs/DDE-Commands
—
Reply to this email directly, view it on GitHub
<#4397 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZFMFTALOB424AXCIFNW7L3ZOFBBXAVCNFSM6AAAAABLNEQEJSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJRGE3DSNZTGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
This is just a can of worms. It's unclear what the coordinate should be and there is no standard so it would likely have to be customized for each program you want to launch. I'll accept a PR but no plans to work on this myself. |
Can you please add arguments to ExternalViewers for the coordinates, and if possible for the zoom, something like that %x %y %z?
Thanks!
The text was updated successfully, but these errors were encountered: