Scribd

Summary: Embed PDF files in a wiki page using Scribd
Version: 2010-10-27
Prerequisites:
Status:
Maintainer: overtones99
Users: +1 (View / Edit)
Categories: PDF Media Flash Images
Discussion: Scribd-Talk

Questions answered by this recipe

How can I embed PDF files in a wiki page? How can I embed files using Scribd in a wiki page?

Description

Scribd supports embedding PDF documents from Scribd.com on a wiki page. Your pdfs can be uploaded to the Scribd website, and then embedded on your page. For more info on Scribd's viewer, visit http://scribd.com.

Notes

To install, include Scribd.phpΔ in config.php:

include_once("$FarmD/cookbook/Scribd.php");

The most basic syntax is:

(:Scribd id=... key=...:)

Additional arguments are also available...

(:Scribd id=... key=... width=... height=... view=... page=...:)

Scribd args:

  • id - required - code located after "document_id="
  • key - required - code located after "key-"
  • width - default: 600
  • height - default: 100%
  • page - default: 1
  • view - default: scroll - scroll, book, slideshow, or tiled
  • custom_logo_image_url - add your own logo to the top - requires a full url

ROEPatterns

In addition, Replace-On-Edit Patterns ($ROEPatterns) have been created for this recipe, so that visitors can simply copy-and-paste the embed code directly from the Scribd website, click save or save-and-edit, and have the code automatically converted to the appropriate PmWiki markup. If this is undesired, an admin can disable this in config.php by setting $ScribdROEenabled to false.

Release notes

See also

  • GoogleViewer - Google's PDF viewer - pretty lo-res
  • Flash - embedding other Flash players from other sites onto webpage

Contributors

Comments/Feedback

See Scribd-Talk - your comments are welcome here!

User notes +1: If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.