PDF Encrypter

Posted on 2019-12-19 12:21:53 by Nick Villalobos

PDF Encrypter Explorer Integration Screenshot

Continuing my adventure of "Going Paperless", I needed an easy way to encrypt PDF files before I added them to Evernote. To do this, I used the LEADTOOLS PDFFile() class to add a user password to a file. I created a console application with code to register itself into the Windows Explorer shell. Now I can right click any PDF file and encrypt it with a password. The LEADTOOLS code to do this is very easy; it took me longer to figure out how to edit the registry to add the application to the Windows Explorer context menu then it did to use LEADTOOLS to add the password.

One call got it done:

new PDFFile( fileName, password ) {
   SecurityOptions = new PDFSecurityOptions {
      UserPassword = newPassword,
      EncryptionMode = PDFEncryptionMode.RC128Bit
   },
   CompatibilityLevel = PDFCompatibilityLevel.PDF15
}.Convert( 1, -1, null );
Continue Reading...

Preprocess and OCR Small [Low Resolution] Images

Posted on 2019-12-19 12:19:20 by Nick Villalobos

LEADTOOLS OCRLow-resolution images can come from a variety of sources, but the most common source is probably screen capture. Screen capture images are usually 96 DPI on Windows. (This can vary depending on the user settings). Additionally, image representations of incoming faxes may also be considered low-res and fall under the resolution threshold acceptable for OCR. Typically, OCR engines require images of 200 or 300 DPI in order to achieve acceptable results.

Change Image Resolution

One easy solution for images that do not have noise or have complex structures is to change the resolution of the image before OCRing the image. This C# sample shows you how, then it gets the text from the image and outputs it to the console.

Continue Reading...

Convert Faxes Embedded in PDF to TIF

Posted on 2019-12-19 11:45:39 by Nick Villalobos

File Formats Banner

Even today there are many organizations that rely on fax as a required form of communications. Because of this, receiving faxes is a requirement that much still be met. To do this, many organizations utilize fax services either hosted locally or by a third-party. Many of these services will email received faxes to users as a PDF file.

In a normal facsimile transmission, every other scan-line is skipped. This reduces the amount of data that needs to be sent over the relatively slow connection used to send faxes. To account for the missing scan-lines, the aspect ratio of the pixels is 2:1. It is important to recognize this when displaying the image else you will end up displaying the image incorrectly, making it looked squashed.

Continue Reading...

Efficiently Convert a Document to an Image

Posted on 2019-12-19 10:44:31 by Nick Villalobos

One of the new features of the latest LEADTOOLS V19 update is a re-factored load algorithm, which has resulted in greatly reduced load times of documents formats such as PDF, MS-Office formats 97-2013 (Word, Excel, and PowerPoint), and TXT. The increase in speed is directly related to the number of pages in the document; the more pages, the greater the increase of speed.

Below is a C# code snippet showing how to use the new feature with the new bits marked.

Continue Reading...

Linux OCR, Barcode and Format Conversion Batch Processor: 25 Projects in 25 Days

Posted on 2019-12-18 11:51:54 by Nick Villalobos

As part of the LEAD Technologies 25th anniversary, we are creating 25 projects in 25 days to celebrate LEAD's depth of features and ease of use. Today's project comes from Nathan.

Download the Project

Continue Reading...
LEADTOOLS Blog

LEADTOOLS Powered by Apryse,the Market Leading PDF SDK,All Rights Reserved