phpdocx | Modifications to the PHPDOCX lib

 by   Qualys PHP Version: Current License: LGPL-3.0

kandi X-RAY | phpdocx Summary

kandi X-RAY | phpdocx Summary

phpdocx is a PHP library. phpdocx has no bugs, it has no vulnerabilities, it has a Weak Copyleft License and it has low support. You can download it from GitHub.

Modifications to the PHPDOCX lib
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              phpdocx has a low active ecosystem.
              It has 7 star(s) with 1 fork(s). There are 5 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              phpdocx has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of phpdocx is current.

            kandi-Quality Quality

              phpdocx has no bugs reported.

            kandi-Security Security

              phpdocx has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              phpdocx is licensed under the LGPL-3.0 License. This license is Weak Copyleft.
              Weak Copyleft licenses have some restrictions, but you can use them in commercial projects.

            kandi-Reuse Reuse

              phpdocx releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi has reviewed phpdocx and discovered the below as its top functions. This is intended to give you an instant insight into phpdocx implemented functionality, and help decide if they suit your requirements.
            • Process a pattern .
            • Recurse the scope map .
            • Open a tag
            • Process parameters .
            • Process tags .
            • Generate a report
            • Process additional cases .
            • Parse the words .
            • Process a long argument
            • Get the last non - whitespace token .
            Get all kandi verified functions for this library.

            phpdocx Key Features

            No Key Features are available at this moment for phpdocx.

            phpdocx Examples and Code Snippets

            No Code Snippets are available at this moment for phpdocx.

            Community Discussions

            QUESTION

            Issue converting to .pdf a merged .docx file that opens fine in Word
            Asked 2021-Apr-17 at 14:33

            So, I have the following scenario.

            I am working on a system for academical papers. I have several inputs that are for stuff like author name, coauthors, title, type of paper, introduction, objectives and so on. I store all that information in a database. The user has a Preview button which when clicked, generates a Word asynchronously and sends the file location back to the user and that file is afterwards shown to the user in an iframe using Google Doc Viewer.

            There's a specific use case where the user/author of the paper can attach a .docx file with a table, or a .jpeg file for a figure. That table/figure has to be included inside the final .docx file.

            For the .docx generation process I am using PHPWord.

            So up until this point everything works fine, but my issues start when I try to mix everything and put together the .docx file.

            Approach Number One

            My first approach on doing this was to do everything with PHPWord. I create the file, add the texts where required and in the case of the image just insert the image and after that the figure caption below the image.

            Things get tricky though, when I try doing the same thing with the .docx table file. My only option was to get the table XML using this. It did the trick, but the problem I ran into was that when I opened the resulting Word file, the table was there, but had lost all of its styling and had transparent borders. Because of those transparent borders, afterwards when converting it to PDF the borders were ignored and the table info is just scrambled text.

            Approach Number Two (current one)

            After fighting with Approach Number One and just complicating stuff more, I decided to do something different. Since I already generated one docx file with the main paper information and I needed to add another docx file, I decided to use the DocX Merge Library.

            So, what i basically did was I have three generated word files, one for the main paper information, one for the table and one for the table caption (that last one is mainly to not overcomplicated the order of information). Also, that data is not in the table .docx file.

            Then I run this:

            ...

            ANSWER

            Answered 2021-Apr-17 at 14:33

            After a lot of attempts to fix it, I wasn't able to achieve what I wanted with PHPWord and the merging library I mentioned.

            Since I needed to fix this I decided to invest in the paid library I mentioned in my question. It was an expensive purchase, but for those who are interested, it does exactly what was required and it does it perfectly.

            The two main functions I required were document merging and importing of content to a .docx file.

            So I had to purchase the Premium package. Once there, the library literally does everything for you.

            Example for docx files merge code:

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

            QUESTION

            Why won't Docker load Tidy?
            Asked 2019-Nov-18 at 23:24

            I'm trying to use phpdocx in order to create a docx file from HTML in a laravel api application.

            In order to use this conversion tool, it is necessary to have Tidy installed.

            I've included tidy in dockerfile like so

            ...

            ANSWER

            Answered 2019-Nov-18 at 23:24

            See an example Docker file:

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install phpdocx

            You can download it from GitHub.
            PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            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/Qualys/phpdocx.git

          • CLI

            gh repo clone Qualys/phpdocx

          • sshUrl

            git@github.com:Qualys/phpdocx.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