WeasyPrint icon indicating copy to clipboard operation
WeasyPrint copied to clipboard

Follow HTML specification to set attachments filenames

Open SummersRA opened this issue 2 years ago • 1 comments

When using the download attribute with an <a> tag the value is not used in the 'name' field for pdf attachments, the linked filename is used instead. If using a data url no name is passed and attachments cannot be opened.

SummersRA avatar Apr 17 '23 14:04 SummersRA

Hi!

Thanks for the bug report. We should follow the HTML specification to set the filename.

liZe avatar Apr 18 '23 12:04 liZe