I'm wondering is it possible to add the functionality to show the file size next to the link for PDF documents? That would be really helpful to me.

Comments

codemaster729 created an issue. See original summary.

codemaster729’s picture

Title: Show filesize next to pdf link » Show file size next to PDF document
jcnventura’s picture

Status: Active » Closed (won't fix)

To do that in all cases, you'd need to generate the PDF document just to get that filesize. As generating PDFs is so expensive in terms of computer resources, this is not something that the module will do out-of-the-box.

So, simple answer to your question, is that yes, it's possible. But it's not supported by the module now or in the future. You'd have to get this functionality via custom code.

ramsukhsahu’s picture

To show file size next to PDF, We can use module "Field Formatter File Size" https://www.drupal.org/project/field_formatter_file_size.