PHPPresentation | pure PHP library for reading and writing presentations | Document Editor library

 by   PHPOffice PHP Version: 1.0.0 License: Non-SPDX

kandi X-RAY | PHPPresentation Summary

kandi X-RAY | PHPPresentation Summary

PHPPresentation is a PHP library typically used in Editor, Document Editor applications. PHPPresentation has no bugs, it has no vulnerabilities and it has medium support. However PHPPresentation has a Non-SPDX License. You can download it from GitHub.

PHPPresentation is a library written in pure PHP that provides a set of classes to write to different presentation file formats, i.e. Microsoft Office Open XML (OOXML or OpenXML) or OASIS Open Document Format for Office Applications (OpenDocument or ODF). PHPPresentation is an open source project licensed under the terms of LGPL version 3. PHPPresentation is aimed to be a high quality software product by incorporating continuous integration and unit testing. You can learn more about PHPPresentation by reading the Developers' Documentation and the API Documentation.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              PHPPresentation has a medium active ecosystem.
              It has 1231 star(s) with 492 fork(s). There are 82 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 248 open issues and 240 have been closed. On average issues are closed in 547 days. There are 28 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of PHPPresentation is 1.0.0

            kandi-Quality Quality

              PHPPresentation has 0 bugs and 0 code smells.

            kandi-Security Security

              PHPPresentation has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              PHPPresentation code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              PHPPresentation has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              PHPPresentation releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              PHPPresentation saves you 24321 person hours of effort in developing the same functionality from scratch.
              It has 47473 lines of code, 1715 functions and 269 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed PHPPresentation and discovered the below as its top functions. This is intended to give you an instant insight into PHPPresentation implemented functionality, and help decide if they suit your requirements.
            • Write font theme
            • Write slide relationships
            • Write document content
            • Write a note
            • Read document container .
            • Loads drawing - style - property
            • Write a chart type
            • Load a paragraph
            • Write a slide master
            • Write the chart style
            Get all kandi verified functions for this library.

            PHPPresentation Key Features

            No Key Features are available at this moment for PHPPresentation.

            PHPPresentation Examples and Code Snippets

            No Code Snippets are available at this moment for PHPPresentation.

            Community Discussions

            QUESTION

            Unable to download file (PPTX) in AngularJS
            Asked 2019-Dec-25 at 21:00

            Scenario

            I want to make an existing PHP script dynamically generating a PPTX (Microsoft PowerPoint File) (Risk Mitigation Event Summary) accessible via an API call to specifically cause AngularJS front end to download the file.

            So far my script contains a function called generatePresentation (actual name below). It works opening the script in a browser and produces dynamically generated file using PhpPresentation generation library.

            The question is as follows.

            How do I make the PowerPoint successfully download without any problems?

            Any Help Would Be Appreciated.

            Existing PowerPoint Download Function ...

            ANSWER

            Answered 2019-Dec-25 at 21:00

            Use of the following three functions (first two are for encoding decoding a string) helped achieve a successful downloadable file.

            Link to Solution which requires use of the first two functions.

            https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding#Solution_5_%E2%80%93_rewrite_the_DOMs_atob()_and_btoa()_using_JavaScript's_TypedArrays_and_UTF-8

            PHP

            Source https://stackoverflow.com/questions/59474640

            QUESTION

            Is there a way to download pptx file with PHPPresentation?
            Asked 2019-Aug-22 at 12:33

            I am using PHPPresentation for the first time and everything works fine, but I don't want to save file to some destination, I want to download that file through web browser. How to do that?

            Please help.

            This is code to save file on some destination

            ...

            ANSWER

            Answered 2019-Aug-20 at 13:12

            PHPPresentation should work similiar to PHPExcel.

            According to this question you can use:

            Source https://stackoverflow.com/questions/57573948

            QUESTION

            Making specific words or bunch of words bold in phppresentation
            Asked 2018-Nov-06 at 08:33

            How to make particular words or lines bold in paragraph using phppresentation.

            ...

            ANSWER

            Answered 2018-Nov-06 at 08:33

            You must divide your text in multiple parts.

            You could use this code :

            Source https://stackoverflow.com/questions/53102946

            QUESTION

            How to change the background color for a PHPPresentation Slide?
            Asked 2018-Oct-25 at 17:07

            I've recently started to work with the PHPPresentation library to create Powerpoint presentations. I need to change the background color of certain slides, I looked over the code samples that they offer and inside the developer documentation, they both lack this vital information.

            https://github.com/PHPOffice/PHPPresentation/tree/develop/samples http://phppresentation.readthedocs.io/en/latest/slides.html

            ...

            ANSWER

            Answered 2018-Oct-25 at 17:07

            I downloaded the repository from github and searched for 'background'. There were quite a few results, both in samples and the source code.

            One example is Sample 15. Below is an excerpt from lines 14-23:

            Source https://stackoverflow.com/questions/44566512

            QUESTION

            PhpPresentation imagecreatefromstring(): Data is not in a recognized format - PHP7.2
            Asked 2018-Sep-25 at 22:12

            I am trying to use PhpPresentation to read a sample.pptx file using the simple instructions for readers in their docs and I am getting:

            imagecreatefromstring(): Data is not in a recognized format

            I have checked that I have PHP7.2-gd installed and all of the other dependencies.

            My Code:

            ...

            ANSWER

            Answered 2018-Sep-25 at 06:22

            After peeking into the PHP source code, to have some insights about the "imagecreatefromstring" function, I've discovered that it handles only the following image formats:

            • JPEG
            • PNG
            • GIF
            • WBM
            • GD2
            • BMP
            • WEBP

            PHP recognizes the format of the image contained in the argument of the "imagecreatefromstring" function by checking the image signature, as explained here.
            When an unknown signature is detected, the warning "Data is not in a recognized format" is raised.
            Therefore, the only plausible explanation for the error that you are experiencing is that your PPTX file contains an image that is not in one of the above formats.
            You can view the format of the images inside your PPTX file by changing its extension from ".pptx" to ".zip" and then opening it.
            You should see something like this:

            Source https://stackoverflow.com/questions/51634838

            QUESTION

            PHP use keyword is causing 500 server error
            Asked 2018-Sep-18 at 19:23

            I'm trying to implement PhpPresentation to convert some files, so I have the following code:

            ...

            ANSWER

            Answered 2017-May-02 at 10:20

            Issue fixed, thanks to this https://stackoverflow.com/a/33355711/7926703

            I was using 'use' inside a function which is wrong and error-causing.

            Source https://stackoverflow.com/questions/43734805

            QUESTION

            PhpStorm Warnings on incorrect objects (Laravel)
            Asked 2018-Mar-22 at 20:37

            I have been cleaning up some PhpStorm warnings using PHPDoc and in some cases there are objects referenced incorrectly. Here's an example:

            ...

            ANSWER

            Answered 2018-Mar-22 at 20:37

            At least regarding Laravel Projects, you can clear this up in PhpStorm by adding

            /** @var RichText $Title */

            before the variable/method.

            Source https://stackoverflow.com/questions/49367639

            QUESTION

            PHPPresentation - How to customize filename of served (downloadable in browser) file to not be the filename of the invoking php script?
            Asked 2017-Oct-09 at 20:03

            How do I modify the following script (Summary.php) so that the served PPTX file name is not "Summary.php" and my served file is not named Summary.php.pptx?

            The technique I am using is to render contents of the PowerPoint file into into the browser but I intentionally want to change the filename to at least not contain .php, but at best be a custom name like Presentation.pptx as specified in my php header below.

            Summary.php

            ...

            ANSWER

            Answered 2017-Oct-08 at 10:03

            You should use Content-Disposition response header. E.g.

            Source https://stackoverflow.com/questions/46629845

            QUESTION

            How to merge cells in a table in PHPPresentation
            Asked 2017-Jul-18 at 14:01

            I'm trying to merge cells in a table using PHPPresentation, but i don't find any method to do it, how I can do it? Thanks in advance.

            ...

            ANSWER

            Answered 2017-Jul-18 at 14:01

            This question is relatively old but the answer can help others. To merge cells using PHPPresentation, we can rely on the following methods:

            setRowSpan() and setColSpan() of the Cell class.

            Example:

            Source https://stackoverflow.com/questions/42791972

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install PHPPresentation

            It is recommended that you install the PHPPresentation library through composer. To do so, add the following lines to your composer.json. Alternatively, you can download the latest release from the releases page. In this case, you will have to register the autoloader. (Register autoloading is required only if you do not use composer in your project.). You will also need to download the latest PHPOffice/Common release from its releases page. And you will also have to register its autoloader, too.
            The following is a basic usage example of the PHPPresentation library. More examples are provided in the samples folder. You can also read the Developers' Documentation and the API Documentation for more detail.

            Support

            We welcome everyone to contribute to PHPPresentation. Below are some of the things that you can do to contribute:.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/PHPOffice/PHPPresentation.git

          • CLI

            gh repo clone PHPOffice/PHPPresentation

          • sshUrl

            git@github.com:PHPOffice/PHPPresentation.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link