Re: TR:  Inserer un pdf dans un article

JLuc <[email protected]> Wed, 21 Apr 2021 16:21:15 +0200
Newsgroups gmane.comp.web.spip.user
Message-ID <[email protected]>
Je ne connais pas bien le contexte
mais peut être ces améliorations pourraient elles faire l'objet d'un article sur contrib ?
voire d'une proposition de commit dans le plugin si c'est pertinent ?
JL

Le 21/04/2021 à 10:43, Josiane ALETTO a écrit :
> pour avoir un meilleur affichage des pdf sur les mobiles et faciliter la saisie des redacteur j'ai modifié le modele et 
> rajouter du css dans pdf js
> 
>   je les joins ( je ne sais pas la piece jointe va etre prise en compte)
> 
>      > Message du 21/04/21 10:41
>      > De : "Josiane ALETTO" <[email protected]>
>      > A : "Luc Mamin" <[email protected]>, [email protected]
>      > Copie à :
>      > Objet : Re: [Spip] TR:  Inserer un pdf dans un article
>      >
>      >
> 
>      >
>     en 3.3 j'ai rajoute un modele file qui me régle ces problèmes de emb
> 
>      > pour :pdfjs et oembed
> 
>      >
> 
>      >
> 
>      > <BOUCLE_doc(DOCUMENTS) {id_document=#ENV{id,#ENV{id_document}}}>
>       [(#EXTENSION|=={pdf}|oui)
> 
>           [(#PLUGIN{pdfjs}|oui) [(#MODELE{emb_pdf,env,id_document,largeur=#ENV{largeur,1200},hauteur=#ENV{hauteur,1050}})]
>          ]
>          [(#PLUGIN{pdfjs}|non)
> 
> 
>       #TITRE_DOCUMENT
> 
> 
>                                marginheight="0"  marginwidth="0" frameborder="0" allowfullscreen
>                                style="display:block;height:100%;java-script:hidden;width:100%;max-width:100%!important;" >
> 
>     [(#TITRE) ][ fichier : (#FICHIER|basename) ][ credits : (#CREDITS)  ][ ( (#TAILLE|taille_en_octets) )]
> 
> 
> 
>          ]
>       ]
>         [(#EXTENSION|=={html}|oui)
>          [(#PLUGIN{oembed}|oui)   [(#MODELE{oembed,url=#OEMBED,env})] ]
>          [(#PLUGIN{oembed}|non)    <INCLURE{fond=plugins-dist/medias/modeles/file,env} /> ]
>          ]
> 
>       [(#EXTENSION|=={pdf}|non)
>              [(#EXTENSION|=={html}|non)
>                  <INCLURE{fond=plugins-dist/medias/modeles/file,env} />
>                  ]
>        ]
> 
>      >
> 
>      >
> 
>      >
> 
>      >
> 
>      >
> 
>      >
> 
>      >
> 
>          > Message du 21/04/21 10:19
>          > De : "Luc Mamin" <[email protected]>
>          > A : [email protected]
>          > Copie à :
>          > Objet : Re: [Spip] TR:  Inserer un pdf dans un article
>          >
>          >
> 
>          > > Bonjour
> 
>          > > Avec Spip 3.2.9, j'utilise https://contrib.spip.net/Lecteur-pdf-java-script-pdf-js
>          > Même si le modèle n'apparaît pas dans la liste proposée, il suffit de changer manuellement  "doc" en "emb" au
>         moment de l'insertion du document.
> 
>          > > J'avais essayé https://contrib.spip.net/Visualiser-un-PDF-dans-un-articlemais avec Firefox l'effet obtenu
>         dépend intégralement des réglages du navigateur côté visiteur.
> 
>          > > Par chez moi, en test sur Spip 3.3.0, avec https://contrib.spip.net/Lecteur-pdf-java-script-pdf-jsle modèle
>         ne semble plus interprété pour les PDF.
>         > Mais en ajoutant https://contrib.spip.net/Plugin-Modeles-media,  le modèle <mediaXX|insert|center> insère bien le fichier pdf
>         dans l'article.
> 
>          > > @+
>         > Luc
> 
>         Le 21/04/2021 à 10:12, Chemin-Roberty Anne a écrit :
>          >
> 
>              > > En fait sur la version de Spip 3.2.11, mon insert du pdf directement dans le corps de l'article ne
>             s'affiche plus. Ce qu'il fait correctement sur les versions antérieures avec le même plugin.
> 
>              > > Je pose la question aux développeurs.
> 
>              > >
>              >
> 
>              > > Le 2021-04-21 09:50, Chemin-Roberty Anne a écrit :
> 
>                  > > Bonjour,
> 
>                  > > En utilisant le plugin Modèle_media, j'insère le PDF comme document associé à l'article, comme je
>                 le ferai pour une image et je l'insère ainsi dans la corps de l'article : <mediaXXX|insert|center>, ça
>                 marche très bien.
> 
>                 Anne
> 
>                  > >
>                  >
> 
>                  > > Le 2021-04-21 09:44, Eric LM a écrit :
> 
>                      > > Bonjour à tous, il m'est arrivé d'utiliser une iframe, avec le PDF chargé en document de
>                     l'article :
> 
>                      > >     "http://www.domaine.tld/IMG/pdf/choeur-cite_1.pdf#toolbar=0" width="90%" height="700">
>                      >
> 
>                      > > Sinon, effectivement, Calaméo.
> 
>                      > > Bonne journée,
> 
>                      > > Éric LM
> 
>                     Le 21/04/2021 à 08:57, Josiane ALETTO a écrit :
> 
>                          > >
>                          > j'utilise pdfjs en spip 3.3
> 
>                          > >
>                          >
> 
>                          > > https://contrib.spip.net/Lecteur-pdf-java-script-pdf-js
> 
>                          > >
>                          >
> 
>                          > >
>                          >
> 
>                          > > .
> 
>                          > >
>                          >
> 
>                          > >
>                          >
> 
>                          > >
>                          >
> 
>                          > >
>                          >
> 
>                              > Message du 21/04/21 06:02
>                              > > De : "Guilain DENISSELLE" <[email protected]>
>                              > > A : "[email protected]" <[email protected]>
>                              > > Copie à :
>                              > > Objet : [Spip] TR:  Inserer un pdf dans un article
>                              > >
>                              > >
> 
>                             J'utilise le modèle avec le plugin https://contrib.spip.net/Lecteur-pdf-java-script-pdf-js
>                             sur SPIP 3.2 <https://contrib.spip.net/Lecteur-pdf-java-script-pdf-js%20sur%20SPIP%203.2> et
>                             ça fonctionne bien 😊
> 
>                             *De :* webmaster <[email protected] <mailto:[email protected]>>
>                              > > *Envoyé :* mardi 20 avril 2021 20:24
>                              > > *À :* [email protected] <mailto:[email protected]>
>                              > > *Objet :* Re: [Spip] Inserer un pdf dans un article
> 
>                              > > > Je ne me complique pas la vie en spip 3.2.7. Je télécharge le fichier que j'introduis
>                             ensuite   dans l'article comme une photo <doc.....|left ou right ou center> . quand on
>                             clique dessus, firefox et safari affichent le PDF dans un nouvel onglet. Je n'ai pas trouvé
>                             mieux; sinon je joue avec calaméo : https://fr.calameo.com/account/book
>                             <https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ffr.calameo.com%2Faccount%2Fbook&data=04%7C01%7C%7C339e6fdfc50f48bc161208d90429910b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637545398843517864%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=NsdtjPGO3OAYW10D4fmnaIyaZGBKg9ShxL47RhYwexs%3D&reserved=0>.
>                             C'est gratuit et ça a un peu d'allure.
> 
>                              > > > J'ai essayé un plugin qui remplaçait "Calaméo" c'était FreePaper, (au moins on
>                             gardait la maîtrise des sources,)  mais il n'a pas été maintenu dans la communauté spip. Et
>                             je ne suis jamais parvenu à le configurer jusqu'au bout.  Dommage
> 
>                              > > > Mais bon, je ne suis pas expert, juste un amateur admiratif de la puissance de spip.
>                             Et je bidouille au mieux pour que mes articles ou mes pages aient de l'allure.
> 
>                             Alcide Carton
> 
>                             webmaster de l'ARBR
> 
>                             www.amis-robespierre.org  <https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.amis-robespierre.org%2F&data=04%7C01%7C%7C339e6fdfc50f48bc161208d90429910b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637545398843517864%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=j8uEagPtNilHj0splpBnA31Zukz9iEgC8aD0m6zXYVE%3D&reserved=0>
> 
>                             Le 20/04/2021 à 18:30, team spipfactoy a écrit :
> 
>                                  > > > Bonsoir,
> 
>                                  > > > j'ai besoin d'un coup de pouce
> 
>                                  > > > comment afficher un pdf dans un article en spip 3.3
> 
>                                  > > > sachant qu'en spip 3.3 le pdf telecharger a comme raccourci docxx
> 
>                                  > > >
> 
>                                  > > > merci
> 
>                                  > > >
> 
>                                  > > > il y a bien pdf.js mais c'est emb a priori
> 
> 
>                                         Utilisation
> 
>                                      > > > *Sous SPIP 3*
> 
>                                      > > > Une fois le plugin installé, utiliser le raccourci || pour faire apparaitre
>                                     le lecteur.
> 
>                                      > > > Il est aussi possible de préciser la taille du cadre
>                                     |<emb23898|largeur=800|hauteur=600>|
> 
>                                      > > > On peut aussi utiliser le lecteur en mode plein écran via la page
>                                      > > |spip.php?page=pdfjs&id_document=3|
> 
>                                 -- 
> 
>                                 spipfactory.fr
> 
>                                 ----
> 
>                                 En répondant a ce courriel vous acceptez implicitement la diffusion, l'échange de la conversation, sauf avis contraire clairement exprimé.
> 
>                                 _______________________________________________
> 
>                                 liste spip
> 
>                                 [email protected]  <mailto:[email protected]>  - désabonnement : envoyer un mail à[email protected]  <mailto:[email protected]>
> 
>                                   
> 
>                                 Archives :https://www.mail-archive.com/[email protected]/maillist.html  <https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.mail-archive.com%2Fspip%40rezo.net%2Fmaillist.html&data=04%7C01%7C%7C339e6fdfc50f48bc161208d90429910b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637545398843527821%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=DQ9YW3ATVMj6lmr%2Bgq2K0bW4%2Bk1r6smg%2FxV%2BvJKaxQY%3D&reserved=0>
> 
>                                   
> 
>                                 Infos :https://listes.rezo.net/mailman/listinfo/spip  <https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistes.rezo.net%2Fmailman%2Flistinfo%2Fspip&data=04%7C01%7C%7C339e6fdfc50f48bc161208d90429910b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637545398843537778%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=jQjXRYPaNQBiXhVlVmBhc5Jlo5ZQfhgGwO3uMZ3ovP0%3D&reserved=0>
> 
>                                   
> 
>                                 Documentation de SPIP :http://www.spip.net/  <https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.spip.net%2F&data=04%7C01%7C%7C339e6fdfc50f48bc161208d90429910b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637545398843537778%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=JK9xLPKNOIEpbV8TAcoYHGUqY86yhjrw8nzBgM63p7E%3D&reserved=0>
> 
>                                   
> 
>                                 Irc : de l'aide à toute heure :http://spip.net/irc  <https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fspip.net%2Firc&data=04%7C01%7C%7C339e6fdfc50f48bc161208d90429910b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637545398843547738%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=u%2Fajjf8kmsd5aa9qKzCQjJiI9qJE1BvptdcsLtzPO4U%3D&reserved=0>
> 
> 
>                              >
>                              >
>                              > _______________________________________________
>                              > liste spip
>                              > [email protected] - désabonnement : envoyer un mail à [email protected]
>                              >
>                              > Archives : https://www.mail-archive.com/[email protected]/maillist.html
>                              >
>                              > Infos : https://listes.rezo.net/mailman/listinfo/spip
>                              >
>                              > Documentation de SPIP : http://www.spip.net/
>                              >
>                              > Irc : de l'aide à toute heure : http://spip.net/irc
> 
> 
>                          >
> 
>                         _______________________________________________
>                         liste spip
>                         [email protected]  - désabonnement : envoyer un mail à[email protected]
> 
>                         Archives :https://www.mail-archive.com/[email protected]/maillist.html
> 
>                         Infos :https://listes.rezo.net/mailman/listinfo/spip
> 
>                         Documentation de SPIP :http://www.spip.net/
> 
>                         Irc : de l'aide à toute heure :http://spip.net/irc
> 
> 
>                      >
>                     _______________________________________________
>                      > liste spip
>                      > [email protected] <mailto:[email protected]> - désabonnement : envoyer un mail à [email protected]
>                     <mailto:[email protected]>
>                      >
>                      > Archives : https://www.mail-archive.com/[email protected]/maillist.html
>                     <https://www.mail-archive.com/[email protected]/maillist.html>
>                      >
>                      > Infos : https://listes.rezo.net/mailman/listinfo/spip <https://listes.rezo.net/mailman/listinfo/spip>
>                      >
>                      > Documentation de SPIP : http://www.spip.net/ <http://www.spip.net/>
>                      >
>                      > Irc : de l'aide à toute heure : http://spip.net/irc <http://spip.net/irc>
> 
> 
>                  >
>                 _______________________________________________
>                  > liste spip
>                  > [email protected] <mailto:[email protected]> - désabonnement : envoyer un mail à [email protected]
>                 <mailto:[email protected]>
>                  >
>                  > Archives : https://www.mail-archive.com/[email protected]/maillist.html
>                 <https://www.mail-archive.com/[email protected]/maillist.html>
>                  >
>                  > Infos : https://listes.rezo.net/mailman/listinfo/spip <https://listes.rezo.net/mailman/listinfo/spip>
>                  >
>                  > Documentation de SPIP : http://www.spip.net/ <http://www.spip.net/>
>                  >
>                  > Irc : de l'aide à toute heure : http://spip.net/irc <http://spip.net/irc>
> 
> 
>              >
> 
>             _______________________________________________
>             liste spip
>             [email protected]  - désabonnement : envoyer un mail à[email protected]
> 
>             Archives :https://www.mail-archive.com/[email protected]/maillist.html
> 
>             Infos :https://listes.rezo.net/mailman/listinfo/spip
> 
>             Documentation de SPIP :http://www.spip.net/
> 
>             Irc : de l'aide à toute heure :http://spip.net/irc
> 
> 
> 
> 
>         _______________________________________________
>         liste spip
>         [email protected] - désabonnement : envoyer un mail à  [email protected]
> 
>         Archives : https://www.mail-archive.com/[email protected]/maillist.html
> 
>         Infos : https://listes.rezo.net/mailman/listinfo/spip
> 
>         Documentation de SPIP : http://www.spip.net/
> 
>         Irc : de l'aide à toute heure : http://spip.net/irc
> 
> 
> 
> 
>     _______________________________________________
>     liste spip
>     [email protected] - désabonnement : envoyer un mail à  [email protected]
> 
>     Archives : https://www.mail-archive.com/[email protected]/maillist.html
> 
>     Infos : https://listes.rezo.net/mailman/listinfo/spip
> 
>     Documentation de SPIP : http://www.spip.net/
> 
>     Irc : de l'aide à toute heure : http://spip.net/irc
> 
> 


_______________________________________________
liste spip
[email protected] - désabonnement : envoyer un mail à  [email protected]

Archives : https://www.mail-archive.com/[email protected]/maillist.html

Infos : https://listes.rezo.net/mailman/listinfo/spip

Documentation de SPIP : http://www.spip.net/

Irc : de l'aide à toute heure : http://spip.net/irc