PDFをカラーページと白黒ページに分割

PDFをカラーページと白黒ページに分割

大きなPDF文書を2つのファイルに自動的に分割したいです。あるファイルには白黒コンテンツを含むページのみを含める必要があり、他のファイルにはすべてのカラーコンテンツを含むページのみを含める必要があります。カラーページと白黒ページは連続的ではなく、文書全体に散在しています。これをどのように自動化できますか?

ベストアンサー1

クリス・ロジャースPDFファイルをカラーページと白黒ページに分割するPerlスクリプトを作成しました。スクリプトへのリンクは次のとおりです。pdfcolor-1.2.tgz

このスクリプトがウェブサイトでどのように機能するかについての詳細な説明:

- Perl script
- uses:
– “pscolor” (C, “using GS DLL as a ps colorpage separator”) by Carsten Hammer
– “joinPDF” (Java, “Command line tool to join and split PDF files”, for mac) by Gerard Briscoe
- Has hardcoded paths in shell scripts “splitPDF” and “joinPDF”
- Depends on flex
- Depends on libgs-dev
- GNU GPL 2.0

How it works:
split PDF into single pages in temporary location
use pscolor to detect whether color is on the page
reassemble pages with color and pages without color into two pdf files.

Does not work when adjusting said hardcoded paths.

おすすめ記事