Package org.jpedal.manipulator
Class AddText
java.lang.Object
org.jpedal.manipulator.AddText
- All Implemented Interfaces:
org.jpedal.manipulator.Manipulation
Adds text to a document.
See PdfManipulator.addText(int, String, float, float, String, int, float, float, float)
-
Constructor Summary
ConstructorsConstructorDescriptionAddText(PageRanges pages, String text, float x, float y, String baseFontName, int fontSize, float r, float g, float b) Adds text to the specified page.AddText(PageRanges pages, String text, float x, float y, String baseFontName, int fontSize, float r, float g, float b, float a) Adds text to the specified page.AddText(PageRanges pages, String text, float x, float y, String baseFontName, int fontSize, float r, float g, float b, float a, float theta) Adds text to the specified page. -
Method Summary
-
Constructor Details
-
AddText
public AddText(PageRanges pages, String text, float x, float y, String baseFontName, int fontSize, float r, float g, float b) Adds text to the specified page.This method only supports strings using WinAnsiEncoding.
- Parameters:
pages- the pages to draw text ontext- the text to drawx- the horizontal starting position of the texty- the vertical starting position of the textbaseFontName- the name of the base font to use. SeeBaseFontfontSize- the font size of the textr- the red color componentg- the green color componentb- the blue color component- Implementation Note:
- a
nullvalue may be passed forpagesif and only if the caller is only callingapplyPage(AnnotInfo, ResourceCache, int)and notapply(AnnotInfo, ResourceCache).
-
AddText
public AddText(PageRanges pages, String text, float x, float y, String baseFontName, int fontSize, float r, float g, float b, float a) Adds text to the specified page.This method only supports strings using WinAnsiEncoding.
- Parameters:
pages- the pages to draw text ontext- the text to drawx- the horizontal starting position of the texty- the vertical starting position of the textbaseFontName- the name of the base font to use. SeeBaseFontfontSize- the font size of the textr- the red color componentg- the green color componentb- the blue color componenta- the transparency component- Implementation Note:
- a
nullvalue may be passed forpagesif and only if the caller is only callingapplyPage(AnnotInfo, ResourceCache, int)and notapply(AnnotInfo, ResourceCache).
-
AddText
public AddText(PageRanges pages, String text, float x, float y, String baseFontName, int fontSize, float r, float g, float b, float a, float theta) Adds text to the specified page.This method only supports strings using WinAnsiEncoding.
- Parameters:
pages- the pages to draw text ontext- the text to drawx- the horizontal starting position of the texty- the vertical starting position of the textbaseFontName- the name of the base font to use. SeeBaseFontfontSize- the font size of the textr- the red color componentg- the green color componentb- the blue color componenta- the transparency componenttheta- the angle that the text will be drawn at, in degrees- Implementation Note:
- a
nullvalue may be passed forpagesif and only if the caller is only callingapplyPage(AnnotInfo, ResourceCache, int)and notapply(AnnotInfo, ResourceCache).
-