Extension for Magento 2 and Mage-OS

PDF Documents in the Media Gallery

Version 1.0.0 · 17.11.2026

Compatible with Magento Open Source 2.4.7–2.4.9 и Mage-OS · PHP 8.3–8.5 See compatibility

PDF files are uploaded through the admin Media Gallery, the same way as an image.

  • A form, a catalogue or the terms are replaced without FTP and without a developer.
  • A PDF goes in as a link in CMS pages, blocks and Page Builder.
  • Images in the gallery work as before.
€94.80 €79.00
€94.80 €79.00
Documentation

Not sure? — we answer within one working day

  • Free installationon your server
  • Security updatesforever
  • 90-day guaranteewe adapt it or refund you
  • New features12 months of updates

Why you need it

The store's PDF documents are uploaded from the admin

Almost every store has a PDF its pages point to: a returns form, a catalogue, printable terms. Magento's Media Gallery, however, accepts only images. A PDF is rejected right at upload.

So documents are usually uploaded over FTP or end up in the site's code. Replacing one form becomes a task for a developer. With the module a PDF is uploaded through the gallery with the button or by drag and drop. The file shows in the list with an icon and its name, opens in the details and is deleted from there.

In the editor the PDF is picked from the link dialog. On the storefront the link leads to the file under /media. Only a real PDF is accepted: a file renamed to .pdf is rejected. The module has no settings and no database tables. Works with Magento 2 and Mage-OS, with Luma and with Hyvä.

The module works only in the admin: the storefront gets a plain link to the file, so the theme does not matter.

Features

What the module does

PDF upload

With the button or by drag and drop, into the chosen gallery folder.

PDF in the list

The file shows with a PDF icon and its name, next to the images.

Details and deletion

A warning if the file is used in content.

Link from the editor

The PDF is picked from the link dialog in pages, blocks and Page Builder.

Real PDFs only

A file that is only renamed to .pdf is rejected.

Existing files

PDF files under pub/media enter the gallery with one command.

Compatibility

Version and requirements

Current version
1.0.0 · 17.11.2026
Platform
Magento Open Source 2.4.7–2.4.9 и Mage-OS
PHP
8.3–8.5
Installation
composer from repo.webcode.bg

Documentation

The guide on docs.webcode.bg

The detailed documentation opens with your repo.webcode.bg login — the same one you use to install the module with composer.

License and guarantee

What you get with the purchase

License

For one Magento installation. The code stays yours after the updates end.

Updates

Security — forever. New features — 12 months, then renewable at 50% of the module price. Everything via composer.

Free installation

We install the module on your store and check that it works.

90-day guarantee

If anything described does not work for you in the first 90 days, we adapt it to your store. And if that fails, we refund you.

Questions

Questions about PDF documents in the gallery

  • Can I insert a PDF as an image?

    No. A PDF goes in only as a link. If you pick it for an image, a message appears and nothing is inserted.

  • What happens to the PDF files already on the server?

    They enter the gallery with the media-gallery:sync command. It scans the pub/media folder, as it does for images.

  • How do I replace a document without touching the links?

    Delete the old file and upload the new one with the same name. If you upload a file with the same name without deleting the old one, Magento adds a suffix to the name.

  • Is there a file size limit?

    The server's upload limit applies. If your catalogue is larger, the limit is raised in the server's PHP settings, not in Magento.

  • What does it need to work?

    Magento's new Media Gallery. It is on when the “Enable Old Media Gallery” setting is “No”. PDFs follow the same role permissions as images.