Mobile app version of vmapp.org
Login or Join
YK1175434

: PDF file sizes when attached to a webpage article and hosted on own server When you host a PDF on your own website and server, and then link to that PDF in an article, does the size of

@YK1175434

Posted in: #Drupal #Files #FileSize #Links #Pdf

When you host a PDF on your own website and server, and then link to that PDF in an article, does the size of the PDF file matter? Or is the size only a factor when clicked, because of the time it takes a client to download it?

Secondly, what is an appropriate file size to request from a client for a business/technical PDF document, with images, from 10 - 50 pages, hosted in this context?

The background

Note: in the future, we'll have guidelines for clients, but this is the first time it's been an issue.

I've been asked to upload a 7MB PDF file (44 pages, lots of images & graphs) for a client (a very big multinational company) to go underneath a few paragraphs saying 'read the full whitepaper' or similar.

I've been told by our designer that they have created it on Photoshop and the text is not 'text' it's actually more like 44 photographs.

We can't ask the client to change it for various reasons, one of which is that we've already asked them to bend once on this and since we're not a big multinational company, I wouldn't want to be presumptuous.

We run Drupal and the default is 2MB uploads. We'd be hosting the files ourselves (though in the future I'm sure we'll improve our file structures, possibly over different servers). I'm hesitant to 'just increase' the file size upload limits, though it can be done. And I'll probably circumvent this and upload it on this occasion.

Are there pros/cons for large PDFs in this context? My assumption is that because it is just a link to a file there is not much HTTP request overhead unless the user clinks on the download link. So I assume that here, having a large file is not a problem.

I've done some reading and this is quite a good post on maximum PDF files for public websites, which advises that the more specialist the subject matter (and ours is specialist), the bigger the file size users will accept. It was written in 2011 though, and based on the graph on this answer the size of what we ask users to download could be twice as much in 2015.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @YK1175434

1 Comments

Sorted by latest first Latest Oldest Best

 

@Annie201

If its possible, try redoing your PDF files so they are smaller in size.

Smaller files can be downloaded faster than larger files and the server will then be ready sooner for more users.

In a server setup, there is a limit on the number of processes that can be handled by the server at any one time and in apache, this is defined by MaxClients value.

Each request to download a PDF file counts as a process and the process is in use until the PDF download is complete plus at least a few seconds to clear the connection entirely.

So if your server is set up to handle up to 50 processes, and 100 people want to download the 7 MB PDF file and it takes 1 minute to download 1 MB then the first 50 people can download the file right away but the remaining 50 people have to wait at least 7 minutes if a queue is setup (apache calls this the listen backlog) or failing that, those 50 people will be denied access temporarily. As processes are freed, more users can then be accepted. That's why your server can be slow.

So if you can't make the download size smaller, then consider looking at your server settings and increasing the number of clients it can handle. Also, consider adding more memory or upgrading the server itself.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme