We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
Your syntax is incorrect. You are trying to call the render method on the class, not an instantiated object. document = HTML().render()
document = HTML().render()
Sorry, something went wrong.
Hi Eddie Zab,
Thanks for the response, is there any method in the library to sign an already existing PDF document, instead of rendering HTML file
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: