Optimize PDF Preview

Administrators can configure FileCloud to show a preview of PDF files directly in the User Portal without forcing a user to download the file first.  

This is configured when you Set Up Document Preview.


If you choose to allow previews of PDF files, you should be aware of what the user's experience will be on the User Portal.


In some cases, viewing PDF files can take more time than expected.

The time it takes to generate a preview of a PDF depends on the how the file is created.

In general, a PDF can be categorized in to two main types:

  • Native (quicker)
  • Scanned (slower)


Native

Information is saved as text when you save a file as PDF if you have created the file from the following sources:

  • A word processing program such as Microsoft Word, Excel or PowerPoint
  • A browser page printed to PDF
  • A file saved directly from PDF generation software such as Nitro PDF, Adobe PDF, etc.

When information is saved as text, searching, copying, and other text-based operations on the PDF are quicker.

(lightbulb)  It also takes less time to generate a preview of a native PDF file than a scanned PDF file.

Scanned

When PDFs are created from scanning, there is no information about the content because the PDF file just serves as a container of images.  

(lightbulb)  While this format is useful when the objective is to showcase graphics material, the rendering of this file can take a long time.

When a scanned PDF needs to be previewed in FileCloud:

  1. The client's User Portal needs to check the entire PDF embedded text to allow search, copy or any other text based operations.
  2. This text processing operation is done at the moment when the client's User Portal requests a preview.
  3. The processing on the client-side portal can make the preview loading slow for general use.

NOTE:  Enabling Solr OCR has no effect on the speed of previewing a scanned PDF.


If you have a scanned PDF file that has been created from one of the following sources, your best option is to convert the file to native PDF before uploading it to FileCloud:

  • Legal documents
  • Insurance patient documents
  • Blueprints and manuals

Optimizing files in this way allows a file to be opened with less processing time and generates a preview quicker.

How Do I Convert a Scanned PDF to Native?

There are several tools in the market you can use to convert scanned PDF files to native PDF files (OCR reading). 

For example, if you have a scanned image similar to the following, you should convert it Native PDF:

In our example:

  • this file is scanned and saved as a PDF named Scanned_PDF.pdf
  • If we use this file as it is, the FileCloud Preview will take a longer than expected time to render this on the User Portal

For test purposes, CodeLathe has tested and recommends the following tool to optimize PDF files for generating a preview:

  • ABBYY produces FineReader, an all-in-one OCR and PDF software application for increasing business productivity when working with documents.
  • Using ABBYY Fine Reader software, you can open and convert this PDF file to a Native PDF file.

(lightbulb) The use of ABBYY FineReader was used for explanation purposes only. Any other tool that can read a PDF file can be used to optimize the PDF files for web viewing.