https://github.com/cyber-duck/pdfnet-php
PDFNetPHP Library generated by SWIG for PHP 5.6.30 for PDFTron
https://github.com/cyber-duck/pdfnet-php
library pdfnet pdftron php
Last synced: 10 months ago
JSON representation
PDFNetPHP Library generated by SWIG for PHP 5.6.30 for PDFTron
- Host: GitHub
- URL: https://github.com/cyber-duck/pdfnet-php
- Owner: Cyber-Duck
- License: mit
- Created: 2017-02-24T16:15:27.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-09-08T11:25:54.000Z (almost 3 years ago)
- Last Synced: 2024-09-13T02:38:42.750Z (almost 2 years ago)
- Topics: library, pdfnet, pdftron, php
- Language: PHP
- Homepage: https://github.com/PDFTron/PDFNetWrappers
- Size: 1.31 MB
- Stars: 2
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PDFTron - PDFNetPHP Library generated by SWIG for PHP 5.6.30
This file was automatically generated by [SWIG](http://www.swig.org) following the
guidelines from [PDFTron/PDFNetWrappers](https://github.com/PDFTron/PDFNetWrappers).
PDFTron is a very powerful web-based PDF viewer.
PDFTron needs PDF files to be transformed into XOD files before being used for
rendering.
This library can be used on the server side in order to transform PDF into XOD.
It has been generated for PHP 5.6.30 by using [PDFTron/PDFNetWrappers](https://github.com/PDFTron/PDFNetWrappers)
and will require `PDFNetPHP.so` PHP extension to be installed. Both the extension
`PDFNetPHP.so` and the library `PDFNetPHP.php` files can be generated or
re-generated following [PDFTron/PDFNetWrappers](https://github.com/PDFTron/PDFNetWrappers)
recommendations or the manual installation below.
## Manual installation
* `apt-get update && apt-get install -y swig cmake wget git`
* `mkdir PDFNetPHPSetup`
* `cd PDFNetPHPSetup && wget https://github.com/PDFTron/PDFNetWrappers/archive/master.tar.gz`
* `tar xzvf master.tar.gz`
* `cd PDFNetWrappers-master/PDFNetC`
* `wget http://www.pdftron.com/downloads/PDFNetC64.tar.gz && tar xzvf PDFNetC64.tar.gz`
* `mv PDFNetC64/Headers/ . && mv PDFNetC64/Lib/ .`
* `cd .. && mkdir Build && cd Build`
* `cmake -D BUILD_PDFNetPHP=ON .. && make && make install`
By then you should have both `PDFNetPHP.php` and `PDFNetPHP.so` generated under `PDFNetPHPSetup/PDFNetWrappers-master/PDFNetC/Lib` and the `PDFNetPHP.so` extension
should have been installed on your current PHP installation under a folder like
`[...]/5.6.30/lib/php/extensions/no-debug-non-zts-20131226`.