Bug 455282 - Support for opening PDFs with page number
Summary: Support for opening PDFs with page number
Status: REPORTED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 22.04.1
Platform: Fedora RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-14 21:13 UTC by alexandre
Modified: 2022-12-21 11:59 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Error in question, folder "test" contains one PDF file named "document.pdf" (37.66 KB, image/png)
2022-06-14 21:13 UTC, alexandre
Details
attachment-3290-0.html (2.62 KB, text/html)
2022-06-14 21:20 UTC, tcanabrava
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alexandre 2022-06-14 21:13:50 UTC
Created attachment 149714 [details]
Error in question, folder "test" contains one PDF file named "document.pdf"

SUMMARY
When trying to open a PDF file finishing with page number (i.e "document.pdf#2"), Konsole gives an error message that the file doesn't exist.
Opening the same file by using the command `okular document.pdf#2` works as intended.

USECASE: I use a script based on pdfgrep to quickly find a PDF, then I open it in Okular by CTRL+clicking on it. Would be amazing for it to open at the right page as well !

STEPS TO REPRODUCE
1.  have a PDF document
2.  in Konsole, do `echo "'./document_name.pdf#2'"`
3.  try to CTRL+click './document_name.pdf#2'

OBSERVED RESULT
Error message that the file doesn't exist (see screenshot for example - in French)

EXPECTED RESULT
PDF opening in Okular at the right page

SOFTWARE/OS VERSIONS
Fedora Linux 36
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3
Comment 1 tcanabrava 2022-06-14 21:20:19 UTC
Created attachment 149715 [details]
attachment-3290-0.html

Seems doable, is this # used by other file formats too?

On Tue, 14 Jun 2022 at 22:14 <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=455282
>
>             Bug ID: 455282
>            Summary: Support for opening PDFs with page number
>            Product: konsole
>            Version: 22.04.1
>           Platform: Fedora RPMs
>                 OS: Linux
>             Status: REPORTED
>           Severity: wishlist
>           Priority: NOR
>          Component: general
>           Assignee: konsole-devel@kde.org
>           Reporter: alexandre@zurcher.digital
>   Target Milestone: ---
>
> Created attachment 149714 [details]
>   --> https://bugs.kde.org/attachment.cgi?id=149714&action=edit
> Error in question, folder "test" contains one PDF file named "document.pdf"
>
> SUMMARY
> When trying to open a PDF file finishing with page number (i.e
> "document.pdf#2"), Konsole gives an error message that the file doesn't
> exist.
> Opening the same file by using the command `okular document.pdf#2` works as
> intended.
>
> USECASE: I use a script based on pdfgrep to quickly find a PDF, then I
> open it
> in Okular by CTRL+clicking on it. Would be amazing for it to open at the
> right
> page as well !
>
> STEPS TO REPRODUCE
> 1.  have a PDF document
> 2.  in Konsole, do `echo "'./document_name.pdf#2'"`
> 3.  try to CTRL+click './document_name.pdf#2'
>
> OBSERVED RESULT
> Error message that the file doesn't exist (see screenshot for example - in
> French)
>
> EXPECTED RESULT
> PDF opening in Okular at the right page
>
> SOFTWARE/OS VERSIONS
> Fedora Linux 36
> KDE Plasma Version: 5.24.5
> KDE Frameworks Version: 5.93.0
> Qt Version: 5.15.3
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
Comment 2 alexandre 2022-06-14 21:32:22 UTC
(In reply to tcanabrava from comment #1)
> Created attachment 149715 [details]
> attachment-3290-0.html
> 
> Seems doable, is this # used by other file formats too?
> 
> On Tue, 14 Jun 2022 at 22:14 <bugzilla_noreply@kde.org> wrote:
> 
> > https://bugs.kde.org/show_bug.cgi?id=455282
> >
> >             Bug ID: 455282
> >            Summary: Support for opening PDFs with page number
> >            Product: konsole
> >            Version: 22.04.1
> >           Platform: Fedora RPMs
> >                 OS: Linux
> >             Status: REPORTED
> >           Severity: wishlist
> >           Priority: NOR
> >          Component: general
> >           Assignee: konsole-devel@kde.org
> >           Reporter: alexandre@zurcher.digital
> >   Target Milestone: ---
> >
> > Created attachment 149714 [details]
> >   --> https://bugs.kde.org/attachment.cgi?id=149714&action=edit
> > Error in question, folder "test" contains one PDF file named "document.pdf"
> >
> > SUMMARY
> > When trying to open a PDF file finishing with page number (i.e
> > "document.pdf#2"), Konsole gives an error message that the file doesn't
> > exist.
> > Opening the same file by using the command `okular document.pdf#2` works as
> > intended.
> >
> > USECASE: I use a script based on pdfgrep to quickly find a PDF, then I
> > open it
> > in Okular by CTRL+clicking on it. Would be amazing for it to open at the
> > right
> > page as well !
> >
> > STEPS TO REPRODUCE
> > 1.  have a PDF document
> > 2.  in Konsole, do `echo "'./document_name.pdf#2'"`
> > 3.  try to CTRL+click './document_name.pdf#2'
> >
> > OBSERVED RESULT
> > Error message that the file doesn't exist (see screenshot for example - in
> > French)
> >
> > EXPECTED RESULT
> > PDF opening in Okular at the right page
> >
> > SOFTWARE/OS VERSIONS
> > Fedora Linux 36
> > KDE Plasma Version: 5.24.5
> > KDE Frameworks Version: 5.93.0
> > Qt Version: 5.15.3
> >
> > --
> > You are receiving this mail because:
> > You are the assignee for the bug.

Thanks for answering so quickly ! HTML files do come to mind, i.e "index.html#main". I just tried it and it produces the same error when trying to CTRL+clicking it. However, using "firefox index.html#main" does work as expected.
Comment 3 Fushan Wen 2022-12-21 11:59:42 UTC
document_name.pdf#2 can be a real filename