Show TOC

Function documentationPDF Document Locate this document in the navigation structure

 

You can use this SAP Manufacturing Integration and Intelligence action to create an Adobe® portable document format (PDF) document based on the following document properties:

  • Information including title, author, subject, keywords, creator

  • Page size

  • Margins

  • Headers and footers

  • Watermark

You can use the other PDF actions to add content to the document.

Note Note

To save a PDF document, use the Image Saver action to link the PDF document output to the encoded image input of the Image Saver action.

End of the note.

Features

The properties for this action are listed in the following table:

Property

Data Type

Access

Use

Title

String

In and out

Adds a title to the PDF document.

Author

String

In and out

Identifies the author of the PDF document.

Subject

String

In and out

Defines the subject of the PDF document.

Keywords

String

In and out

Creates a comma-separated list of words that identify and describe the PDF document.

Keywords are used when you are searching for PDF documents.

Creator

String

In and out

Refers to the name of the application that created the PDF document

Page Size

String

In and out

Defines the size of the PDF document.

For example, LETTER, 11x17, A0 through A10, LEDGER, LEGAL, and NOTE.

Top Margin

Integer

In and out

Defines the margin in points.

For example, 72 points equals one inch.

Bottom Margin

Integer

In and out

Same as Top Margin.

Left Margin

Integer

In and out

Same as Top Margin.

Right Margin

Integer

In and out

Same as Top Margin.

Watermark Encoded Image

String

In and out

Refers to the image that is used as a watermark.

To load a watermark, you must use the Image Loader action.

Watermark X Location

Watermark Y Location

Integer

In and out

Specifies the X and Y coordinate, respectively, for the watermark.

The coordinate system starts at zero on the lower left-hand corner of the page. If you increase the X coordinate value, the image moves to the right. If you increase the Y coordinate value, the image moves toward the top of the page.

The center of the image is placed at the coordinate (WatermarkXLocation, WatermarkYLocation).

Watermark Center Flag

Boolean

In and out

If you select this checkbox, the system ignores the Watermark X Location and Watermark Y Location and centers the watermark on the page.

Header Text

Footer Text

String

In and out

Defines the header and footer, respectively, on every page of the PDF document.

To display the page number in the header or footer, use the pound symbol in your string. For example, the string "Page #" is displayed as "Page 1".

HeaderFontName

FooterFontName

String

In and out

Identifies the font in the header and footer text, respectively.

The following fonts are available:

  • Helvetica

  • Courier

  • Times New Roman

HeaderFontStyle

FooterFontStyle

Integer

In and out

Defines the style of the header and footer text, respectively.

The following values are available:

  • 0 (normal)

  • 1 (bold)

  • 2 (italic)

  • 3 (bold italic)

  • 4 (underline)

HeaderFontSize

Integer

In and out

Defines the size of the header text.

HeaderAlignment

FooterAlignment

Integer

In and out

Refers to the alignment of the header and footer text, respectively.

The following values are available:

  • 0 (left)

  • 1 (center)

  • 2 (right)

  • 3 (justified)

HeaderTextColor

FooterTextColor

String

In and out

The color of the header and footer text, respectively.

The system accepts the following values:

  • hexadecimal (for example, #F8F8F8)

  • RGB (for example, 255,255,255)

  • HTML (for example, Orange)

HeaderBackgroundColor

FooterBackgroundColor

String

In and out

Identifies the background color of the header and footer, respectively.

The system accepts the same values as in the HeaderTextColor and FooterTextColor above.

Output

XML

In and out

Specifies the XML output.

Success

Boolean

Out

Indicates whether the action succeeded or failed.