Groups
Conversations
All groups and messages
Send feedback to Google
Help
Training
Sign in
Groups
PDFTron SDK
Conversations
Labels
About
Groups keyboard shortcuts have been updated
Dismiss
See shortcuts
PHP Call to undefined function PDFNet_Initialize
39 views
Skip to first unread message
Ryan
unread,
Jan 18, 2021, 2:39:17 PM
1/18/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PDFTron SDK
Question:
I have built the PHP language bindings with no errors, but when I run I get the following error.
Call to undefined function PDFNet_Initialize() ... in ../PDFNetWrappers/PDFNetC/Lib/PDFNetPHP_core.php:18707
Ubuntu 18.04
Answer:
It appears your PHP did not load the
libPDFNetC.so
shared library.
The fix is to `enable_dl = On` in your php.ini files, for example the two below.
/etc/php/7.2/cli/php.ini
/etc/php/7.2/apache/php.ini
You might also 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.
https://stackoverflow.com/a/35442777/3761687
Reply all
Reply to author
Forward
0 new messages