DELTAWEB
All posts
Performance

Serving Large PDF Catalogs Fast: A Practical Exporter Guide

Make large PDF catalogs open fast: slim and linearize the file, split it by family and language, serve it with range requests, CDN caching and HTML pages.

Serving Large PDF Catalogs Fast: A Practical Exporter Guide
12 minReading time
Arif KuruAuthor

How long does a purchasing manager abroad wait to see the first page after clicking the link to your catalog? Most exporters do not know, because they open the catalog in the office, on a fast connection and quite possibly from the browser cache. The same file opened on another continent, over hotel Wi-Fi or mobile data, can leave the screen blank long enough for the buyer to close the tab. Serving large PDF catalogs fast is part of the site's wider technical infrastructure: server location, caching and file size have to be considered together. We covered that whole framework in our guide to export website technical infrastructure for global reach; this article focuses on PDF files alone.

The sections below explain how to make the PDF itself lighter, how the server should deliver it, how to set up CDN caching and, finally, how to rethink the catalog's place on your site. The aim is not to remove the catalog but to turn it into a document that opens in a reasonable time at the moment the buyer actually needs it.

Why Large Catalogs Open Slowly

A PDF catalog rarely opens slowly for a single reason. Usually several factors stack up. The first is file size: a catalog prepared for the printer contains high-resolution photos, CMYK colour profiles, embedded fonts and bleed areas. That file is right for print and far heavier than it needs to be for reading on a screen.

The second factor is the internal structure of the file. In a standard PDF, the cross-reference table a viewer needs to locate pages can sit at the end of the file. Without reading it, the viewer may not be able to render pages properly, so it has to download most or all of the file before it can show the first page. The buyer waits for a file of several hundred pages just to see the cover.

The third factor is delivery. If the server sends the file without cache headers and without support for partial requests, every visit starts from zero. If the file comes from a single data centre far from the buyer, the latency repeats on every request. When you measure server response time by country, include your PDF files in that measurement as well.

Making the PDF Lighter

Starting with the file itself is the most efficient route, because a smaller file downloads faster whatever your server and CDN settings are. A good habit is to export two separate outputs from the catalog design file: one for the printer and one for the web.

Image Compression

Photos usually account for most of a catalog's size. In the web output, downsampling images to a resolution suited to screen use and compressing them at a sensible JPEG quality gives a substantial reduction without hurting legibility. The high resolution needed for print is rarely noticeable on screen, even when the reader zooms in. Technical drawings and dimension diagrams should stay vector wherever possible; vector drawings take little space and remain sharp when enlarged.

Compression does not have to be uniform. A photo that shows the surface texture of a product needs more quality than a decorative background image. Define your export settings once and save them in the catalog template so that every new edition keeps the same balance. Tools such as Ghostscript offer ready-made web presets, and Acrobat has an optimise function; check the result by zooming into a few pages before you publish.

Fonts and Surplus Data

Embedding only the characters actually used, known as font subsetting, makes the file smaller. In multilingual catalogs this step makes an even bigger difference, since fonts covering Cyrillic, Arabic or Chinese character sets add noticeable weight when embedded in full. Hidden layers from the design application, unused colour profiles, thumbnail previews and editing data can also be stripped from the web output. None of this changes the page the buyer sees.

Linearization and Fast Web View

One of the lesser-known but most effective speed settings for PDF files is linearization, which Acrobat calls Fast Web View. In a linearized PDF, the information needed to display the first page is placed at the start of the file and the remaining pages are arranged in order. The viewer can therefore begin drawing the first page before the whole file has arrived.

Linearization alone is not enough; the server and the viewer have to cooperate. Built-in browser PDF viewers can request only the parts of the file they need when the server supports partial requests. This behaviour varies by browser, viewer and version, so check the browser's official documentation for the current state. Still, a linearized file is more likely to appear sooner than a non-linearized one, and the setting costs nothing.

You can switch linearization on in Acrobat's save options or apply it in bulk with command-line tools such as qpdf, which can also check whether a file is linearized. One detail catches many teams: if you save the file again with another tool after linearizing it, for example to add a watermark, the setting can be lost. Always make linearization the last step in the processing chain.

Byte-Range Requests and Server Settings

