Repair PDF files

Welcome to the Repair PDF guide. This guide will teach you how to Repair one or more damaged -impossible to open and read- PDF files easily.

The Repair tool has no specific attributes so this guide will focus only on Repair basics while recommend you to take a look at Common features guide for an advanced use of Merge.

Also all Tool Guides takes into account that you have previous knowledge about the Basics to process a PDF with our REST API. We strongly recommend you to read the related guide before start with this one.

Basic Repair

Repair is another one of the simplest tools of ILovePDF API to use and can be done by simply uploading one or more files as in this example code:

Download the PHP library from GitHub
Download the Ruby library from GitHub
Download the .Net library from GitHub

With this code, file1_name.pdf will uploaded to be repaired. If the file was repaired successfully (or wasn't originally damaged!) the process will end successfully and files will be ready to download. But sometimes it is possible that one or more files are heavily damaged and cannot be repaired. For these cases, the Repair tool will inform with a warning which files couldn't be repaired.

that's it! Remember that you can explore more functions like setting the output filename in the Common features guide.