Skip to content

Error is on HTML.render() #2

Description

@epdxb

Hi,
I am facing error while tying to sign document usign global sign DSS. I am getting below error

Error

File "test.py", line 4, in
document = HTML.render()
TypeError: render() missing 1 required positional argument: 'self'

Code

from weasyprint import HTML
from weasysign import factory

document = HTML.render()

subject_dn = {'subject_dn': {
"common_name": "Dunder Mifflin Paper Company, Inc.",
"organizational_unit": [
"Angela Martin",
"Accounting"
]
}}
signer = factory('globalsign', cfg_file='globalsign_config.ini', subject_dn=subject_dn)
document.write_pdf(target='/tmp/my-digitally-signed-doc.pdf', finisher=signer)

Environment

Ubuntu 18.04.6 LTS
Python 3.8.12
weasyprint 52

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions