We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69a133c commit dc9396aCopy full SHA for dc9396a
drafthorse/pdf.py
@@ -34,6 +34,7 @@
34
DecodedStreamObject,
35
DictionaryObject,
36
NameObject,
37
+ NumberObject,
38
create_string_object,
39
)
40
@@ -196,7 +197,7 @@ def _update_metadata_add_attachment(
196
197
# NameObject('/CheckSum'): md5sum_obj,
198
NameObject("/ModDate"): create_string_object(pdf_date),
199
NameObject("/CreationDate"): create_string_object(pdf_date),
- NameObject("/Size"): create_string_object(str(len(facturx_xml_str))),
200
+ NameObject("/Size"): NumberObject(len(facturx_xml_str)),
201
}
202
203
file_entry = DecodedStreamObject()
0 commit comments