PHPackages                             garant/file-preview-generator-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. garant/file-preview-generator-bundle

ActiveLibrary[Image &amp; Media](/categories/media)

garant/file-preview-generator-bundle
====================================

This Symfony bundle provides classes to generate preview image for office files like .doc, .docx, .xls and others. It contains client and server that lets use it both locally and remotely

v1.0.0(9y ago)2390MITPHPCI failing

Since Jul 11Pushed 5y ago1 watchersCompare

[ Source](https://github.com/archer-developer/GarantFilePreviewGenerator)[ Packagist](https://packagist.org/packages/garant/file-preview-generator-bundle)[ Docs](https://github.com/archer-developer/GarantFilePreviewGenerator)[ RSS](/packages/garant-file-preview-generator-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (20)Used By (0)

File Preview Generator Bundle
=============================

[](#file-preview-generator-bundle)

This bundle provides classes to generate preview image for office files like .doc, .docx, .xls and others. It contains client and server that let use the bundle both locally and remotely.

System requirements (for Microsoft Windows)
-------------------------------------------

[](#system-requirements-for-microsoft-windows)

A) Microsoft Office must be installed. Also you need to configure COM-objects. From the Start menu, click Run and type Dcomcnfg.exe. In Component Services, click Console root, expand Component Services, expand Computers, then My Computer, then DCOM Configuration Find entity named Microsoft Word 97-2003 Document. Right click on it, then Properties. In the tab Identity choose This user and enter correct admin login and password. Save changes.

B) Install GhostScript

C) Install ImageMagic All \**.dll file in folder `modules/coders` inside your `ImageMagic directory` copy to `ImageMagic directory` and `C:\Windows\System32` and `C:\Windows\SysWOW64`All \**.dll file in folder `modules/filters` inside your `ImageMagic directory` copy to `ImageMagic directory` `C:\Windows\System32` and `C:\Windows\SysWOW64`

D) Find and download archive php\_imagick-3.4.1-7.0-ts-vc14-x64

Copy all CORE.dll's from it to `C:\Windows\System32` and `C:\Windows\SysWOW64`

Copy php\_imagick.dll to `ext` folder in your `php directory`

E) Add MAGICK\_HOME to your environment PATH

F) Edit php.ini file in your `php` directory

Uncomment or add next lines in Windows extensions section:

```
extension=php_curl.dll
extension=php_fileinfo.dll
extension=php_gd2.dll
extension=php_mbstring.dll
extension=php_exif.dll
extension=php_openssl.dll
extension=php_com_dotnet.dll
extension=php_imagick.dll

;...

memory_limit = 1024M

```

G) Reboot (here it's really important!)

Installation
------------

[](#installation)

### With composer

[](#with-composer)

This bundle can be installed using [composer](https://getcomposer.org/):

```
composer require garant/file-preview-generator-bundle

```

### Register the bundle

[](#register-the-bundle)

```
