Home > Applications > mbtPdfAsm > examples

examples

Wednesday 18 July 2007, by tsc

All the versions of this article: [English] [français]

Example 1: order simple assembly

c:\rep1\rep2>mbtPdfAsm -mpage.*\.pdf -dres.pdf

The line above makes it possible to assemble all the files corresponding to the mask page*.pdf in the directory c:\rep1\rep2. These files are assembled alphabetically. The file result of the assembly is recorded in the file res.pdf.

c:\rep1\rep2>mbtPdfAsm -Mpage*.pdf -dres.pdf

Example 2: order recursive assembly

c:\rep1\rep2>mbtPdfAsm -mpage.*\.pdf -dres.pdf -r

The line above makes it possible to assemble all the files corresponding to the mask page*.pdf in the directory c:\rep1\rep2 and its under repertories. These files are assembled alphabetically. The file result of the assembly is recorded in the file res.pdf.

Example 3: order assembly with insertion of outlines

c:\rep1\rep2>mbtPdfAsm -mpage.*\.pdf -dres.pdf -osignets.txt

The line above makes it possible to assemble all the files corresponding to the mask page*.pdf in the directory c:\rep1\rep2. These files are assembled alphabetically. Once the assembled files the application produces the outlines, starting from the file signets.txt, and incorporates them in the file result. The file result of the assembly is recorded in the file res.pdf.

This file comprises 7 outlines of which 5 (1, 3-7) are attached to level 0, i.e. are outlines root. outlines 2 and 3 are under outlines of outline 1.

Among the outlines roots, outline 1 has row 1, outline 4 row 2, outline 5 row 3, outline 6 row 4, and outline 7 row 5.

Among under outlines of outline 1, outline 2 has row 1, outline 3 row 2.

Outline 1 has like cible/destination page 1 of the file res.pdf, outline 2 page 1, outline 3 page 2, outline 4 page 3, outline 5 page 9, outline 6 page 11, and outline 7 page 12.

Outline 1 will be displayed with the title ’ introduction’, outline 2 with the title ’ first page of the introduction’, and so on...

Example 4: extraction command

c:\rep1\rep2>mbtPdfAsm -mpage.*\.pdf -gHFN

This command line allows to get a list of N + 1 lines on the standard output. The first line is a header, naming the columns. Each of the following line comprises the name of a file (F), and the number of pages of this file (N). The fields are separated by ’;’.

Example 5: update command

c:\rep1\rep2>mbtPdfAsm -mpage.*\.pdf -u -sAThierry_SCHMIT -cRp -cOpassword

This command line allows to update the files matching the mask. The author of this file is now ’Thierry SCHMIT’, the printing is restricted, the password to setup the restrictions is ’password’.