How do I split the PDF file into individual pages and output it to a specific target using filename?

Solution Verified - Updated -

Issue

  • Does RHEL contain a command line software that will allow one to batch process PDF files with actions like splitting them in to individual pages?
    For example, consider the following scenario ...
/server/path/my_pdfs/
The PDFs are named:
abc.pdf
123.pdf
xyz.pdf
  • The goal is to take each pdf, split it into individual pages and output it to a specific target path using the file name:
/server/path/output/abc/abc.p1.pdf
/server/path/output/abc/abc.p2.pdf
/server/path/output/123/123.p1.pdf
/server/path/output/123/123.p2.pdf
/server/path/output/123/123.p3.pdf
/server/path/output/xyz/xyz.p1.pdf
/server/path/output/xyz/xyz.p2.pdf
/server/path/output/xyz/xyz.p3.pdf
/server/path/output/xyz/xyz.p4.pdf

Environment

  • Red Hat Enterprise Linux 5.9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.