reddit / emacs

(org-inline-pdf) choose page number?

No_Statistician_9040 · 2022-09-30 22:40
I am only a lisp noob, hopefully a emacs wizard could help me with this code? The library does not seem to specify how to do this / if it is possible, the library is found here: [https://github.com/shg/org-inline-pdf.el/blob/master/org-inline-pdf.el](https://github.com/shg/org-inline-pdf.el/blob/master/org-inline-pdf.el) ​ The readme does not specify this, but the Code itself seems fairly small, i tried understanding it (its hard for me to understand), it seems it mentions something about arguments input, and as specified by "man pdf2svg" i should be able to supply page number as argument so i tried doing: ``` #+CAPTION: This is a pdf page for notes #+NAME: fig:l1p2 #+ARGUMENTS: 2 [[./01_Introduction.pdf]] ``` with no luck, hopefully a clever guy here knows how i can do this?
eli-qq · 2022-10-01 01:03
The original version doesn't prodvide a argument to specify the page number of the pdf, I have created a [PR](https://github.com/shg/org-inline-pdf.el/pull/4) to support that feature. Now you can use "#+attr\_org: :page NUM" to choose page number.
No_Statistician_9040 · 2022-10-01 11:57
Dude you are seriously incredible! I downloaded your repos and manually loaded it until original author merges. I am really grateful you just swing by saving my day. Hopefully other people find page selection useful too. Have a great day!