ZlibDecompress | This class was written from original C source code

 by   eiannone PHP Version: Current License: No License

kandi X-RAY | ZlibDecompress Summary

kandi X-RAY | ZlibDecompress Summary

ZlibDecompress is a PHP library. ZlibDecompress has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

This class was written from original C++ source code by Mark Adler (It happens that for some pdf files it is not possibile to extract text stored in compressed zlib format, because gzuncompress() php function fails to decompress it. I found that the issue is due to the fact that in some cases, in the gzipped pdf stream, the zlib stream header (see RFC 1950) is missing or invalid, and this is the reason why gzuncompress() function cannot decompress data. Here’s my workaround to fix the problem: I wrote a new ZlibDecompress? class in PHP from some original C++ code by Mark Adler taken from the official zlib site, which uses the standard algorithm and always decompress the string correctly, ignoring the zlib stream header, as it contains only CRC data. Obviously this PHP class is much more slower than gzuncompress function, because it is not compiled, so I use it only when gzuncompress fails. For pdf files this happens only in a few cases, so this is a good compromise for me.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

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

            kandi-Quality Quality

              ZlibDecompress has no bugs reported.

            kandi-Security Security

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

            kandi-License License

              ZlibDecompress does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              ZlibDecompress releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ZlibDecompress
            Get all kandi verified functions for this library.

            ZlibDecompress Key Features

            No Key Features are available at this moment for ZlibDecompress.

            ZlibDecompress Examples and Code Snippets

            No Code Snippets are available at this moment for ZlibDecompress.

            Community Discussions

            No Community Discussions are available at this moment for ZlibDecompress.Refer to stack overflow page for discussions.

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

            Vulnerabilities

            No vulnerabilities reported

            Install ZlibDecompress

            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/eiannone/ZlibDecompress.git

          • CLI

            gh repo clone eiannone/ZlibDecompress

          • sshUrl

            git@github.com:eiannone/ZlibDecompress.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