Skip to content

Commit c63d410

Browse files
committed
fix: [pdf] fix downloaded pdfa name
1 parent d8ffd55 commit c63d410

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

var/www/blueprints/objects_pdf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def pdf_pdfa(pdf_id):
4747
abort(404)
4848
pdf_id = pdf_id.replace('/', '')
4949
pdf = PDFs.PDF(pdf_id)
50-
return send_from_directory(PDFs.PDF_FOLDER, pdf.get_rel_path(), as_attachment=False, mimetype='pdf')
50+
return send_from_directory(PDFs.PDF_FOLDER, pdf.get_rel_path(), as_attachment=False, mimetype='pdf', download_name=f'{pdf_id}.pdf')
5151

5252
@objects_pdf.route('/pdf/translate', methods=['POST'])
5353
@login_required

0 commit comments

Comments
 (0)