使用 PDF Mix Tool 执行常见的 PDF 编辑任务
PDF

> 
> PDF Mix Tool 是一个简单、轻巧的开源 PDF 编辑应用，可让你从 PDF 中提取页面、合并两个 PDF、从 PDF 中删除页面等。
> 
> 
> 


![](/data/attachment/album/202008/16/203411puozfr91f1pmzg9z.jpg)


### PDF Mix Tool：一个简单的开源 PDF 编辑工具


![](/data/attachment/album/202008/16/203630tytdct4ndzzorcx7.png)


有[几个可以在 Linux 中使用的 PDF 编辑器](https://itsfoss.com/pdf-editors-linux/)，我通常将它们分为两类：


* 可让你编辑内容（注释、高亮、更改文本、添加/删除图像等）的 PDF 编辑器，
* 可让你通过合并、分割、提取页面等来修改文件的 PDF 编辑器。


[PDF Mix Tool](https://scarpetta.eu/pdfmixtool/) 属于第二类。它是用 C++ 和 Qt5 编写的开源软件。它可让你合并两个或更多 PDF 文件，并为每个文件指定页面，还有旋转页面、添加空白页、删除页面以及从 PDF 文件提取页面。


在本周的开源软件亮点中，让我们看一下使用 PDF Mix Tool。


### 使用 PDF Mix Tool 在 Linux 中编辑 PDF


![](/data/attachment/album/202008/16/204321szcxeo0cvkcc0k9y.png)


PDF Mix Tool 并没有很多功能，但是有一些非常重要的功能。


#### 合并 PDF 文件


![](/data/attachment/album/202008/16/203851su5apmvrvavjm4jm.png)


你可以轻松合并多个 PDF 文件，同时指定确切的页面。它让你能够调整页面数、旋转，还能使用 “<ruby> 交替混合 <rt>  Alternate mix </rt></ruby>” 反转页面顺序合并。


![](/data/attachment/album/202008/16/203949efrmswofbnbz0vmv.png)


你只需要单击 “<ruby> 添加 PDF 文件 <rt>  Add PDF File </rt></ruby>” 添加文件，然后使用可用的选项对其进行编辑（如上图所示），最后生成编辑的 PDF。


#### 旋转页面


你可以在合并多个文件或仅对单个 PDF 文件进行操作时旋转 PDF 文件的页面。


对于合并文件，你可以参考上面的截图。但是当你选择一个文件时，它看上去像这样：


![](/data/attachment/album/202008/16/203957dlm6oaqmztzo24pi.png)


你有多种选择，但是要旋转页面，需要选择 “<ruby> 编辑页面布局 <rt>  Edit page layout </rt></ruby>” 选项，如上截图所示。


#### 添加或删除页面


要从其他 PDF 文件添加新页面，最好利用此选项。


但是，如果要添加空白页，你可以选择一个文件进行添加。不只是添加空白页面，还可以删除特定页面。下面的截图圈出了高亮选项：


![](/data/attachment/album/202008/16/204103jeblk35e7er433dk.png)


#### 从 PDF 文件提取页面


![](/data/attachment/album/202008/16/204233skgk2ykis21huki8.png)


除了所有其他选项之外，你还可以从给定的 PDF 文件中提取特定页面（或全部）。你还可以为所有提取的页面生成一个新的 PDF 文件，或者为提取的每个页面制作单独的 PDF 文件。在许多场景中，它应该派上用场。


#### 其他功能


利用上面所有功能，你可以生成自己选择的全新 PDF，颠倒顺序、提取页面、制作单独的 PDF 文件等等。


它不会减小 PDF 文件的大小。你必须使用其他工具[在 Linux 中压缩 PDF 文件](https://itsfoss.com/compress-pdf-linux/)。


因此，当你组合使用可用选项时，它是功能丰富的工具。


### 在 Linux 上安装 PDF Mix Tool


![](/data/attachment/album/202008/16/204257snd59z7xxix4s1oj.png)


PDF Mix Tool 存在于 Snap 和 [Flatpak 软件包](https://flathub.org/apps/details/eu.scarpetta.PDFMixTool)中。这意味着如果发行版支持这任意一种，你都可以在软件管理器中找到它。


或者，如果你[启用了 Snap 软件包支持](https://itsfoss.com/install-snap-linux/)，那么可以使用以下命令进行安装：



```
sudo snap install pdfmixtool

```

如果你想[使用 Flatpak](https://itsfoss.com/flatpak-guide/)，那么使用：



```
flatpak install flathub eu.scarpetta.PDFMixTool

```

如果你使用的是 Arch Linux，那么可以从[社区仓库](https://www.archlinux.org/packages/community/x86_64/pdfmixtool/)中获取。



```
sudo pacman -S pdfmixtool

```

你也可以选择查看它的 [GitLab 页面](https://gitlab.com/scarpetta/pdfmixtool)获取源码。


* [下载 PDF Mix Tool 源码](https://www.scarpetta.eu/pdfmixtool/)


### 总结


它可能不是功能最丰富的 PDF 编辑工具，但考虑到它是轻量级的开源工具，因此它是已安装的应用中非常有用的。过去我们也介绍过类似的工具 [PDF Arranger](https://itsfoss.com/pdfarranger-app/)。你可能会想了解一下。


你如何看待它？你有尝试过么？在下面的评论中让我知道你的想法。




---


via: <https://itsfoss.com/pdf-mix-tool/>


作者：[Ankush Das](https://itsfoss.com/author/ankush/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
*Brief: PDF Mix Tool is a simple, lightweight open-source PDF editing application that lets you extract pages from PDF, merge two PDFs, delete pages from PDF files among a few other things.*

## PDF Mix Tool: A Simple Open Source PDF Editing Tool

![Pdf Mix Tool](https://itsfoss.com/content/images/wordpress/2020/06/pdf-mix-tool.png)

There are [several PDF editors available for Linux](https://itsfoss.com/pdf-editors-linux/). I usually categorize them in two categories:

- PDF editors that let you edit the content (annotate, highlight, change text, add/remove images etc)
- PDF editors that let you modify the files by merging files, splitting files, extracting pages from files etc.

[PDF Mix Tool](https://scarpetta.eu/pdfmixtool/) falls in the second category. It is an open source software written in C++ and uses Qt5. It lets you [merge two or more PDF files](https://itsfoss.com/merge-pdf-linux/) specifying a page set for each of them, rotate pages, add white pages, delete pages and extract pages from PDF files.

In this week’s open source software highlight, let’s take a look at using PDF Mix Tool.

## Using PDF Mix Tool for editing PDFs in Linux

![Merge two PDF files with PDF Mix Tool](https://itsfoss.com/content/images/wordpress/2020/06/pdf-mix-tool-merge.png)

PDF Mix Tool does not boast a bunch of features but a handful of things that are incredibly important.

### Merge PDF files

![Merge part of PDF files with PDF Mix Tool](https://itsfoss.com/content/images/wordpress/2020/06/pdf-mix-tool-edit.png)

You can easily merge multiple PDF files while specifying the exact pages as well. It gives you the ability to tweak the number of pages, rotation, and also the option to reverse the order of pages to merge with “**Alternate mix**“.

![Pdf Mix Tool Merge Edit](https://itsfoss.com/content/images/wordpress/2020/06/pdf-mix-tool-merge-edit.png)

You just need to click on “**Add PDF Fil**e” to add the files and then edit it with the options available (as shown in the image above) and finally generate the edited PDF.

### Rotate pages

You can rotate pages of a PDF file while merging multiple files or when simply operating on a single PDF file.

For merging files, you can refer to the screenshots above — but when you select a single file, this is how it looks:

![Rotate PDF pages with PDF Mix Tool](https://itsfoss.com/content/images/wordpress/2020/06/pdf-mix-tool-layout.png)

You get a variety of options, but to rotate the pages, you need to select the “**Edit page layout**” option as shown in the screenshot above.

### Add or delete pages

To add new pages from a different PDF file, it’s best to utilize the option.

But, if you want to add an empty page, you can do that when selecting a single file to process. Not just limited to the addition of empty pages — but you can delete specific pages as well. Here’s a screenshot that highlights the delete option:

![Add or Delete pages of PDF with PDF Mix Tool](https://itsfoss.com/content/images/wordpress/2020/06/pdf-mix-tool-add-delete.png)

### Extract pages from a PDF file

![Extract PDF pages using PDF Mix Tool](https://itsfoss.com/content/images/wordpress/2020/06/pdf-mix-tool-extract.png)

In addition to all the other options, you can also extract a certain page (or all) from a given PDF file. You can then generate a new PDF file for all the extracted pages or make separate PDF files for every page you extract. It should come in handy in a lot of use-cases.

### Other functionalities

With all the features mentioned above, you can generate an entirely new PDF of your choice, reverse the order, extract the pages, make separate PDF files, and so on.

It does not reduce size of the PDF file. You’ll have to use other tools for [compressing PDF files on Linux](https://itsfoss.com/compress-pdf-linux/).

So, it’s a mixed bag of things when you combine and use the options available.

## Installing PDF Mix Tool on Linux

![Pdf Mix Tool Ubuntu](https://itsfoss.com/content/images/wordpress/2020/06/pdf-mix-tool-ubuntu.png)

PDF Mix Tool is available as Snap and [Flatpak packages](https://flathub.org/apps/details/eu.scarpetta.PDFMixTool). This means ** you may find it in your distribution’s software manager** if it supports either of these packages.

Alternatively, if you have [Snap package support enabled](https://itsfoss.com/install-snap-linux/), you can use the following command to install it:

`sudo snap install pdfmixtool`


If you want to [use Flatpak](https://itsfoss.com/flatpak-guide/), you can use:

`flatpak install flathub eu.scarpetta.PDFMixTool`


In case you’re using Arch Linux, you can get it from the [community repository](https://www.archlinux.org/packages/community/x86_64/pdfmixtool/).

`sudo pacman -S pdfmixtool`


You can also choose to take a look at their [GitLab page](https://gitlab.com/scarpetta/pdfmixtool) for its source code.

**Wrapping Up**

It may not be the most feature-rich PDF editing tool — but considering it as a lightweight open-source tool, it is a very useful application to have installed. We have also covered a similar tool [PDF Arranger](https://itsfoss.com/pdfarranger-app/) in the past. You may want to take a look at that as well.

What do you think about it? Have you tried it yet? Let me know your thoughts in the comments below.