You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into a problem with pdf generated with xhtml2pdf. The result pdf does not conform to PDF/A.
This creates a problem when using Acrobat Reader. The document has two digital signatures and Acrobat Reader shows me that one of the signatures is broken.
Details:
Validating file "LD-00010026__6985966014674491277-f.pdf" for conformance level pdf1.3
The value of the key file specification dictionary must be an indirect object.
The document does not conform to the requested standard.
The document doesn't conform to the PDF reference (missing required entries, wrong value types, etc.).
The document does not conform to the PDF 1.3 standard.
Minimal Example to Reproduce
Function to generate pdf from a django template.
The pdf is generated from a django view.
def render_pdf(content, context_dict={}):
template = Template(content)
html = template.render(Context(context_dict))
result = BytesIO()
pdf = pisa.CreatePDF(BytesIO(html.encode("utf-8")), result)
if not pdf.err:
return result
return None
Where does xhtml2pdf claim that it would generate PDF/A compliant documents? If ever, this is a feature request and not a bug, while I consider this something which might be something which should be done after generating the PDF with xhtml2pdf in a separate step/with a separate tool.
Describe the Bug
Hi,
I ran into a problem with pdf generated with xhtml2pdf. The result pdf does not conform to PDF/A.
This creates a problem when using Acrobat Reader. The document has two digital signatures and Acrobat Reader shows me that one of the signatures is broken.
I use https://www.pdf-online.com/osa/validate.aspx to validate pdf structure an all pdf generated with xhtml2pdf
have the same problem.
Details:
Validating file "LD-00010026__6985966014674491277-f.pdf" for conformance level pdf1.3
The value of the key file specification dictionary must be an indirect object.
The document does not conform to the requested standard.
The document doesn't conform to the PDF reference (missing required entries, wrong value types, etc.).
The document does not conform to the PDF 1.3 standard.
Minimal Example to Reproduce
Function to generate pdf from a django template.
The pdf is generated from a django view.
Example template
System Information
OS version: Ubuntu 20.04
Python version: 3.7
XHTML2PDF version: 0.2.11
The text was updated successfully, but these errors were encountered: