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 TypeMethodDescriptionReturns the name of the font to be used in newly created content from the PdfMerge MergeOptions.intReturns the size of the font to be used in newly created content from the PdfMerge MergeOptions.intReturns the height of the footer to be created in newly created content from the PdfMerge MergeOptions.Returns the template used by the ADD_FOOTER MergeOption, detailing what content to add to the newly created footer.float[]Returns the color of the text to be used in newly created content from the PdfMerge MergeOptions, as 3 values between 0 - 1 that represent an RGB color.voidsetFontName(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
Returns the name of the font to be used in newly created content from the PdfMerge MergeOptions.- Returns:
- the name of the font to be used in newly created content from the PdfMerge MergeOptions
-
getFontSize
public int getFontSize()Returns the size of the font to be used in newly created content from the PdfMerge MergeOptions.- Returns:
- the size of the font to be used in newly created content from the PdfMerge MergeOptions
-
getTextColor
public float[] getTextColor()Returns the color of the text to be used in newly created content from the PdfMerge MergeOptions, as 3 values between 0 - 1 that represent an RGB color.- Returns:
- the color of the text to be used in newly created content from the PdfMerge MergeOptions, as 3 values between 0 - 1 that represent an RGB color
-