Dear Springer
Thanks a lot. This worked well. 
I'm assuming the process for Dropbox pdfs is relatively straightforward? Or 
are there further changes in the links to be made? 
May I ask which is your preferred cloud backup for TW?

Thanks in advance. 
Manish

On Tuesday, 22 December, 2020 at 1:42:26 am UTC+5:30 springer wrote:

> Manish,
>
> Indeed, Google Drive doesn't really want to "host" properly; it wants to 
> make people visit more directly. So when you generate a "public link" using 
> google drive, that link just allows people to visit (and then view or 
> download) a hosted file through google drive's own interface. 
>
> HOWEVER, I found a workaround 
> <https://blog.usejournal.com/host-static-images-for-your-apps-or-website-on-google-drive-hotlink-to-gdrive-images-358d6fcf8ef7>
>  that 
> shows how to rework the public shareable link that google gives you.
> I've copied the revelant lines from a helpful blogger named Pius Aboyi:
>
> *https://drive.google.com/file/d/**1Pz_01i2itDW1QZmSMuHen3WZYAJJ3pTV*
> */view?usp=sharing* 
> <https://drive.google.com/file/d/1Pz_01i2itDW1QZmSMuHen3WZYAJJ3pTV/view?usp=sharing>
>
> *1Pz_01i2itDW1QZmSMuHen3WZYAJJ3pTV* 
> <https://drive.google.com/file/d/1Pz_01i2itDW1QZmSMuHen3WZYAJJ3pTV/view?usp=sharing>*
>  is 
> the **id** for your file. So, you can build the URL like so:*
>
> *https://drive.google.com/uc?id=1Pz_01i2itDW1QZmSMuHen3WZYAJJ3pTV 
> <https://drive.google.com/uc?id=1Pz_01i2itDW1QZmSMuHen3WZYAJJ3pTV>*
>
> In other words, you want to isolate the file's id string, and prefix it 
> with 
>
> https://drive.google.com/uc?id= 
>
> For me, I've just confirmed that if I've cleared the file at google drive 
> (setting it up for access by anyone with link), it works to paste that 
> resulting modified string in the _canonical_uri field, give the tiddler 
> "application/pdf" type. Now the tiddler window to displays my google-drive 
> hosted pdf file as expected.
>
> -Springer
>
> On Monday, December 21, 2020 at 12:28:31 PM UTC-5 [email protected] 
> wrote:
>
>> Dear Springer.
>> Is your method also applicable for pdf's hosted in Google Drive. 
>> When I go to the "Get Link" section, I get a long link. However, TW 
>> doesnt recognize this as a pdf when I follow your steps.
>> Is there a different steps for files hosted on Google Drive?
>> Regards
>> Manish
>> On Tuesday, 14 January, 2020 at 12:16:37 am UTC+5:30 springer wrote:
>>
>>> Chuck, and Nic,
>>>
>>> I *can* see PDFs in my TW5, though I haven't tried to get any kind of 
>>> thumbnail function.
>>>
>>> I host my PDFs on dropbox, and use dropbox to "copy a public link" for 
>>> the PDF. 
>>>
>>> Then I create a tiddler, titled however I like. At the bottom of editor 
>>> interface, add a new field called 
>>> _canonical_uri
>>>
>>> (Note that's an i, not an l). Paste your file's url link in the space to 
>>> the right and click the button to "add" the field.
>>>
>>> Then go select from the "Type" menu (right below edit box): 
>>> "application/pdf"
>>>
>>> When you return to view mode, the result is a little PDF viewer box, 
>>> much like you see on other websites that host PDFs.
>>>
>>> Cheers.
>>>
>>> -Springer
>>>
>>>
>>> On Monday, January 13, 2020 at 11:20:42 AM UTC-5, Chuck R. wrote:
>>>>
>>>>
>>>>    1. Download TW5 to your local hard drive here: 
>>>>    https://tiddlywiki.com/#GettingStarted
>>>>    2. Choose a method of saving the file locally or to Tiddlywiki or 
>>>>    on some other server. Get that set up somehow. I use Tiddlyspot with 
>>>>    Chrome, Tiddlyspot does not seem to work well with Firefox as FF always 
>>>>    wants to save the file locally. 
>>>>    3. Start playing around with features of TW. 
>>>>    4. I am able to store a PDF on a TW5 but cannot read it inside TW5. 
>>>>    I just see a blank tiddler. 
>>>>    5. For EPUB files I'm able to drag and drop an EPUB file on to TW5, 
>>>>    but the tiddler that contains the EPUB now only says "Tiddler contains 
>>>>    binary data". I cannot view it inside the TW5 and I'm unsure how to 
>>>> export 
>>>>    an EPUB from TW5. 
>>>>    6. For PDFs you will probably have to take a screen shot of the 
>>>>    page you want to view in TW5 and show that image. Just drag and drop 
>>>> the 
>>>>    image to TW5. Images are well supported. Then you insert the image into 
>>>>    another tiddler which contains a table. 
>>>>    7. TW5 has its own wiki language, it is not media wiki. TW5 
>>>>    supports Markdown but then you lose a lot of TW5 features by using 
>>>>    markdown. That's why I converted about 20 tiddlers from markdown to TW5.
>>>>    8. Info on TW5 tables is here: 
>>>>    https://tiddlywiki.com/#Tables%20in%20WikiText
>>>>    9. To download your CURRENT version of your TW5 from Tidddlyspot go 
>>>>    to YOURWIKI.tiddlyspot.com/download. 
>>>>    
>>>>
>>>>
>>>>
>>>>
>>>>

-- 
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/89e774f8-c133-44a3-96fe-99ea764019ecn%40googlegroups.com.

Reply via email to