In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to use QPDF and Poppler to edit PDF in the Linux system, which has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand.
QPDF is a command-line tool for PDF file conversion, also known as pdf-to-pdf. QPDF provides many features that are useful to developers.
QPDF can create linearized (web optimized) and encrypted files, and can also use object streams to transform PDF files (similar to compressed objects).
Poppler is a free software utility library for rendering Portable document format (PDF) documents. Its development is supported by freedesktop.org. It is commonly used on Linux systems and is used by PDF viewers in open source GNOME and KDE desktop environments.
Installation
On Linux, you can install qpdf and poppler-utils with your package manager (such as apt or dnf). For example, on Fedora:
$sudo dnf install qpdf poppler-utils
On macOS, use MacPorts or Homebrew. On Windows, use Chocolatey.
Qpdf
The qpdf command can do many things, but I mainly use it to:
Split a PDF into different pages and merge multiple PDF files into one file
To split an PDF into different pages:
Qpdf-split-pages original.pdf split.pdf
This will generate files like split-01.pdf and split-02.pdf. Each file is a single-page PDF file.
Merging files is subtle:
Qpdf-empty concatenated.pdf-pages split-*.pdf-
This is the default practice of qpdf. The-empty option tells qpdf to start with an empty file. The two dashes (-) at the end indicate that there are no more files to process. This is an example of a parameter that reflects the internal model, not the purpose for which people use it, but at least it runs and produces an effective PDF!
Poppler-utils
This package contains several tools, but the one I use most is pdftoppm, which converts PDF files into portable pixel map (ppm) files. I usually use it after segmenting a page with qpdf and need to convert a specific page into an image that I can modify. The ppm format is not well known, but it is important that most image processing methods, including ImageMagick, Pillow, and so on, can use it. Most of these tools can also save files as PDF.
Work flow
My usual workflow is as follows:
Use qpdf to split PDF into pages. Use poppler-utils to convert pages that need to be modified into images. Modify the image as needed and save it as PDF. Use qpdf to merge pages into a single PDF. Thank you for reading this article carefully. I hope the article "how to use QPDF and Poppler to edit PDF in Linux system" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.