I currently have a project in which you want to integrate sdk with django.
The compilation of the files and the test of their execution was done based on the link
https://www.pdftron.com/documentation/python/get-started/python3/linux/
And its execution is satisfactory.
You want to integrate this library to the project in the django framework
`
import site
site.addsitedir("…/pdf_tron/PDFNetC/Lib")
import sys
from pdf_tron.PDFNetPython import *
def index(request):
PDFNet.Initialize()
doc = PDFDoc()
page = doc.PageCreate() # Start a new page
doc.PagePushBack(page) # Add the page to the document
doc.Save(“output.pdf”, SDFDoc.e_linearized); # Save the document as a linearized PDF
print(“Hello World!”)
return HttpResponse(“PDF TRON Hello World!”)
`
Which generates the following error
`
Django Version: 3.0.3
Exception Type: NameError
Exception Value:
name ‘PDFNet’ is not defined
`
I would like to know if this type of integration has been carried out and the information is missing.