[tw5] Success Part 1: Peer-to-peer TiddlyWiki instances

2022-02-25 Thread Charlie Veniot
(This is a follow-up to Farm of single-file TiddlyWiki instances ? 
)

https://youtu.be/O1sHCFYN4vI


-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/26022a8b-b4ab-46db-92a0-a55579b0d181n%40googlegroups.com.


[tw5] Re: Scaling shown pdfs?

2022-02-25 Thread Eric Shulman
Here's a little macro that I've been working on.  It handles both 
internally-stored (base64 encoded data URIs) and externally-stored (using 
_canonical_uri) PDFs.  It uses URL parameters to omit the default PDF 
viewer's toolbar, and can also automatically scroll to a specified page 
within the PDF:
```
\define PDF(tid,page,suffix)
<$vars hdr={{{ [[data:]] [[$tid$]get[type]] [[;base64,]] +[join[]] }}}>
<$vars arg="#toolbar=0=$page$&$suffix$">
<$vars src={{{ [[$tid$]get[_canonical_uri]] 
~[[$tid$]get[text]addprefix] [] +[join[]] }}}>
<$vars sty="border:0;width:100%;height:100%;">
> style=<>>
   > style=<>/>

\end
```
To set the desired display size, enclose the `<>` macro inside a 
`` using a style attribute to specify the width and height.

For example, to show a regular page size, you can write:
`<>`
or, to scale it down to half size:
`<>`
or, as a thumbnail:
`<>`

Here's some documentation from Adobe about using URL parameters for opening 
PDF files:
https://pdfobject.com/pdf/pdf_open_parameters_acro8.pdf

enjoy,
-e
On Friday, February 25, 2022 at 4:36:52 AM UTC-8 Petri M. wrote:

> Works great! Thank you!
>
> -Petri
>
> On Friday, February 25, 2022 at 2:24:24 PM UTC+2 ser...@gmail.com wrote:
>
>>
>> > height="540px">
>> Em quinta-feira, 24 de fevereiro de 2022 às 18:46:14 UTC-3, Sergio Rolim 
>> escreveu:
>>
>>> https://groups.google.com/g/tiddlywiki/c/TylT-kCvfTk/m/qiz5B4-zDAAJ
>>>
>>> Em quinta-feira, 24 de fevereiro de 2022 às 08:07:20 UTC-3, Petri M. 
>>> escreveu:
>>>

 I just added a pdf as an external image with _canonical_uri and 
 everything works fine, but the pdf is quite large and it is very hard to 
 read from the small pdf viewer because I use two column system. I thought 
 about opening the tiddler in an external window but for some reason the 
 pdf 
 only get *smaller *and is entirely impossible to read.

 Can I scale the pdf zoom and perhaps put it in landscape mode or 
 something? I guess it is being handled by adobe pdf reader. Or maybe fix 
 the opening as a new window?

 I mean look at this, can't really do anything with this:

 [image: Screenshot 2022-02-24 130417.png]

>>>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0173c7f5-0711-49e8-a603-bba402666958n%40googlegroups.com.


[tw5] Re: Scaling shown pdfs?

2022-02-25 Thread Petri M.
Works great! Thank you!

-Petri

On Friday, February 25, 2022 at 2:24:24 PM UTC+2 ser...@gmail.com wrote:

>
>  height="540px">
> Em quinta-feira, 24 de fevereiro de 2022 às 18:46:14 UTC-3, Sergio Rolim 
> escreveu:
>
>> https://groups.google.com/g/tiddlywiki/c/TylT-kCvfTk/m/qiz5B4-zDAAJ
>>
>> Em quinta-feira, 24 de fevereiro de 2022 às 08:07:20 UTC-3, Petri M. 
>> escreveu:
>>
>>>
>>> I just added a pdf as an external image with _canonical_uri and 
>>> everything works fine, but the pdf is quite large and it is very hard to 
>>> read from the small pdf viewer because I use two column system. I thought 
>>> about opening the tiddler in an external window but for some reason the pdf 
>>> only get *smaller *and is entirely impossible to read.
>>>
>>> Can I scale the pdf zoom and perhaps put it in landscape mode or 
>>> something? I guess it is being handled by adobe pdf reader. Or maybe fix 
>>> the opening as a new window?
>>>
>>> I mean look at this, can't really do anything with this:
>>>
>>> [image: Screenshot 2022-02-24 130417.png]
>>>
>>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0f862e00-b978-458b-a4d2-3a39fa72643an%40googlegroups.com.


[tw5] Re: Scaling shown pdfs?

2022-02-25 Thread Sergio Rolim


Em quinta-feira, 24 de fevereiro de 2022 às 18:46:14 UTC-3, Sergio Rolim 
escreveu:

> https://groups.google.com/g/tiddlywiki/c/TylT-kCvfTk/m/qiz5B4-zDAAJ
>
> Em quinta-feira, 24 de fevereiro de 2022 às 08:07:20 UTC-3, Petri M. 
> escreveu:
>
>>
>> I just added a pdf as an external image with _canonical_uri and 
>> everything works fine, but the pdf is quite large and it is very hard to 
>> read from the small pdf viewer because I use two column system. I thought 
>> about opening the tiddler in an external window but for some reason the pdf 
>> only get *smaller *and is entirely impossible to read.
>>
>> Can I scale the pdf zoom and perhaps put it in landscape mode or 
>> something? I guess it is being handled by adobe pdf reader. Or maybe fix 
>> the opening as a new window?
>>
>> I mean look at this, can't really do anything with this:
>>
>> [image: Screenshot 2022-02-24 130417.png]
>>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c7c47a42-6027-44f6-a9a9-bde76c2c8e4dn%40googlegroups.com.