12:30:01.911 Configuring Sejda 1.0.0.M9
12:30:01.944 Loading Sejda configuration form default sejda.xml
12:30:02.298 Starting execution with arguments: ''
12:30:02.298 Java version: '1.6.0_20'
12:30:02.334 Sejda Console
Basic commands:
alternatemix Given two pdf documents, creates a single output pdf
document taking pages alternatively from the two input.
Pages can be taken in straight or reverse order and using a
configurable step (number of pages before the process switch
from a document to the other).
crop Given a pdf document and a set of rectangular boxes, creates
a single output pdf document where pages are cropped
according to the input rectangular boxes. Input boxes are
set as mediabox and cropbox on the resulting document pages
(see Pdf reference 1.7, chapter 3.6.2, TABLE 3.27).
Resulting document will have a number of pages that is the
the number of pages of the original document multiplied by
the number of rectangular boxes.
decrypt Given a collection of encrypted pdf documents and their
owner password, creates a decrypted version of each of them.
encrypt Given a collection of pdf documents, applies the selected
permission using the selected encryption algorithm and the
provided owner and user password.
extractpages Extract pages from a pdf document creating a new one
containing only the selected pages. Page selection can be
done using a predefined set of pages (odd, even) or as a set
of ranges (from page x to y).
extracttext Given a collection of pdf documents, creates a collection of
text files containing text extracted from them.
extracttextbypages Extracts text from a single pdf document creating a
collection of text files each containing text extracted from
a single page.
merge Given a collection of pdf documents, creates a single output
pdf document composed by the selected pages of each input
document taken in the given order.
pdftojpeg Converts a pdf document to multiple JPEG images (one image
per page).
pdftomultipletiff Converts a pdf document to multiple TIFF images (one image
per page).
pdftosingletiff Converts a pdf document to a single TIFF image (TIFF format
supports multiple images written to a single file).
rotate Apply page rotation to a collection of pdf documents.
Rotation can be applied to a specified set of pages or to a
predefined set (all, even pages, odd pages).
setheaderfooter Adds a header or a footer to a pdf document or part of it.
setmetadata Apply new metadata (title, author, subject, keywords) to an
input pdf document.
setpagelabels Given a collection of pdf documents, applies the selected
page labels as defined in the Pdf reference 1.7, chapter
8.3.1.
setpagetransitions Given a pdf document, applies the selected pages transitions
(to use the document as a slide show presentation) as
defined in the Pdf reference 1.7, chapter 8.3.3.
setviewerpreferences Given a collection of pdf documents, applies the selected
viewer preferences.
simplesplit Splits a given pdf document at a predefined set of page
numbers (all, odd pages, even pages).
splitbybookmarks Splits a given pdf document at pages where exists a GoTo
action in the document outline (bookmarks) at the specified
level (optionally matching a provided regular expression).
splitbypages Splits a given pdf document at a selected set of page
numbers.
splitbysize Splits a given pdf document in files of the selected size
(roughly).
unpack Unpacks all the attachments of a given collection of pdf
documents.
Use "sejda-console <command> -h" for help regarding a specific command
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
root@AA~/Desktop# sejda splitbybookmarks -h
12:34:49.406 Configuring Sejda 1.0.0.M9
12:34:49.426 Loading Sejda configuration form default sejda.xml
12:34:49.602 Starting execution with arguments: 'splitbybookmarks -h'
12:34:49.603 Java version: '1.6.0_20'
12:34:49.731 Splits a given pdf document at pages where exists a GoTo action in the document outline (bookmarks) at the specified level (optionally matching a provided regular expression).
Example usage: sejda-console splitbybookmarks -f /tmp/file1.pdf -o /tmp -l 2 -e ".+(page)+.+"
Usage: sejda-console splitbybookmarks options
--bookmarkLevel -l value : bookmarks depth to split at (required)
[--compressed] : compress output file (optional)
--files -f value... : pdf file to operate on: a single pdf file (EX. -f /tmp/file1.pdf or -f /tmp/password_protected_file2.pdf:secret123) (required)
[--help -h] : prints usage information. Can be used to detail options for a command '-h command' (optional)
[--matchingRegEx -e value] : matching regular expression (optional)
--output -o value : output directory (required)
--outputPrefix -p value : prefix for the output files name (optional)
[--overwrite] : overwrite existing output file (optional)
--pdfVersion -v value : pdf version of the output document/s {2, 3, 4, 5, 6 or 7}. Default is 6. (optional)
12:34:49.732 Completed execution
root@AA:~/Desktop# sejda splitbybookmarks -l 2 -f network_security_assessment.pdf -o /tmp/v
......
12:36:27.401 Copying /tmp/SejdaTmpBuffer8426913372704889757.pdf to /tmp/v/1_network_security_assessment.pdf.
12:36:27.439 Copying /tmp/SejdaTmpBuffer3502200390435164443.pdf to /tmp/v/281_network_security_assessment.pdf.
12:36:27.463 Copying /tmp/SejdaTmpBuffer541789025519119860.pdf to /tmp/v/16_network_security_assessment.pdf.
12:36:27.471 Copying /tmp/SejdaTmpBuffer5516028877892471567.pdf to /tmp/v/365_network_security_assessment.pdf.
12:36:27.480 Copying /tmp/SejdaTmpBuffer6297429870024898751.pdf to /tmp/v/478_network_security_assessment.pdf.
12:36:27.511 Copying /tmp/SejdaTmpBuffer272644174005011566.pdf to /tmp/v/12_network_security_assessment.pdf.
12:36:27.519 Copying /tmp/SejdaTmpBuffer6067042053024564736.pdf to /tmp/v/42_network_security_assessment.pdf.
12:36:27.556 Copying /tmp/SejdaTmpBuffer8196729814049306917.pdf to /tmp/v/223_network_security_assessment.pdf.
12:36:27.573 Copying /tmp/SejdaTmpBuffer4774648322741027255.pdf to /tmp/v/402_network_security_assessment.pdf.
12:36:27.590 Copying /tmp/SejdaTmpBuffer2448914650757354012.pdf to /tmp/v/332_network_security_assessment.pdf.
12:36:27.601 Copying /tmp/SejdaTmpBuffer1875734347475026732.pdf to /tmp/v/67_network_security_assessment.pdf.
12:36:27.612 Copying /tmp/SejdaTmpBuffer3023690242998173322.pdf to /tmp/v/26_network_security_assessment.pdf.
12:36:27.619 Copying /tmp/SejdaTmpBuffer6753402517864048402.pdf to /tmp/v/104_network_security_assessment.pdf.
12:36:27.628 Copying /tmp/SejdaTmpBuffer4369551449809816704.pdf to /tmp/v/126_network_security_assessment.pdf.
12:36:27.663 Copying /tmp/SejdaTmpBuffer1417499938932404653.pdf to /tmp/v/447_network_security_assessment.pdf.
12:36:27.670 Copying /tmp/SejdaTmpBuffer3430043387111490531.pdf to /tmp/v/355_network_security_assessment.pdf.
12:36:27.677 Copying /tmp/SejdaTmpBuffer1592985022828122525.pdf to /tmp/v/35_network_security_assessment.pdf.
12:36:27.684 Copying /tmp/SejdaTmpBuffer1371156714811042396.pdf to /tmp/v/418_network_security_assessment.pdf.
12:36:27.701 Copying /tmp/SejdaTmpBuffer4860924040951698550.pdf to /tmp/v/6_network_security_assessment.pdf.
12:36:27.707 Copying /tmp/SejdaTmpBuffer7355621170636700962.pdf to /tmp/v/185_network_security_assessment.pdf.
12:36:27.732 Copying /tmp/SejdaTmpBuffer4355360455394997284.pdf to /tmp/v/445_network_security_assessment.pdf.
12:36:27.738 Copying /tmp/SejdaTmpBuffer4810551464776472750.pdf to /tmp/v/315_network_security_assessment.pdf.
12:36:27.761 Copying /tmp/SejdaTmpBuffer4847360738580482661.pdf to /tmp/v/440_network_security_assessment.pdf.
12:36:27.775 Copying /tmp/SejdaTmpBuffer71495877397172500.pdf to /tmp/v/264_network_security_assessment.pdf.
12:36:27.789 Input documents splitted and written to /tmp/v