INNER CODE UNIT · Python

report

StaPH-B/docker-builds · build-files/cbird-util/2.0/plain_report.py:50

def report(date, labid, taxon, percent, amr_df, point_df, disclaimer, logo1, logo2, line1, line2, line3, line4, line5, line6):
    # Create a new Document
    doc = Document()

    # changing the page margins
    sections = doc.sections
    for section in sections:
        section.top_margin = Inches(0.5)
        section.bottom_margin = Inches(0.5)
        section.left_margin = Inches(0.5)
        section.right_margin = Inches(0.5)

    # Create a header
    section = doc.sections[0]
    header = section.header

    # Add a table for alignment
    table = header.add_table(rows=1, cols=3, width=Inches(7.5))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…