Working With Problematic PDF Files¶
Quite often, you may come across a PDF file that does not get imported properly in Astera ReportMiner, meaning that you may have some trouble importing the data from the PDF file. There a several reasons why this may occur. Mostly, it is because the PDF file is not a true PDF (readable text format) in the first place but a scanned or some other embedded image, or because the file’s text layer got damaged during its creation.
The first step to finding the actual reason is to determine whether the PDF file contains any text.
Determining Whether a PDF File Contains Text¶
To determine whether or not a PDF file contains any text, open it in a PDF reader and use the Find feature to search for the text you can simply see on the screen. If the search feature is unable to find the specified text, it signifies that the text layer of the file is damaged, or it is an image and therefore, not readable by the PDF reader or Astera ReportMiner.
Another way is to use the text extract tool in PDF reader. Copy some text and then paste it onto Notepad. If the PDF reader is unable to highlight your selected text, then it is not text but a scanned or embedded image. If after pasting, you cannot see the similar text pasted on the Notepad, then the text layer of the file is damaged.
Cases in Which Astera ReportMiner Cannot Import the PDF File¶
There are several cases in which Astera ReportMiner is unable to import the PDF files properly. Let’s go over them and their suggested solutions one by one.
Password Protected File¶
The author can specify the security options while publishing the PDF document to refrain anyone from extracting the data it contains. If the PDF file is password protected, ReportMiner will throw an exception asking you to enter the password. When you provide the password only then the contents of the file would be displayed, else ReportMiner will show an empty page.
Damaged PDF Files¶
In some scenarios, the PDF file does appear fine but the ReportMiner is unable to extract data from it. This is because the file’s text layer gets damaged beyond repair during its creation. Opening the file with a PDF reader and saving it might help cater to this issue.
Scanned or Embedded Images in PDF Files¶
Sometimes, the PDF file contains a scanned or embedded image instead of the text. A scanned image is usually a picture taken by a scanner and embedded into the PDF document. Astera ReportMiner cannot read data from scanned files. For that, you will need to have a third-party OCR (Optical Character Recognition) tool integrated with it.
One of the reasons why Astera ReportMiner is unable to read the contents of your PDF file is that it has redacted data. In this case, you cannot do anything because the information has been redacted by the author for security reasons.
The encoding of the file should be UTF – 8 for it to open in Astera ReportMiner. In case, the encoding of the file is other than that UTF – 8, you can change it from the Encoding option in the Report Options panel.
This concludes working with problematic PDF files in Astera ReportMiner.