YII D3 PHP PDF Object: Embed PDF documents in HTML pages

Recommend this page to a friend!
  Info   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 161 This week: 1All time: 8,809 This week: 182Up
Version License PHP version Categories
yii2-d3pdfobject 1.0.0Freeware5HTML, PHP 5, Files and Folders, Libra...
Description Author

This package can embed PDF documents in HTML pages.

It extends the YII widget class to configure the generation of HTML and JavaScript to render a PDF document in a Web page.

The package used the PDF Object JavaScript library to render PDF documents on the browser site.

Recommendations

View PDF document on web page
I need to open and view PDF documents in a DIV of a php page

Innovation Award
PHP Programming Innovation award nominee
June 2019
Number 10
PDF files are frequently used by many applications to display documents that can be used for printing in paper.

If you just want to display those documents in a Web page before you decide if you want to print them, it is useful to make them be rendered in a way that can be viewed clearly by the users.

This package can generate the necessary HTML and JavaScript to display PDF documents embedded in a Web page using widgets provided by the YII framework.

Manuel Lemos
Picture of Uldis Nelsons
Name: Uldis Nelsons <contact>
Classes: 12 packages by
Country: Latvia Latvia
Innovation award
Innovation award
Nominee: 7x

Winner: 2x

Details

PDFObject

Wrapper for the PDFObject - A lightweight JavaScript utility for dynamically embedding PDFs in HTML documents. http://pdfobject.com/

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist d3yii2/pdfobject "*"

or add

"d3yii2/pdfobject": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= \d3yii2\pdfobject\PDFObject::widget(); ?>
  Files folder image Files  
File Role Description
Files folder imageassets (2 directories)
Files folder imagewidgets (1 file)
Plain text file Bootstrap.php Class Class source
Accessible without login Plain text file composer.json Data Auxiliary data
Plain text file PDFObjectAsset.php Class Class source
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  assets  
File Role Description
Files folder imagecss (1 file)
Files folder imagejs (2 files)

  Files folder image Files  /  assets  /  css  
File Role Description
  Accessible without login Plain text file pdfobject-custom.css Data Auxiliary data

  Files folder image Files  /  assets  /  js  
File Role Description
  Accessible without login Plain text file pdfobject-custom.js Data Auxiliary data
  Accessible without login Plain text file pdfobject.min.js Data Auxiliary data

  Files folder image Files  /  widgets  
File Role Description
  Plain text file PDFObject.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:161
This week:1
All time:8,809
This week:182Up
For more information send a message to info at phpclasses dot org.