PDF Compressor & Watermark – iLovePDF


Compress your PDF files and Stamp Images or text into PDF files. This is the Official iLovePDF plugin for WordPress. You can optimize all your PDF and stamp them automatically as you do in ilovepdf.com.

How it works

The plugin has two modes of work, automatic or manual.
Compress PDF: Every time a PDF file is uploaded to your Media Library, is compressed by our iLovePDF API and saved in your WordPress site already optimized, saving you disk space. This feature can be disabled.

It can also compress all PDF already in your Media Library at once or compress PDF files one by one. The compression ratio depends on the PDF but on average you can save up to 50% of disk space occupied by PDF files without loosing quality.

Watermark PDF: Every time a PDF file is uploaded to your Media Library, is stamped by our iLovePDF API and saved in your WordPress. This feature can be disabled.
It can also stamp images or text in PDF already in your Media Library at once or stamp PDF files one by one.

Bulk actions

All tools can be done for an individual files or applied to all your existing files.

Automatic process

All tools can be applied automatically when a PDF file is upload, so you don’t need to apply any manual anymore.

Configure your iLovePDF Developer Account

Install this plugin and go to Settings -> iLovePDF to create your iLovePDF Developer account (if you already registered previously on https://developer.ilovepdf.com you can login directly) and choose your Project, but by default it will be selected ‘Default Project’. A project is what defines which API keys will be used. If you need it, you can manage your projects in your iLovePDF developer account. With your iLovePDF API Free account you get 250 free PDF files to process per month. If you need more you can purchase them

By going to Settings -> iLovePDF -> Compress PDF you can set the compression level you prefer to optimize your PDF files. We strongly recommend you to use ‘Recommended Compression’ which offers the perfect balance between compression and quality. In this section you can disable the auto compression of new uploaded PDF files in your Media Library.

By going to Settings -> iLovePDF -> Watermark PDF you can set many options on what to stamp and how into your PDF files. In this section you can disable the auto stamping of new uploaded PDF files in your Media Library.

To Compress or Stamp PDF files that are already in your Media Library go to Media -> iLovePDF -> Compress PDF or Media -> iLovePDF -> Watermark


* Update Libraries.
* Now IlovePDF will use credits to process the files.

* A problem was solved with the option to create backup, where in some cases the option was not stored in the database.


* Update Libraries.

* Fixed an issue when activating the plugin for the first time. Default settings now load correctly.
* Library was included internally. This will improve file loading and possible CDN blocking in some countries.


* New Backup option added in General Settings. Now the backup works for all tools.
* Regenerate thumbnails when wattermark is applied.
* Added link to configuration page from plugins page.
* Added link to tools from page settings.

* Update Libraries.
* Update Library Ilovepdf-php to 1.2.4
* Removed unused file.
* On the individual page of a file, ilovepdf buttons are now displayed whenever the file is a PDF.

* In some cases, when a user logged in, they could get a PHP error or warning.


* Update Libraries.
* Assets.


* Compatibility issue with the Woocommerce plugin.


* Specify minimum version of PHP for dependencies.


* Improved class loading.
* Update library ilovepdf to v1.2.2


* Remove Function Upload duplicate. Caused an error loading pdf files.

* Support WP 6.4.1

* Fixed a problem with the compress and watermark buttons, they were duplicated.
* Cannot read property ‘model’ of undefined.


* Minimum Support WP Version to 5.3
* Minimum Support PHP to 7.4
* remove public folder, not used.

* fix bulk actions to compress and watermark functions


* Formatting files according to php/wordpress standards
* WP Requires at least 4.7
* added prefix to functions and const
* code documentation
* version number to enqueue styles

* update readme
* Change function dirname() to DIR const
* loose comparisons
* conditional structure
* variables name to snake_case
* Capabilities should be used instead of roles
* remove comments
* json_encode changed to wp_json_encode
* strip_tags changed to wp_strip_all_tags
* Limit posts_per_page
* output literal string
* function rename() to WP_Filesystem

* name assignment changed
* Rename Class Name Ilove_Pdf_i18n to Ilove_Pdf_I18n
* nonce verification
* rename files without hyphens
* escaped data outputs
* Sanitize data
* text domain mismatch
* changed name of parameter $object to $file_object
* add version to js fiel enqueue
* data types in parameters
* variables not defined
* check if watermark image is empty
* set value default if compress size is null|empty


  • match version and tag.
  • update readme


  • update version


  • Initial version.


  • Create an account or login.
  • Configure your pluggin
  • Bulk actions with existing files


From your Admin panel:
1. Visit Plugins > Add New.
2. Search for ‘ilovepdf’ and press the ‘Install Now’ button.
3. Activate the plugin from your Plugins page.

1. Upload ilove-pdf to the /wp-content/plugins/ directory
2. Activate the plugin through the ‘Plugins’ menu in WordPress
3. Create a free account in the plugin settings page, or use your existing one
4. Configure the plugin as you like


Do I need a iLovePDF account?

Yes, you need a developer account. It can be created easily from your WordPress, or you can use your existing one.

Is this service free?

With a free account you can process up to 250 files each month. If you need more, you can upgrade your account.

What happens when the limit is reatched?

We will send you an email before limit is reached. When limit is reached, no more PDF files will be processed. But remember each month, 250 files are free, so in next month you will be able to process more files again!


11. Januar 2022.
The ILovePDF website is great, but their plugin isn’t. I gave it a spin as I’d like the simple functionality, focusing on compressing PDF, but it wouldn’t work. Actually, it crashed the site completely, and support does not seem to be monitored. I urge people to compress their PDF’s manually, and if that is not feasible, look for a plugin that is still maintained instead.
Read all 3 reviews

Contributors & Developers

“PDF Compressor & Watermark – iLovePDF” is open source software. The following people have contributed to this plugin.