

Project: automate-the-boring-stuff-projects Author: kudeh File: pdfParanoia.py License: MIT License. Project: insightconnect-plugins Author: rapid7 File: action.py License: MIT License.

def pdf_date(path): """ Extract a date from PDF file metadata.ģ. Project: open-syllabus-project Author: davidmcclure File: utils.py License: Apache License 2.0. def pdf_meta(tmp_file_path, original_file_name, original_file_extension): doc_info = None if use_pdf_meta: doc_info = PdfFileReader(open(tmp_file_path, 'rb')).getDocumentInfo() if doc_info: author = doc_thor if doc_thor else u'Unknown' title = doc_info.title if doc_info.title else original_file_name subject = doc_info.subject else: author = u'Unknown' title = original_file_name subject = "" return BookMeta( file_path=tmp_file_path, extension=original_file_extension, title=title, author=author, cover=pdf_preview(tmp_file_path, original_file_name), description=subject, tags="", series="", series_id="", languages="")Ģ. Project: calibre-web Author: janeczku File: uploader.py License: GNU General Public License v3.0.