Byte-range requests let a client ask for a specific range of bytes rather than the whole file. A server that supports them sends Accept-Ranges: bytes in its response headers and answers range requests with a 206 Partial Content status. When a linearized PDF meets this support, the viewer asks first for the opening page and then for the pages the buyer scrolls to.

Most modern web servers and object storage services support range requests for static files by default. Problems tend to appear in the layers in between: a download script that streams the file through application code, a middleware layer that handles authentication or a misconfigured proxy can strip that support. Serving your PDFs as static files, directly from storage or from a CDN, is therefore the safest option.

An employee in a suit collecting a printed document from an office printer
Photo: Mikhail Nilov / Pexels

CDN Caching and Versioning

If your buyers are on different continents, a catalog served from a single server means the same long journey on every request. A CDN shortens it by keeping copies of the file at points close to the buyer. PDFs change infrequently, which makes them very well suited to CDN caching.

Cache Headers

For caching to work, the file must be served with suitable Cache-Control headers. The most robust method is to include version information in the file name and serve those files with a long cache lifetime. Each new edition of the catalog is published under a new file name, the link on the site points to the new file, and even if the old file stays in a cache nobody is sent to it. You serve the current version without having to purge anything.

Sometimes the file name has to stay fixed, for example a permanent link you have given to distributors for their own sites. In that case choose a shorter cache lifetime and purge the CDN cache for that address when a new version goes live. Whichever method you choose, deciding in advance how versions are tracked makes the work easier; we described that routine in our article on document version control for datasheets.

Large File Limits

Some CDN services apply plan-based limits on the size of files they will cache, or handle very large files through a different mechanism. A catalog above the limit may not be cached at all, sending every request back to the origin server. Check your provider's official documentation for the current limits. The limit is also a good argument for splitting the file.

Splitting the Catalog

A single catalog of several hundred pages is a file in which most buyers look at only a small section. A valve buyer does not want the pump pages, and an engineer who reads German does not want the English section. Splitting the catalog by product family and by language reduces file size and takes the buyer straight to the content they came for.

The first rule when splitting is that each part must make sense on its own. Every product family catalog should carry a short company introduction, contact details and a certificate summary, so that a buyer who downloads only that file still knows who you are. The second rule is not to abandon the full catalog. Some buyers, distributors in particular, want to see your whole range in one file. Offering the full catalog as a separate option while placing the split files next to the relevant product pages is a balanced solution.

Splitting by language should be planned together with your translation workflow. A separate file per language works best when each language version is served on its own page, and an update in one language no longer has to wait for the others. We covered text extraction, translation memory and re-typesetting for multilingual PDFs in our translation workflow for PDF catalogs and datasheets.

Close-up of sheets of paper in different colours stacked neatly on top of each other
Photo: Antoni Shkraba / Pexels

Download or View in the Browser

With the Content-Disposition header, the server can indicate whether the file should open in the browser or be downloaded. The value "inline" suggests displaying it in the browser, while "attachment" suggests downloading it. The final decision rests with the browser and the user's settings, but the header shapes the experience to a large extent.

Viewing in the browser, combined with linearization and range requests, gives the fastest first impression: the buyer sees the first page and can save the file later. A download transfers the whole file to the device; that is useful when the buyer needs to review it offline or forward it to a colleague, but the first page only opens once the download has finished. A practical approach is to open in the browser by default and offer a clear download option next to it.

Whichever you choose, stating the file type, language and size in the link text tells the buyer what to expect. A label such as "Pump catalog, English, PDF, 6 MB" helps a buyer on mobile data decide. The file name should be meaningful too: a name that includes the product family, language and year is far easier to find later in a downloads folder than "catalog-final-v3.pdf".

HTML Product Pages Come First

However much you speed up a PDF, it will not be as fast or as flexible as an HTML page. An HTML page adapts to the buyer's screen, appears in search results product by product, can be searched within and links to the quote form in one click. A PDF is a fixed page layout; it needs zooming on a phone, and the file has to arrive before any of its information can be read.

A healthy structure therefore keeps product information primarily on HTML pages, with the PDF as a complement to them. The buyer sees dimensions, materials, certificates and applications on the product page and opens the PDF when they want the detailed datasheet or a digital copy of the printed catalog. In this structure PDF speed still counts, but the PDF is no longer the buyer's first point of contact. We looked at which content belongs on the page and which in the PDF in product page or PDF: moving catalog content to HTML.

