Re: [Tiki-devel] Does anyone knows a trick to display a PDF document from a google drive on a Wiki page ?
Jean-Marc Libs <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.devel |
|---|---|
| Message-ID | <CA++RN4cCa6x0drgwHVQxRUboa0m+mS1Aso5W5VeFCxRSKzZnvA@mail.gmail.com> |
According to recent experimenting I did, the syntax {mediaplayer
src="display42" type="pdf"} will not work (any more?) with a url outside of
the site domain.
I even noticed that {mediaplayer src="https://example.com/display42"
type="pdf"} would fail when browsing the page on https://*www*.example.com.
It would only work when browsing https://example.com
Probably some security thing.
That's not even setting"HTTP header x-frame options : SAMEORIGIN"
Cheers
On Tue, Feb 15, 2022 at 11:56 AM Jonny Bradley via TikiWiki-devel <
[email protected]> wrote:
> Curious, i think it should work (it used to)
>
> Like this? (the type=pdf is important)
>
> {mediaplayer src="display42" type="pdf"}
>
> It needs the pdf.js package installed and unfortunately that's totally
> borken on macOS in 24.x currently (it can't find php any more since it
> stopped using `which php` and no time to fill a bug report...)
>
> jb
>
>
>
>
> > On 14 Feb 2022, at 17:15, Bernard Sfez via TikiWiki-devel <
> [email protected]> wrote:
> >
> > Thanks Rick,
> >
> > For sure that’s one way to do it I didn’t thought about
> > I guess I will keep my feature request. ;-)
> >
> > Bernard
> >
> >> On 14 Feb 2022, at 18:47, Rick Sapir <[email protected]> wrote:
> >>
> >> I use the IFRAME plugin (and I guess the HTML plugin will work, too).
> Something like:
> >>
> >> {IFRAME( width="480" height="640" src="https://drive.google.com/file/d/<YOUR
> ACTUAL DOCUMENT URL>/preview")}{IFRAME}
> >>
> >> should work
> >>
> >> -R
> >>
> >> Rick Sapir
> >>
> >> ricksapir.com
> >>
> >> @ricksapir
> >>
> >> Creating Content -- Managing Information
> >>
> >> On 2/14/2022 11:00 AM, Bernard Sfez via TikiWiki-devel wrote:
> >>> Helas no, I tried in any ways and at best the PDF code is displayed:
> >>>
> >>> <Screen%20Shot%202022-02-10%20at%207.51.50.jpg>
> >>>
> >>>> On 14 Feb 2022, at 15:22, Jonny Bradley via TikiWiki-devel <
> [email protected]> wrote:
> >>>>
> >>>> Hi B
> >>>>
> >>>> Won't https://doc.tiki.org/PluginMediaPlayer#pluginmediaplayerhtml
> do that for you?
> >>>>
> >>>> jb
> >>>>
> >>>>
> >>>>
> >>>>> On 14 Feb 2022, at 10:42, Bernard Sfez via TikiWiki-devel <
> [email protected]> wrote:
> >>>>>
> >>>>> Hello,
> >>>>>
> >>>>> Is it possible to display a PDF document from a google drive on a
> Wiki page ?
> >>>>>
> >>>>> I added a feature request on the tracker5 but then wondered that may
> be I missed an option or a trick to do this.
> >>>>>
> >>>>>
> https://dev.tiki.org/item8079-Wikiplugin-mediaplayer-webdocviewer-googleDoc-Allow-to-display-a-PDF-document-from-a-google-drive
> >>>>>
> >>>>> Any ideas ?
> >>>>>
> >>>>> Bernard
> >>>
> >>>
> >>>
> >>>
> >>> _______________________________________________
> >>> TikiWiki-devel mailing list
> >>>
> >>> [email protected]
> >>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
> >> _______________________________________________
> >> TikiWiki-devel mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
> >
> > _______________________________________________
> > TikiWiki-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>
>
>
> _______________________________________________
> TikiWiki-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
>
_______________________________________________
TikiWiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel