Modifying PDF information to make them mobile-friendly is usually a cumbersome job. Normally, PDF information are designed for use “as is,” with none modifications to their format. This results in poor studying expertise on handheld units with small screens. This text will present you methods to make PDF information extra mobile-friendly utilizing a free and open-source instrument referred to as K2pdfopt.

About K2pdfopt

K2pdfopt is a free and open-source PDF manipulation software program developed by Willus. This software program helps commonplace PDF editor options, comparable to PDF resizing and cropping. Nevertheless, the principle spotlight of this instrument is its capacity to transform PDF information into codecs which might be accessible to cell units. K2pdfopt can optimize easy, text-based PDF information; complicated, multi-column PDF information; and may extract textual content from PDF information containing pictures with OCR know-how.

This text will solely cowl optimizing easy, text-based PDF information for small screens. K2pdfopt comes with quite a few choices and tons of of mixtures that can be utilized in response to your necessities. It’s not reasonable to cowl all of them right here, so the main target of this text shall be changing single-column PDF information containing textual content solely. You may all the time experiment with this instrument by following an in-depth rationalization of its choices accessible right here.

Putting in K2pdfopt in Linux

To put in K2pdfopt on Ubuntu, run the command beneath:

$ sudo apt set up k2pdfopt

Be aware that the model accessible in official repositories of Ubuntu could also be outdated. You may set up the most recent model of the K2pdfopt executable binary for Ubuntu and different Linux distributions right here.

Changing a Easy, Textual content-Solely PDF File

Run the command beneath to launch K2pdfopt:

For those who downloaded the binary, use the next instructions as a substitute:

$ chmod +x k2pdfopt
$ ./k2pdfopt file.pdf

K2pdfopt includes a well-made interactive command-line utility that makes it simple to enter customization choices. After launching K2pdfopt, it is best to see the next format:

How to Optimize PDF Files to Improve Mobile Devices Readability – Linux Hint

Each possibility talked about within the output above is preceded by an abbreviation code. All it’s good to do is enter these codes, as per your necessities, and comply with the on-screen prompts. The interactive instrument may also output the right command-line switches that you should utilize straight on the binary.

For example, to wrap textual content for higher readability on cell, enter “w” and comply with the on-screen prompts. In case you are undecided a few immediate, you possibly can simply hit the important thing to pick out the default worth. The screenshot beneath exhibits among the prompts you’ll get after coming into “w:”

How to Optimize PDF Files to Improve Mobile Devices Readability – Linux Hint

You may enter any legitimate abbreviation code, any variety of occasions. You’ll hold getting interactive prompts to customise the conversion habits. As soon as you’re happy with the choices, hit the important thing.

How to Optimize PDF Files to Improve Mobile Devices Readability – Linux Hint

Be aware of the “Chosen choices” line, which outputs the command-line parameters you chose from the interactive instrument. The following time you wish to use the identical set of choices, you’ll not be required to undergo the interactive instrument once more. You may simply use the acknowledged choices straight. For instance:

$ ./k2pdfopt file.pdf -wrap+ -hy -ws -0.2

In case you are proud of the “Chosen choices,” hit the important thing as soon as once more to start out the conversion course of:

How to Optimize PDF Files to Improve Mobile Devices Readability – Linux Hint

Await the method to complete, it is best to get a brand new file suffixed with the time period “k2opt.” On this occasion, you’ll get a file referred to as “file_k2opt.pdf.”.

Earlier than conversion, the file seems like this on my system:

How to Optimize PDF Files to Improve Mobile Devices Readability – Linux Hint

After conversion, the file turns into:

How to Optimize PDF Files to Improve Mobile Devices Readability – Linux Hint

For reference, I exploit the command beneath for my Android system:

$ ./k2pdfopt file.pdf -c -neg- -wrap+ -hy -ws -0.2 -dpi 550 -idpi -2 -fc- -w
1080 -h 1920 -om 0.1,0.1,0.1,0.1

This command wraps the textual content for a greater cell studying expertise, enlarges the textual content measurement by rising the DPI values, units margins on all 4 sides to 0.1 inches vast, and optimizes the file for 1920×1080 decision. You may examine the precise specs of your system by putting in a system data app, comparable to “CPU-Z.”

Guide Reader Android App

For those who should not have a Linux PC to work with, you should utilize the free and open-source Guide Reader Android app to make PDF information mobile-friendly on-the-fly. The Guide Reader app contains help for K2pdfopt and works positive for optimizing easy, text-based PDF information. The expertise isn’t as easy as a pre-optimized PDF file, and lags will be noticed when scrolling and performing on-the-fly conversions. Nevertheless, it will get the job completed, helps a darkish theme, and contains an possibility for rising and reducing font measurement.

Under is an instance exhibiting the mobile-friendly format within the Guide Reader app. Earlier than optimization, the file seems like this:

How to Optimize PDF Files to Improve Mobile Devices Readability – Linux Hint

You may click on on the hamburger-style icon within the high bar to optimize the PDF. After optimization, the file seems like this on a cell system:

How to Optimize PDF Files to Improve Mobile Devices Readability – Linux Hint

Be aware that the Guide Reader app doesn’t convert the unique PDF file, and is stored intact.

Conclusion

Some PDF viewers on cell units help textual content reflow mode. This mode tries to enhance readability by wrapping the textual content. Nevertheless, I discovered them to be poorly optimized with an uneven format and unhealthy hyphenation guidelines. K2pdfopt, alternatively, is far more customizable and environment friendly at textual content wrapping, and may fully take away hyphenation. Hopefully, this text taught you about methods to convert PDFs into extra readable codecs in your cell system.

optimize pdf for mobile viewing,optimize pdf for mobile online,create mobile friendly pdf,how to compress pdf files in linux,pdf for mobile devices,reduce pdf size linux,how to reduce file size in linux,linux tutorial blog