Re: [tw] Re: Displaying inline pdfs using pdf.js

2014-04-02 Thread Ulrik Stervbo
In case anyone else wanders in here. The solution seems to be: > > It appears you don't have a PDF plugin for this browser. > No biggie... you can click here to > download the PDF file. > > > Cheers, Ulrik On Wednesday, 11 July 2012 13:23:17 UTC+2, Meta wrote: > > I would also be in

Re: [tw] Re: Displaying inline pdfs using pdf.js

2012-07-11 Thread Meta
I would also be interested to see this On Tuesday, July 10, 2012 11:47:40 PM UTC+8, Craig in Calgary wrote: > > I finally ended up with both iframes and objects and to display my menus >> in front of them, I put an iframe shim in a tiddler and transclude that >> tiddler into my menu. It was a li

Re: [tw] Re: Displaying inline pdfs using pdf.js

2012-07-10 Thread Craig in Calgary
> > I finally ended up with both iframes and objects and to display my menus > in front of them, I put an iframe shim in a tiddler and transclude that > tiddler into my menu. It was a little trick with the search plugin im using > but i used the div examples in pagetemplate for displaying tiddl

Re: [tw] Re: Displaying inline pdfs using pdf.js

2012-06-28 Thread Robert Pollard
Friends One easy way I have recently discovered for embedding pdf files in TiddlyWiki is to use the *Google Docs Viewer* - https://docs.google.com/viewer On that page, you can enter the URL of any .pdf file - or .doc, .ppt etc. and generate a link to view the document in Google Docs along with co

Re: [tw] Re: Displaying inline pdfs using pdf.js

2012-06-27 Thread andrew.j.harrison84
I finally ended up with both iframes and objects and to display my menus in front of them, I put an iframe shim in a tiddler and transclude that tiddler into my menu. It was a little trick with the search plugin im using but i used the div examples in pagetemplate for displaying tiddlers and it wor

Re: [tw] Re: Displaying inline pdfs using pdf.js

2012-05-18 Thread andrew.j.harrison84
Well, I found that I could remove the bottom padding from the css but now I have to put at the end of every tiddler and it is quirky if the tiddler ends witj a table or anything hidden with /% and %/ but it is a small price to pay for an inline pdf viewer that fills the tiddler area almost complet

Re: [tw] Re: Displaying inline pdfs using pdf.js

2012-05-16 Thread andrew.j.harrison84
Ok so I figured out that if I set the padding to a percentage, then I can apply a negative margin on the left and display width of 107 percent and the viewer fills the tiddler like I wanted but I just can't figure out what to do with the padding at the bottom of the tiddler that sticks out under th

[tw] Re: Displaying inline pdfs using pdf.js

2012-05-16 Thread Måns
Hi again > ... > div[tags~="Wide"] #sidebar {display:none;} > div[tags~="Wide"] #mainMenu {display:none;} > > (Not tested ...) Sorry - it seems that you won't be able to hide id's like this. You'll need http://mptw.tiddlyspot.com/#HideWhenPlugin or http://www.TiddlyTools.com/#TaggedTemplateTweak

[tw] Re: Displaying inline pdfs using pdf.js

2012-05-16 Thread Måns
Hi Andrew > I am wondering, if I use the viewer, how do I get it to display in the full > area of my tiddlers. Change iframe properties: http://docs.google.com/gview?url=$1&embedded=true"; style="width:100%; height:500px;" frameborder="0"> And/or change tiddler layout based on a tag: [[StyleSh

Re: [tw] Re: Displaying inline pdfs using pdf.js

2012-05-15 Thread andrew.j.harrison84
I am wondering, if I use the viewer, how do I get it to display in the full area of my tiddlers. I have the following in [[StyleSheet]]. It was set that way so that other text would display with cool looking tiddlers with a blue background but when the viewer displays, it leaves a white space aroun

[tw] Re: Displaying inline pdfs using pdf.js

2012-05-12 Thread Meta
Thanks for your suggestion Måns. The main drawback of using the Google document viewer is, as that site says, that the pdfs need to be online. I like to use Tiddlywiki to organise my local pdf collection. I have the Tiddlywiki generate a listing based on the pdf files in a certain directory and wan

[tw] Re: Displaying inline pdfs using pdf.js

2012-05-10 Thread Måns
Hi Meta I use google's document viewer via an iframe for showing pdfs and powepoint presentations in tiddlers .. Checkout: http://googlesystem.blogspot.com/2009/09/embeddable-google-document-viewer.html You can easily turn it into a transclusion replacing the url with a variable... [[MyPdfView

[tw] Re: Displaying inline pdfs using pdf.js

2012-05-10 Thread Meta
THanks for your reply mario. Yes, for many purposes the browser plugin may be better, but I still think there are benefits to rendering documents with pdf.js (mainly portability). A compromise would be to load the pdf.js file directly from github. I've tried this and it works. This way it will stay

[tw] Re: Displaying inline pdfs using pdf.js

2012-05-10 Thread PMario
Hi, This project is quite interesting. But ... I had a look at the github source, 1.3 MByte (uncompressed) is 3 times as much as a vanilla TW itself. Just for viewing PDFs, I wouldn't want to carry that around within a TW. I personally would use the browser plugin [1], which will be automatically