Beispiel #1
0
 def get_document(self):
     pdf_filepath = pkg_resources.resource_filename('pigi1300.tests', 'data/pdf-sample.pdf')
     document = ClassifiedDocument(pdf_filepath=pdf_filepath)
     document.emission_date = datetime.datetime.now(tz=utc)
     document.emitter_organization = 'ORG/ORG'
     document.emitter_record_number = '/USER/P.N.'
     document.bsd_record_number = '/BSD/1'
     document.classification = TSD
     document.title = 'Exemple de fichier'
     document.special_france = True
     document.info_page = True
     document.guard_page = True
     document.mark_blank_pages = True
     document.add_classification_stamp = True
     document.add_page_number = True
     document.add_qr_code = True
     document.add_bar_code = False
     document.add_first_qr_code = True
     document.add_first_bar_code = True
     document.add_copy_number = True
     return document