hi everyone,
I want to read a uploaded pdf file and display its content in the webpage
with the other fields that data need to be inserted. Can anyone point me
how to do this.
db.define_table('Phrase',
Field('DocumentId', db.Document,label=T("Document Id")),
Field('PhraseContent', 'text',label=T("Phrase Content")),
Field('DocumentContent', 'text',default=db.Document.File
,label=T("Document Content")), /// this is where I need to read the PDF
file
Field('UserId',db.auth_user, default=auth.user_id,label=T("User Id")),
Field('Date','datetime', default=request.now, label=T("Date")),
format = '%(PhraseContent)s')
I have pasted my files here.
models/db.py - http://paste.org/43879 controllers/default.py-
http://paste.org/43880
Thanks
Kasun