mergepdf

Purpose

Merges two or more PDF files into a single PDF file.

Syntax

Read syntax diagramSkip visual syntax diagram
             .-------------------------.                                  
             V                         |                                  
>>-mergepdf----+--------------+--input-+-- -o--output--+-----+--+-----+-><
               '- -r--scaling-'                        '- -n-'  '- -v-'   

Parameters

-r scaling
Specifies the scaling ratio for the PDF file. This value must be greater than zero and can be either an integer or a floating-point value. If not specified, a ratio of 1.0 is assumed.
input
Specifies the name of a PDF input file, or a directory that contains PDF files.
-o output
Specifies the name of the PDF output file, or a directory to which the merged output is written.
-n
Specifies that PDF files do not get normalized.
-v
Specifies verbose mode, and causes internal and user-specified scaling ratios to be displayed to standard output.

Usage

By default, mergepdf normalizes the files in such a way that every profile has the same overall weighting, and individual counters are scaled accordingly. This procedure is done before applying the user-specified ratio (with -r). When -n is specified, no normalization occurs. If neither -n nor -r is specified, the PDF files are not scaled at all.

You can find mergepdf in /opt/ibm/xlf/16.1.0/bin/.

Example

If you have several PDF files, use the mergepdf command to combine these PDF files into one PDF file. For example, if you produce three PDF files that represent usage patterns that occur 53%, 32%, and 15% of the time respectively, you can use this command:
  mergepdf -r 53 file_path1  -r 32 file_path2  -r 15 file_path3 -o file_path4
where file_path1, file_path2, and file_path3 specify the directories and names of the PDF files that are to be merged, and file_path4 specifies the directory and name of the output PDF file.


Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us