Replaced simplejson with json
This commit is contained in:
parent
c8fc568893
commit
eb8064b16c
1 changed files with 2 additions and 3 deletions
|
@ -2,15 +2,14 @@ import os
|
|||
|
||||
from django.views.generic import View
|
||||
from django.http import HttpResponse
|
||||
from django.utils import simplejson
|
||||
import poppler
|
||||
|
||||
import json
|
||||
|
||||
class PDFFormFillerEditor(View):
|
||||
def get(self, request, pdf=""):
|
||||
|
||||
doc = poppler.document_new_from_file('file:///home/mark/Bedraga.pdf', password=None)
|
||||
json = simplejson.dumps(list(self.get_fields(doc, 0)), indent=4)
|
||||
json = json.dumps(list(self.get_fields(doc, 0)), indent=4)
|
||||
|
||||
return HttpResponse("<pre>" + json)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue