PDFMerger Class Properties

In this section, the PDFMerger class properties are presented in alphabetical order.

Description

Use the ConfProp property to specify an already instantiated and populated Properties object that contains the configuration to be used for processing the document. This property enables you to accommodate different system configurations.

Description

Use the Locale property to specify the locale for the processing. If no value is specified for this property, the default system locale will be used.

The locale is specified using a two character ISO language code and a two character ISO country code (LC-CC). When you don't need to reflect country specific formatting, the locale code is made up of just the language code.

This property is read-write.

Description

Use this property to specify an already instantiated and populated PageNumber object to be used with the merged document.

This property is read-write.

Example

Local PSXP_ENGINE:PDFMerger &oMerger;
Local PSXP_ENGINE:PageNumber &oPageNumber;

&oMerger = create PSXP_ENGINE:PDFMerger();
&oPageNumber = create PSXP_ENGINE:PageNumber();

&oPageNumber.FontName = "Symbol";
&oPageNumber.FontSize = 16;
&oPageNumber.PositionX = 300;
&oPageNumber.PositionY = 20;
&oMerger.oPageNumber = &oPageNumber;

&sErr = "";
&asNames = CreateArray(&sPdfFile1);
&asNames.Push(&sPdfFile2);
&bResult = &oMerger.mergePDFs(&asNames, &sOutputPdfFile, &sErr);

Description

Use this property to specify an already instantiated and populated Watermark object to be used with the merged object.

This property is read-write.

Example

Local PSXP_ENGINE:PDFMerger &oMerger;
Local PSXP_ENGINE:Watermark &oWatermark;

&oMerger = create PSXP_ENGINE:PDFMerger();
&oWatermark = create PSXP_ENGINE:Watermark();

&oWatermark.Text = "DEMO";
&oWatermark.TextStartPosX = 200;
&oWatermark.TextStartPosY = 400;
&oMerger.oWatermark = &oWatermark;

&sErr = "";
&asNames = CreateArray(&sPdfFile1);
&bResult = &oMerger.mergePDFs(&asNames, &sOutputPdfFile, &sErr);