If the sample code is working on your end, it's likely that your project is unable to find the libPDFNetC.so
shared library. The RunTest.sh
in the AddImageTest
sample sets the following environment variable:
export LD_LIBRARY_PATH=../../../PDFNetC/Lib
You might need to add the .so explicitly, or at least put the .so in a folder that PHP will load .so files from. See your PHP documentation. Please also see the following post:
https://stackoverflow.com/a/35442777/3761687
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…