Giter Club home page Giter Club logo

Comments (6)

fpopineau avatar fpopineau commented on August 27, 2024 2

Ok, it does work with the minimum link being: pdftools://:: .
Now I see your point and I have been fooled by some instruction from the pdfview package, which said:

;; If you want, you can also configure the org-mode default open PDF file function.
;; (add-to-list 'org-file-apps '("\\.pdf\\'" . (lambda (file link) (org-pdfview-open link))))

And I replaced pdfview by pdftools whithout further thinking.
This is what is not expected to work.
Thanks,

from org-pdftools.

fuxialexander avatar fuxialexander commented on August 27, 2024

org-pdftools is supposed to be used with pdftools, not other system pdf viewers.

from org-pdftools.

fpopineau avatar fpopineau commented on August 27, 2024

Hi,

Unfortunately, I am using pdftools as my pdf viewer.
(And I don't understand why you inferred that it might not be the case ?)

Regards,

from org-pdftools.

fuxialexander avatar fuxialexander commented on August 27, 2024

For opening "pdftools:" links, is that working fine?
For (org-open-file "some.pdf"), I suppose pdf-tools itself can handle that? What's the use of org-pdfview here? If you are talking about org-file-apps, you can set it to ("pdf" . emacs) to let pdf-tools handle it.

from org-pdftools.

hyiltiz avatar hyiltiz commented on August 27, 2024

Hmm, so how should one adjust a config like

;; If you want, you can also configure the org-mode default open PDF file function.
;; (add-to-list 'org-file-apps '("\\.pdf\\'" . (lambda (file link) (org-pdfview-open link))))

so that it works with org-pdftools?

from org-pdftools.

wiessall avatar wiessall commented on August 27, 2024

I know it's been a long time, but me as a newbie I was wondering the same thing. To achieve '(org-file-apps '(("\\.pdf\\'" . emacs))) it is enough to use customize-variable org-file-apps and select 'Visit with Emacs'. This indeed let's org-pdftools handle everything automatically.

from org-pdftools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.