PHP Classes

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

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 184 All time: 8,671 This week: 67Up
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.

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: 19 packages by
Country: Latvia Latvia
Age: 55
All time rank: 19476 in Latvia Latvia
Week rank: 152 Up1 in Latvia Latvia Up
Innovation award
Innovation award
Nominee: 12x

Winner: 2x

Recommendations

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

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 (8)  
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 (8)  /  assets  
File Role Description
Files folder imagecss (1 file)
Files folder imagejs (2 files)

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

  Files folder image Files (8)  /  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 (8)  /  widgets  
File Role Description
  Plain text file PDFObject.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:184
This week:0
All time:8,671
This week:67Up