I'm trying to setup PDFNet to work with my PHP project. I've followed the steps in the Linux example at
https://github.com/PDFTron/PDFNetWrappers and everything seemed to work correctly.
vagrant@nxtboard:~/wrappers_build/PDFNetWrappers/Build$ sudo make install
[100%] Built target PDFNetPHP
Install the project...
-- Install configuration: ""
-- Installing: /home/vagrant/wrappers_build/PDFNetWrappers/PDFNetC/Lib/PDFNetPHP.php
-- Installing: /home/vagrant/wrappers_build/PDFNetWrappers/PDFNetC/Lib/PDFNetPHP_core.php
-- Installing: /home/vagrant/wrappers_build/PDFNetWrappers/PDFNetC/Lib/PDFNetPHP.so
-- Set runtime path of "/home/vagrant/wrappers_build/PDFNetWrappers/PDFNetC/Lib/PDFNetPHP.so" to ""
-- Installing: /usr/lib/php/20170718/PDFNetPHP.so
When I run php -i, I see that it's recognized the ini file I setup to load PDFNetPHP.so.
#####
Additional Modules
Module Name
PDFNetPHP
#####
/etc/php/7.2/cli/conf.d/20-pdfnet.ini,
vagrant@nxtboard:~/wrappers_build/PDFNetWrappers/Samples$ more /etc/php/7.2/cli/conf.d/20-pdfnet.ini
extension=PDFNetPHP.so
However, when I go to run the samples, I get the following:
vagrant@nxtboard:~/wrappers_build/PDFNetWrappers/Samples$ ./runall_php.sh
AddImageTest running
PDFNet is running in demo mode.
Permission: write
Done. Result saved in addimage.pdf...
Segmentation fault (core dumped)
Any thoughts?