-4

I trying to use Pdftron api in my python project but I can't add library in the project. I read all document in pdftron site for python in the end I can't. please help.

Amir Zare
  • 11
  • 4
  • Look here https://www.pdftron.com/documentation/linux/get-started/python3/ – balderman Oct 27 '19 at 14:50
  • A lot more information is required to answer your question, including; full error messages, python version you are targeting, logs from cmake/swig/pyhton, os details. – Ryan Oct 27 '19 at 16:46

1 Answers1

1

Currently you have to build your own Python3 bindings. Following this guide, it typically takes ~15 minutes to generate your bindings. https://github.com/PDFTron/PDFNetWrappers#linux

Once created, you can look at our any of our Python samples to see how to load PDFNet. https://github.com/PDFTron/PDFNetWrappers/tree/master/Samples/AddImageTest/PYTHON https://github.com/PDFTron/PDFNetWrappers/blob/master/Samples/AddImageTest/PYTHON/RunTest.sh https://github.com/PDFTron/PDFNetWrappers/blob/master/Samples/AddImageTest/PYTHON/AddImageTest.py

Ryan
  • 2,473
  • 1
  • 11
  • 14
  • any ideas on how to make it using python3 in the Build step? It keeps using python2 in the Build step so I cannot run my python script – Forrest Nov 15 '19 at 05:09
  • @Forrest I suspect your "python-dev" is 2.x, you would need to install 3.x version of python-dev. Also, make sure your runtime is 3.x. – Ryan Nov 15 '19 at 18:39