Package org.jpedal.tools
Class PdfMergeAttributes
java.lang.Object
org.jpedal.tools.PdfMergeAttributes
Class to hold resource values to be used by the PdfMerge tool
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAttribute names used on the command line These attributes control the appearance and features of the various Pdf Merge options -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the name of the font to be used in newly created content from the PdfMerge MergeOptionsintGet the size of the font to be used in newly created content from the PdfMerge MergeOptionsintGet the height of the footer to be created in newly created content from the PdfMerge MergeOptionsGet the template used by ADD_FOOTER MergeOption.float[]Get the color of the text to be used in newly created content from the PdfMerge MergeOptionsvoidsetFontName(String name) Specify the font to use for new content created by PdfMerge MergeOptions.voidsetFontSize(int size) Specify the font size to use for new content created by PdfMerge MergeOptions.voidsetFooterHeight(int height) Specify the height of any footer generate created by PdfMerge MergeOptions.voidsetFooterTemplate(String template) Specify a template to be used with the ADD_FOOTER MergeOption.voidsetTextColor(float[] color) Specify the text color to use for new content created by PdfMerge MergeOptions.
-
Constructor Details
-
PdfMergeAttributes
public PdfMergeAttributes()
-
-
Method Details
-
setFontName
Specify the font to use for new content created by PdfMerge MergeOptions.- Parameters:
name- the name of the base font to use. SeeBaseFont
-
setFontSize
public void setFontSize(int size) Specify the font size to use for new content created by PdfMerge MergeOptions.- Parameters:
size- the font size to use when creating text
-
setTextColor
public void setTextColor(float[] color) Specify the text color to use for new content created by PdfMerge MergeOptions.- Parameters:
color- the color for text content as an array of 3 values to represent an RGB color The values must be between 0 - 1.
-
getFontName
Get the name of the font to be used in newly created content from the PdfMerge MergeOptions- Returns:
- a String representing the name of the font to be used
-
getFontSize
public int getFontSize()Get the size of the font to be used in newly created content from the PdfMerge MergeOptions- Returns:
- an int representing the font size to be used
-
getTextColor
public float[] getTextColor()Get the color of the text to be used in newly created content from the PdfMerge MergeOptions- Returns:
- A float array of 3 values between 0 - 1 that represent an RGB color
-