Moving to HTML also opens other doors for speed. Statically generated product pages can reach every part of the world quickly through a CDN; we described this approach in static site generation for a fast global catalog. In such a setup the PDF can even be generated automatically from the same data source, so the page and the file never drift apart.

Pre-Publication Checklist

Before uploading a new catalog edition to the site, checking the items below one by one means you spot problems before your buyers do:

  • The web output was exported separately from the print output; images were downsampled to screen resolution and technical drawings stayed vector.
  • Fonts were embedded as subsets; hidden layers, unused colour profiles and editing data were removed.
  • The file was linearized as the final step in the chain, and this was verified with a tool.
  • The server or CDN sends the Accept-Ranges header for the file and answers range requests with a 206 status.
  • The file name carries version information and is served with a suitable Cache-Control header; a purge step is defined for fixed-name files.
  • The file size stays within your CDN's caching limits.
  • The catalog is split by product family and language, with the full catalog available as a separate option.
  • Each part includes a company introduction, contact details and a certificate summary.
  • The link text shows file type, language and size, and the file name is meaningful.
  • The Content-Disposition choice was made deliberately, and a file that opens in the browser has a download option next to it.
  • The catalog information also appears on the relevant HTML product pages, and the two sources match.
  • The file was tested from a location close to one of your target markets over a slow mobile connection.

Maintenance and Measurement

PDF speed is not a setting you configure once and forget. Every new catalog edition, a different designer or a different export setting can undo the gains. Write down the settings used for the web output and share them with everyone who prepares the catalog.

On the measurement side, a good start is to review regularly which PDFs on your site are downloaded most and how large they are. A file that is downloaded often but is still large is a priority candidate for improvement. In server or CDN logs, the share of 206 responses shows whether range requests really work. Cache hit information in the CDN dashboard tells you whether files are being served from points close to your buyers.

The content side deserves attention as well: which piece of information do your buyers open the catalog to find? The answer often shows that this information should be more visible on a product page. With every catalog edition, ask yourself: can my buyer find what they need without opening this file, and when they do open it, do they see the first page without waiting?

FAQ

Frequently Asked Questions

  • How much smaller can a large PDF catalog get for the web?

    It depends on the content and on how heavy the print output was, so a fixed figure would be misleading. The biggest gains usually come from downsampling photos to screen resolution and subsetting embedded fonts. Exporting a separate web output from the print output makes that reduction repeatable.

  • Does linearization change how the PDF looks or its quality?

    No, linearization only changes the internal order of the file; pages, images and text stay the same. The data needed for the first page moves to the start of the file, so the viewer can begin rendering without waiting for the whole download. Because saving the file again with another tool can undo it, make linearization the last step.

  • How can I tell whether my server supports range requests?

    Look for Accept-Ranges: bytes in the file's response headers and send a request that asks only for the first few bytes. If the status code is 206, range requests work. Support can disappear when the file is served through a download script or middleware layer.

  • Will extra server-side compression speed up PDF delivery?

    In most cases the gain is small, because images and text streams inside a PDF are usually compressed already. The real difference is made when the file itself is prepared for the web. On the server side, cache headers and range request support deserve priority.

  • Does splitting the catalog into parts make life harder for buyers?

    Done well, it makes things easier, since buyers download only the product family and language they need. If every part includes a company introduction and contact details, it still makes sense on its own. The full catalog should remain available as a separate option.

  • Should the catalog open in the browser or download directly?

    Opening in the browser usually gives a faster first impression, because the buyer can see the first page before the whole file arrives. Downloading suits offline review and sharing. Opening in the browser by default with a clear download option beside it covers both needs.

  • Will the CDN keep showing the old file after a new edition goes live?

    If the file name is unchanged and the cache lifetime has not expired, the old edition may stay visible for a while. The most reliable fix is to publish each edition under a new file name and update the link. If the name must stay fixed, purge the CDN cache for that address after publishing.

  • If the PDF is fast now, do I still need HTML product pages?

    Yes, because even a fast PDF has to be opened before its information can be read and needs zooming on a phone. HTML product pages appear in search results product by product and link straight to the quote form. Positioning the PDF as a complement to those pages gives a more balanced structure.

Related Articles

No comments yet

Leave a Comment