> For the complete documentation index, see [llms.txt](https://docs.apryse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apryse.com/cli/pdf-pagemaster/cmd-options.md).

# Command-Line Summary for PDF PageMaster

Discover the best tips and examples for writing an effective meta description. Learn how to create compelling descriptions that drive clicks and improve your website's SEO ranking. The Apryse CLI stre

{% tabs %}
{% tab title="Shell" %}
{% code lineNumbers="true" %}

```sh
Usage: pagemaster [<options>] file...

OPTIONS:

  -o [ --output ] arg     The output folder used to store modified files. By
                          default, the current working folder will be used to
                          store converted files.

  --subfolders            Process all subfolders.

  --digits arg            The number of digits used in the page number portion
                          of the output filename for split operations.
  -m [ --merge ]          Merge documents, page ranges, or page sets.

  --splice                This option is only relevant when merging pages. It
                          can be used to assemble the new document sequence by
                          interweaving pages from the given list of page
                          sequences.

  -s [ --split ]          Split a PDF document.

  -r [ --remove ]         Remove the given pages of a PDF document.

  -i [ --insert ] arg     Insert the specified document.

  --before arg            used to specify that the file should be inserted
                          before the given page.

  --after arg             used to specify that the file should be inserted
                          after the given page.

  --byfilesize arg        Split a PDF document into files of the given size in
                          KB.

  --bybookmarks arg       Split a PDF document into files based on bookmarks at
                          the given depth or range of depths in the bookmark
                          tree.

  --gettitle              Gets the title of the document.
  --getauthor             Gets the name of the person who created the document.
  --getsubject            Gets the subject of the document.
  --getkeywords           Gets keywords associated with the document.
  --getcreator            Gets document's 'Creator' description.
  --getproducer           Gets document's 'Producer' description.

  --getpagecount          Gets the number of pages in the document.

  --settitle arg          Sets document's 'Title' description.
  --setauthor arg         Sets document's 'Author' description.
  --setsubject arg        Sets document's 'Subject' description.
  --setkeywords arg       Sets document's 'Keywords' description.
  --setcreator arg        Sets document's 'Creator' description.
  --setproducer arg       Sets document's 'Producer' description.

  -p [ --pass ] arg       The password for secured PDF files. Not required if
                          the input document is not secured using the 'open'
                          password.

  -u [ --userpass ] arg   The new user password. The password required to open
                          resulting documents.
  --AES                   Use 128-bit AES (Advanced Encryption Standard)
                          Encryption.
  -w [ --ownerpass ] arg  The new owner/master password. This password is
                          required to adjust permissions settings on resulting
                          documents.
  -d [ --disable ] arg    Permissions are applied to the output PDF if the
                          output document is encrypted. This option accepts a
                          string of permissions flags that should be disabled.
                          The permission string may include the following
                          flags:
                            a - All permissions.
                            p - Printing.
                            m - Changing the document.
                            c - Content copying or extraction.
                            o - Commenting.
                            f - Filling of form fields.
                            x - Content extraction for accessibility.
                            s - Document assembly.
                            h - High quality printing.

  -e [ --enable ] arg     A string of permissions flags (see above) that can be
                          enabled. If there is a conflict with one of flags in
                          'disable' option the permission is not granted.
  --nobookmarks           Do not keep bookmarks.
  -l [ --linearize ]      Linearize output files.
  --reverse               Reverse the page order of output file(s).
  --noprompt              Disables any user input. By default, the application
                          will ask for a valid password if the password is
                          incorrect.

  --extension arg (=.pdf) The default file extension used to process PDF
                          documents. The default extension is ".pdf".

  --verb arg (=1)         Set the verbosity level to 'arg' (0-10).

  -v [ --version ]        Print the version information.

  -h [ --help ]           Print a listing of available options.


Examples:
  pagemaster -m otherpage.pdf "Apryse PDF PageMaster User Manual.pdf" -o out.pdf
  pagemaster -m pages.pdf,1,4,10-5 first.pdf,10-5o -o out.pdf
  pagemaster -s second.pdf -p mypass -o out-dir
  pagemaster -s test_out/ex3,1-5,10-6,3x secret.pdf
  pagemaster -s --bybookmarks 1 bookmarks.pdf -p mypass secret.pdf
```

{% endcode %}
{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.apryse.com/cli/pdf-pagemaster/cmd-options.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
