I use a lot of pdfs on an everyday basis and what I wanted to do was 
something along the lines of : 


*When a button is pressed, it should open the pdf with a specific page 
number in another tiddler. *

This allows for referencing specific pages on the pdf which I find very 
useful at times. Are there any plugins that would do this?


----------------------------

I was able to get this functionality as follows:
* Run a simple http server on my pdfs folder
* I add a field called pdftitle to the tiddler with the path to the pdf 
(e.g., pdftitle="sample.pdf")
* The following script creates a button which upon clicking will open 
another tiddler with the sample.pdf embedded into it and also navigate to 
page-5. 

\define concatenate(par1) {{!!pdftitle}}$par1$

<div>
<$wikify name="newtitle" text=<<concatenate  "#page=5">> >
<$button style="color:blue;">
<$action-sendmessage $message="tm-new-tiddler" pagetitle=<<newtitle>> 
title="viewPage" text="""<object data={{!!pagetitle}}
   type="application/pdf" style="width: 100%; height: 820px" ></object>""" 
 />
 Page-5
</$button>
</$wikify>


The issue with this method though is that I am unable to turn this script 
into a 'macro' that I can call  (e.g., <<ref-pdf page-5>> ). Would 
appreciate any thoughts on how to about this. 

Thanks!
--
kvgc

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/dabac485-b0da-463b-867d-5b3290909bb9n%40googlegroups.com.

Reply via email to