diff --git a/translated/tech/20221124.1 ⭐️ How to Merge PDF Files in Linux.md b/published/20221124.1 ⭐️ How to Merge PDF Files in Linux.md similarity index 58% rename from translated/tech/20221124.1 ⭐️ How to Merge PDF Files in Linux.md rename to published/20221124.1 ⭐️ How to Merge PDF Files in Linux.md index bfc31c3b48..dde613d508 100644 --- a/translated/tech/20221124.1 ⭐️ How to Merge PDF Files in Linux.md +++ b/published/20221124.1 ⭐️ How to Merge PDF Files in Linux.md @@ -3,16 +3,18 @@ [#]: author: "Sagar Sharma https://itsfoss.com/author/sagar/" [#]: collector: "lkxed" [#]: translator: "geekpi" -[#]: reviewer: " " -[#]: publisher: " " -[#]: url: " " +[#]: reviewer: "wxy" +[#]: publisher: "wxy" +[#]: url: "https://linux.cn/article-15730-1.html" 如何在 Linux 中合并 PDF 文件 ====== -有多个关于同一主题的 PDF,现在你想将它们合并成一个 PDF? +![][0] -或者你可能需要上传由不同文件组成的单个文件? 许多政府和学术门户网站都要求这样做。 +> 有多个关于同一主题的 PDF,现在你想将它们合并成一个 PDF? + +或者你可能需要上传由不同文件组成的单个文件?许多政府和学术门户网站都要求这样做。 作为 Linux 用户,如果你遇到需要合并 PDF 的情况,本教程将帮助你。 @@ -22,7 +24,7 @@ - 使用 LibreOffice(允许你选择页面) - 使用 ImageMagick 命令行工具(Linux 教程会没有终端方法就结束么?) -你可以全部阅读并选择最适合你的。 +你可以全部了解一下并选择最适合你的。 ### 方法 1:使用 PDF Tricks GUI 工具在 Linux 中合并 PDF @@ -34,7 +36,7 @@ - 拆分 PDF。 - 将 PDF 转换为 JPG、PNG 和文本格式。 -它以 [Flatpak][1] 的形式提供。请[确保你的 Linux 系统启用了 Flatpak 支持][2]。 +它以 [Flatpak][1] 的形式提供。请 [确保你的 Linux 系统启用了 Flatpak 支持][2]。 我分享的是在 Ubuntu 上启用 Flatpak 的步骤: @@ -55,11 +57,11 @@ flatpak install flathub com.github.muriloventuroso.pdftricks ![merge pdf files using in ubuntu][3] -在下一步中,单击**添加文件**并选择要合并的文件: +在下一步中,单击 “添加文件Add file” 并选择要合并的文件: ![choose files to merge][4] -选择文件后,单击**合并**按钮: +选择文件后,单击 “合并Merge” 按钮: ![click on merge button][5] @@ -67,27 +69,27 @@ flatpak install flathub com.github.muriloventuroso.pdftricks ![locate and name the merged pdf file][6] -就是这样。合并后的 pdf 已保存。 +就是这样。合并后的 PDF 已保存。 -如果你正在寻找一种工具,我们提供了一份[可用于阅读和编辑 PDF 文件的最佳 PDF 阅读器][7]列表。 +如果你正在寻找,我们提供了一份 [可用于阅读和编辑 PDF 文件的最佳 PDF 阅读器][7] 列表。 ### 方法 2:使用 LibreOffice 合并 PDF 文件 -很棒的 LibreOffice 能够处理许多与 PDF 相关的任务。你甚至可以[使用 LibreOffice Draw 工具编辑 PDF 文件][8]来添加数字签名、添加文本等。 +很棒的 LibreOffice 能够处理许多与 PDF 相关的任务。你甚至可以 [使用 LibreOffice Draw 工具编辑 PDF 文件][8] 来添加数字签名、添加文本等。 好处是你不需要安装其他应用。LibreOffice 已经安装在大多数发行版上,如果不是全部的话。 打开文件管理器并选择要合并的 PDF 文件。 -**右键单击选定的文件 > 使用其他应用打开 > LibreOffice Draw**,它将打开选定的 PDF 文件。 +右键单击选定的文件 > 使用其他应用打开Open With Other Application > LibreOffice Draw,它将打开选定的 PDF 文件。 它将在单独的 LibreOffice Draw 实例中打开你选择的每个 PDF 文件: ![open pdf file in libreoffice][9] -现在,你必须从左侧预览栏**选择单个页面或整个 PDF 文件**(使用 Ctrl + A)并将其拖放到要合并的文件的预览栏: +现在,你必须从左侧预览栏选择单个页面或整个 PDF 文件(使用 `Ctrl + A`)并将其拖放到要合并的文件的预览栏: -拖放后,单击左上角的第 5 个选项,标题是**直接导出为 PDF**: +拖放后,单击左上角的第 5 个选项,提示是 直接导出为 PDFExport Directly as PDF: ![export directly as pdf in libreoffice][10] @@ -97,13 +99,13 @@ flatpak install flathub com.github.muriloventuroso.pdftricks 这就完成了! -### 额外技巧:在命令行中合并 PDF (对于高级用户) +### 更多技巧:在命令行中合并 PDF (对于高级用户) -如果我不包括命令行方法,那将是什么样的 Linux 教程? 要在命令行中合并 PDF 文件,你可以使用 ImageMagick。 +如果我不包括命令行方法,那算什么 Linux 教程?要在命令行中合并 PDF 文件,你可以使用 ImageMagick。 ImageMagick 其实是一个图像相关的工具。PDF 文件本质上是图像,这就是 ImageMagick 可以处理它们的原因。 -你可能甚至不需要[安装 ImageMagick][12],因为它已经默认安装在大多数发行版中。 +你可能甚至不需要单独 [安装 ImageMagick][12],因为它已经默认安装在大多数发行版中。 例如,我将添加 3 个名为 pdf-1.pdf、pdf-2.pdf 和 pdf-3.pdf 的 PDF 文件,并将最终合并的 PDF 文件输出命名为 MergedFile.pdf(多么聪明): @@ -111,11 +113,11 @@ ImageMagick 其实是一个图像相关的工具。PDF 文件本质上是图像 convert pdf-1.pdf pdf-2.pdf pdf-3.pdf MergedFile.pdf ``` -#### no images defined 故障排除 +#### “no images defined” 故障排除 如果你看到这样的策略错误: -![convert im6.q16: attempt to perform an operation not allowed by the security policy `pdf` @ error constitute.c iscoderauthorized 421.][13] +![][13] 这个问题很容易解决。你只需在 ImageMagick 策略文件中进行少量更改。 @@ -145,10 +147,12 @@ sudo nano /etc/ImageMagick-6/policy.xml ### 总结 -现在你知道了在 Linux 中合并 PDF 文件的几种方法。合并后的 PDF 文件可能很大。如果你需要在有大小限制的门户上传合并的 PDF 文件,你可以[压缩 PDF 文件][16]。 +现在你知道了在 Linux 中合并 PDF 文件的几种方法。合并后的 PDF 文件可能很大。如果你需要在有大小限制的门户上传合并的 PDF 文件,你可以 [压缩 PDF 文件][16]。 如果你在使用上述方法时遇到任何问题,请告诉我。 +*(题图:MJ:process docs illustrations in high resolution)* + -------------------------------------------------------------------------------- via: https://itsfoss.com/merge-pdf-linux/ @@ -156,7 +160,7 @@ via: https://itsfoss.com/merge-pdf-linux/ 作者:[Sagar Sharma][a] 选题:[lkxed][b] 译者:[geekpi](https://github.com/geekpi) -校对:[校对者ID](https://github.com/校对者ID) +校对:[wxy](https://github.com/wxy) 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 @@ -164,17 +168,18 @@ via: https://itsfoss.com/merge-pdf-linux/ [b]: https://github.com/lkxed [1]: https://itsfoss.com/what-is-flatpak/ [2]: https://itsfoss.com/flatpak-guide/ -[3]: https://itsfoss.com/wp-content/uploads/2022/11/merge-pdf-files-using-in-ubuntu-1.png -[4]: https://itsfoss.com/wp-content/uploads/2022/11/choose-files-to-merge.png -[5]: https://itsfoss.com/wp-content/uploads/2022/11/click-on-merge-button.png -[6]: https://itsfoss.com/wp-content/uploads/2022/11/locate-and-name-the-merged-pdf-file.png +[3]: https://itsfoss.com/content/images/wordpress/2022/11/merge-pdf-files-using-in-ubuntu-1.png +[4]: https://itsfoss.com/content/images/wordpress/2022/11/choose-files-to-merge.png +[5]: https://itsfoss.com/content/images/wordpress/2022/11/click-on-merge-button.png +[6]: https://itsfoss.com/content/images/wordpress/2022/11/locate-and-name-the-merged-pdf-file.png [7]: https://itsfoss.com/pdf-editors-linux/ [8]: https://itsfoss.com/edit-pdf-files-ubuntu-linux/ -[9]: https://itsfoss.com/wp-content/uploads/2022/11/open-pdf-file-in-libreoffice.png -[10]: https://itsfoss.com/wp-content/uploads/2022/11/export-directly-as-pdf-in-libreoffice.png -[11]: https://itsfoss.com/wp-content/uploads/2022/11/save-merged-file-from-libreoffice.png +[9]: https://itsfoss.com/content/images/wordpress/2022/11/open-pdf-file-in-libreoffice.png +[10]: https://itsfoss.com/content/images/wordpress/2022/11/export-directly-as-pdf-in-libreoffice.png +[11]: https://itsfoss.com/content/images/wordpress/2022/11/save-merged-file-from-libreoffice.png [12]: https://itsfoss.com/install-imagemagick-ubuntu/ -[13]: https://itsfoss.com/wp-content/uploads/2022/11/convert-im6.q16-attempt-to-perform-an-operation-not-allowed-by-the-security-policy-pdf-@-error-constitute.c-iscoderauthorized-421.0a.png -[14]: https://itsfoss.com/wp-content/uploads/2022/11/change-policy-in-imagemagick-to-merge-pdf-files.png -[15]: https://itsfoss.com/wp-content/uploads/2022/11/merge-pdf-files-using-imagemagick-in-linux-terminal.png +[13]: https://itsfoss.com/content/images/wordpress/2022/11/convert-im6.q16-attempt-to-perform-an-operation-not-allowed-by-the-security-policy-pdf-@-error-constitute.c-iscoderauthorized-421.0a.png +[14]: https://itsfoss.com/content/images/wordpress/2022/11/change-policy-in-imagemagick-to-merge-pdf-files.png +[15]: https://itsfoss.com/content/images/wordpress/2022/11/merge-pdf-files-using-imagemagick-in-linux-terminal.png [16]: https://itsfoss.com/compress-pdf-linux/ +[0]: https://img.linux.net.cn/data/attachment/album/202304/17/155926wvvvh01v1vtcldd0.jpg \ No newline at end of file