Q: I want to add a feature to our server that automates adding some PDFs together and adding some personalization of the
PDF books. So I thought of using PDFNet on the server for this.
I wrote a prototype that runs fine on my Mac OSX using Python, but on the server which is a Ubuntu 32-bit version, I get this error:
/var/www/cgi-bin/Lib/_PDFNetPython2.so: undefined symbol: PyUnicodeUCS2_AsUTF8String
It seems that the library is built for UCS2 and the server python version
(2.7.2) is expecting 4 byte unicode (See
this: http://effbot.org/pyfaq/when-importing-module-x-why-do-i-get-undefined-symbol-pyunicodeucs2.htm)
any advice? or do you have a version that can run on UCS4 python?
A:
We have recently added support for UCS4 Python. You can download the onofficial build using the following links:
http://www.pdftron.com/id-flkj484s/PDFNetC.tar.gz
http://www.pdftron.com/id-flkj484s/PDFNetC64.tar.gz
Please see libinfo.txt for how to use _PDFNetPython2_ucs4.so.