Gnostice PDFOne
Pro. Ed. v1.41


com.gnostice.pdfone
Class PdfDocument

java.lang.Object
  extended bycom.gnostice.pdfone.PdfStdDocument
      extended bycom.gnostice.pdfone.PdfProDocument
          extended bycom.gnostice.pdfone.PdfDocument
All Implemented Interfaces:
Usable

public class PdfDocument
extends com.gnostice.pdfone.PdfProDocument


Field Summary
static int ALIGNMENT_CENTER
           
static int ALIGNMENT_LEFT
           
static int ALIGNMENT_RIGHT
           
 boolean autoPaginate
          Document property determining whether a new page will be automatically appended when content written to current page starts overflowing the page's confines.
static int MERGE_INCLUDE_ALL
           
static int MERGE_INCLUDE_ANNOTATIONS
           
static int MERGE_INCLUDE_BOOKMARKS
           
static int MERGE_INCLUDE_DOCUMENT_ACTIONS
           
static int MERGE_INCLUDE_FORMFIELDS
           
static int MERGE_INCLUDE_PAGE_ACTIONS
           
static String VERSION_1_4
          PDF version 1.4
static String VERSION_1_5
          PDF version 1.5
static String VERSION_1_6
          PDF version 1.6
 
Fields inherited from interface com.gnostice.pdfone.Usable
INCHES_TO_POINTS, MM_TO_INCHES, MM_TO_POINTS, PDF_A, PDF_AA, PDF_AC, PDF_ACROFORM, PDF_ACTION, PDF_ALTERNATEPRESENTATIONS, PDF_ANNOT, PDF_ANNOT_DEFAULT_TITLE, PDF_ANNOT_NAME, PDF_ANNOT_SUBJECT, PDF_ANNOTS, PDF_AP, PDF_ARRAYEND, PDF_ARRAYSTART, PDF_ARTBOX, PDF_AS, PDF_ASCENT, PDF_ASCII85, PDF_ASCII85_NEW, PDF_ASCIIHEX, PDF_ASCIIHEX_NEW, PDF_AUTHOR, PDF_AVGWIDTH, PDF_B, PDF_BASEFONT, PDF_BBOX, PDF_BC, PDF_BE, PDF_BEFOREFORMAT, PDF_BEGINTEXT, PDF_BG, PDF_BINARYDATA, PDF_BITS_PER_COMPONENT, PDF_BL, PDF_BLEEDBOX, PDF_BLINDS, PDF_BMC, PDF_BORDER, PDF_BOX, PDF_BS, PDF_BTN, PDF_C, PDF_CA, PDF_CA_SMALL, PDF_CAPHEIGHT, PDF_CARETANNOT, PDF_CARRIAGE, PDF_CATALOG, PDF_CENTER_WINDOW, PDF_CH, PDF_CID_TO_GID_MAP, PDF_CIDFONT_TYPE1, PDF_CIDFONT_TYPE2, PDF_CIDSYSTEM_INFO, PDF_CIRCLEANNOT, PDF_CL, PDF_CM, PDF_COLOMNS, PDF_COLOR, PDF_COLORSPACE, PDF_CONTENTS, PDF_COUNT, PDF_COVER, PDF_CREATIONDATE, PDF_CREATOR, PDF_CROPBOX, PDF_CS, PDF_CSP, PDF_D, PDF_DA, PDF_DATE, PDF_DATE_FORMAT, PDF_DCTDECODE, PDF_DCTDECODE_NEW, PDF_DECODEPARMS, PDF_DESC, PDF_DESCENDANT, PDF_DESCENDANT_FONTS, PDF_DESCENT, PDF_DESTINATION, PDF_DESTS, PDF_DEVICE_CMYK, PDF_DEVICE_GRAY, PDF_DEVICE_RGB, PDF_DI, PDF_DICTEND, PDF_DICTSTART, PDF_DIRECTION, PDF_DISPLAY_DOCTITLE, PDF_DISPLAY_DURATION, PDF_DISSOLVE, PDF_DM, PDF_DOC_SUBJECT, PDF_DOS, PDF_DP, PDF_DR, PDF_DS, PDF_DV, PDF_DW, PDF_E, PDF_EF, PDF_EMBEDDEDFILE, PDF_EMBEDDEDFILES, PDF_EMC, PDF_ENCODING, PDF_ENCRYPT, PDF_ENDOBJ, PDF_ENDPATH, PDF_ENDSTREAM, PDF_ENDTEXT, PDF_EOCLIP, PDF_EOF, PDF_EXTGSTATE, PDF_F, PDF_FADE, PDF_FALSE, PDF_FDESCRIPTOR, PDF_FIELD_FLAG, PDF_FIELDS, PDF_FILEATTACHMENTANNOT, PDF_FILESPEC, PDF_FILTER, PDF_FIRST, PDF_FIRST_PAGE, PDF_FIRSTCHAR, PDF_FIT, PDF_FIT_WINDOW, PDF_FITB, PDF_FITBH, PDF_FITBV, PDF_FITH, PDF_FITR, PDF_FITV, PDF_FIXEDPRINT, PDF_FLAGS, PDF_FLATE, PDF_FLATE_NEW, PDF_FLY, PDF_FO, PDF_FONT, PDF_FONTBBOX, PDF_FONTFILE, PDF_FONTFILE_2, PDF_FontFile_3, PDF_FONTNAME, PDF_FONTNAMEPREFIX, PDF_FORM, PDF_FORMFEED, PDF_FORMFONTPREFIX, PDF_FREE_TEXT_TYPEWRITER, PDF_FREETEXTANNOT, PDF_FS, PDF_FT, PDF_FULLSCREEN, PDF_GLITTER, PDF_GOTO_ACTION, PDF_GROUP, PDF_GS, PDF_H, PDF_HEADER, PDF_HEIGHT, PDF_HEXSTRINGEND, PDF_HEXSTRINGSTART, PDF_HIDE_MENUBAR, PDF_HIDE_TOOLBAR, PDF_HIDE_WINDOWUI, PDF_HORIZ_STEM, PDF_HORIZONTAL, PDF_I, PDF_IC, PDF_ID, PDF_IDS, PDF_IF, PDF_IMAGE, PDF_IMAGEB, PDF_IMAGEC, PDF_IMAGEI, PDF_IMPORTDATA, PDF_INDEX, PDF_INDEXED, PDF_INFO, PDF_INK, PDF_INKLIST, PDF_INWARD, PDF_IT, PDF_ITALANGLE, PDF_IX, PDF_JAVASCRIPT, PDF_JAVASCRIPT_ACTION, PDF_JS, PDF_KEYSTROKE, PDF_KEYWORDS, PDF_KIDS, PDF_L, PDF_L2R, PDF_LANG, PDF_LAST, PDF_LAST_PAGE, PDF_LASTCHAR, PDF_LAUNCH_ACTION, PDF_LE, PDF_LEGAL, PDF_LENGTH, PDF_LENGTH_1, PDF_LENGTH_2, PDF_LENGTH_3, PDF_LF, PDF_LINEANNOT, PDF_LINKANNOT, PDF_LITERALSTRINGEND, PDF_LITERALSTRINGSTART, PDF_LZWDECODE, PDF_M, PDF_MAC, PDF_MARKINFO, PDF_MAXLEN, PDF_MAXWIDTH, PDF_MEDIABOX, PDF_METADATA, PDF_MISSINGWIDTH, PDF_MK, PDF_MODDATE, PDF_N, PDF_NAME, PDF_NAMED, PDF_NAMED_ACT_FIND, PDF_NAMED_ACT_OPEN, PDF_NAMED_ACT_PRINT, PDF_NAMED_ACT_SEARCH, PDF_NAMES, PDF_NAMESTART, PDF_NEEDAPPEARANCES, PDF_NEWLINE, PDF_NEWWINDOW, PDF_NEXT, PDF_NEXT_PAGE, PDF_NO_COMP_OBJ, PDF_NONFULLSCREEN_PAGEMODE, PDF_NULL, PDF_O, PDF_OBJ, PDF_OBJSTREAM, PDF_OCPROPERTIES, PDF_OFF, PDF_ONECOLUMN, PDF_OPEN, PDF_OPEN_ACTION, PDF_OPT, PDF_OUTLINES, PDF_OUTPUTINTENTS, PDF_OUTWARD, PDF_P, PDF_PAGE, PDF_PAGECLOSE, PDF_PAGEINVISIBLE, PDF_PAGELABELS, PDF_PAGELAYOUT, PDF_PAGEMODE, PDF_PAGEOPEN, PDF_PAGES, PDF_PAGEVISIBLE, PDF_PAINT_TYPE, PDF_PARAMS, PDF_PARENT, PDF_PATTERN, PDF_PATTERN_TYPE, PDF_PBD, PDF_PC, PDF_PDC, PDF_PDF, PDF_PERMS, PDF_PFD, PDF_PH, PDF_PIECEINFO, PDF_POLYGONANNOT, PDF_POLYLINEANNOT, PDF_POPUP, PDF_PREDICTOR, PDF_PREV, PDF_PREV_PAGE, PDF_PROCSET, PDF_PRODUCER, PDF_PROPERTIES, PDF_PUSH, PDF_PV, PDF_Q, PDF_QUADPOINTS, PDF_R, PDF_R2L, PDF_RC, PDF_RD, PDF_RE, PDF_RECALCULATE, PDF_RECT, PDF_REMOTEGOTO_ACTION, PDF_RENDITIONS, PDF_REPLACE, PDF_RESET_FORM, PDF_RESOURCES, PDF_RESTORE_GS, PDF_RI, PDF_ROOT, PDF_ROTATE, PDF_RUNLENGTH, PDF_RUNLENGTH_NEW, PDF_S, PDF_SCN, PDF_SHADING, PDF_SHOWIMG, PDF_SHOWTEXT, PDF_SINGLE_QUOTES, PDF_SINGLEPAGE, PDF_SIZE, PDF_SP, PDF_SPIDERINFO, PDF_SPLIT, PDF_SQUAREANNOT, PDF_SS, PDF_STAMPANNOT, PDF_STARTXREF, PDF_STORE_GS, PDF_STREAM, PDF_STRUCT_TREE, PDF_SUBMIT_FORM, PDF_SUBTYPE, PDF_T, PDF_TAB, PDF_TEMPLATES, PDF_TEXT, PDF_TEXTANNOT, PDF_TEXTDIMENSION, PDF_TEXTFONT, PDF_TEXTLEAD, PDF_TEXTMATRIX, PDF_TEXTNEWLINESTART, PDF_TEXTRENDER, PDF_TEXTWIDTH, PDF_THREADS, PDF_THUMB, PDF_TILING_TYPE, PDF_TITLE, PDF_TM, PDF_TOUNICODE, PDF_TP, PDF_TRAILER, PDF_TRANSITION, PDF_TRIMBOX, PDF_TRUE, PDF_TRUETYPE, PDF_TU, PDF_TWOCOLUMN_LEFT, PDF_TWOCOLUMN_RIGHT, PDF_TWOPAGE_LEFT, PDF_TWOPAGE_RIGHT, PDF_TX, PDF_TYPE, PDF_TYPE0, PDF_TYPE1, PDF_U, PDF_UNCOVER, PDF_UNIX, PDF_URI_ACTION, PDF_URL, PDF_URLS, PDF_USEATTACHMENTS, PDF_USENONE, PDF_USEOC, PDF_USEOUTLINES, PDF_USETHUMBS, PDF_V, PDF_VALUECHANGE, PDF_VERSION, PDF_VERT_STEM, PDF_VERTICAL, PDF_VERTICES, PDF_VIEWER_PREFERENCES, PDF_W, PDF_WATERMARKANNOT, PDF_WIDGET, PDF_WIDTH, PDF_WIDTHS, PDF_WINANSIENCODING, PDF_WIPE, PDF_X, PDF_XOBJECT, PDF_XREF, PDF_XREFSTMOFFSET, PDF_XREFSTREAM, PDF_XSTEP, PDF_XYZ, PDF_YES, PDF_YSTEP, PIXEL_PER_INCH, RUBICON_EMBEDDED, SITE, TEXT, TWIPS_TO_POINTS
 
Constructor Summary
PdfDocument(PdfReader r)
           
PdfDocument(PdfWriter w)
           
 
Method Summary
 void add(PdfPage p)
          Adds specified PdfPage to this PdfDocument.
 void add(PdfPage p, boolean setAsCurrentPage)
          Adds specified PdfPage to this PdfDocument and, if setAsCurrentPage is true, sets the PdfPage as the PdfDocument's current page.
 void addAction(int namedAction)
          Sets this document to execute action specified by namedAction when the document is displayed.
 void addAction(int event, int actionType, String javascript)
           
 void addAction(int actionType, String javascriptOrURI)
          Sets this document to execute action specified by javascriptOrURI when the document is displayed.
 void addAction(int actionType, String applicationToLaunch, boolean isPrint, String parameterToApplication)
           
 void addAnnotation(PdfAnnot annotation, int pageNo)
           
 void addAnnotationList(List annotList, int pageNo)
           
 void addAnnotationList(List annotList, int pageNo, boolean removeExistingAnnots)
           
 void addAnnotationList(List annotList, String[] pageRanges, boolean removeExistingAnnots, int measurementUnit)
           
 void addAnnotationList(List annotList, String[] pageRanges, int measurementUnit)
           
 PdfBookmark addBookmark(int namedAction, String title, PdfBookmark parent)
          Returns a new bookmark that performs specified action and is added as a child bookmark under parent with specified title.
 PdfBookmark addBookmark(String title, PdfBookmark parent, int pageNo)
          Returns a new bookmark that leads to specified page and is added as a child bookmark under parent with specified title.
 PdfBookmark addBookmark(String title, PdfBookmark parent, int pageNo, double left, double top, double zoom)
          Returns a new bookmark that leads to position (left, top) on specified page, displays the page with specified zoom, and is added as a child bookmark under parent with specified title.
 PdfBookmark addBookmark(String title, PdfBookmark parent, int pageNo, double x, double y, double width, double height)
           
 PdfBookmark addBookmark(String title, PdfBookmark parent, int pageNo, double pos, int fit)
          Returns a new bookmark that leads to a destination specified by pageNo, pos and fit, and is added as a child bookmark under parent with specified title.
 PdfBookmark addBookmark(String title, PdfBookmark parent, int pageNo, int fit)
          Returns a new bookmark that leads to specified page, displays the page so as to fit entire height and weight of its bounding box inside window, and is added to as a child bookmark under parent with specified title.
 PdfBookmark addBookmark(String title, PdfBookmark parent, int pageNo, PdfRect rect)
          Returns a new bookmark that leads to specified rectangle on specified page and is added as a child bookmark under parent with specified title.
 PdfBookmark addBookmark(String title, PdfBookmark parent, int pageNo, Rectangle rect)
          Returns a new bookmark that leads to specified rectangular area on specified page and is added as a child bookmark under parent with specified title.
 PdfBookmark addBookmark(String title, PdfBookmark parent, String applicationToLaunch, boolean print)
           
 PdfBookmark addBookmark(String title, PdfBookmark parent, String javascriptOrURI, int actionType)
           
 PdfBookmark addBookmark(String title, PdfBookmark parent, String pdfFileName, int pageNo, boolean newWindow)
           
 void addDefaultFormFont(PdfFont font)
           
 void addDefaultFormFontList(List fontList)
           
 void addFooterImage(PdfImage img, int position, boolean underlay, String pageRange)
          Adds PdfImage object to footer of pages in specified page range.
 void addFooterImage(String path, int position, boolean underlay, String pageRange)
          Adds image, specified by its pathname, to footer of pages in specified page range.
 void addFooterText(String text, PdfFont font, int position, boolean underlay, String pageRange)
          Adds specified text to footer of pages in specified page range.
 void addFormField(PdfFormField formField, int pageNo)
           
 void addFormField(PdfFormField f, String[] pageRanges)
           
 void addFormFieldList(List formFieldList, int pageNo)
           
 void addHeaderImage(PdfImage img, int position, boolean underlay, String pageRange)
          Adds a PdfImage object to header of pages in specified page range.
 void addHeaderImage(String path, int position, boolean underlay, String pageRange)
          Adds image, specified by its pathname, to footer of pages in specified page range.
 void addHeaderText(String text, PdfFont font, int position, boolean underlay, String pageRange)
          Adds specified text to header of pages in specified page range.
 void addTable(PdfTable table, double x, double y, int pageNo)
           
 void addThumbnailImage(String path, int pageNo)
           
 void addToFiltersList(int filter)
          Adds a filter to the list of filters used to encode stream objects in this document.
 void addWatermarkImage(PdfImage image, int position, boolean applyPageMargins, double angle, boolean underlay, String pageRange)
          Adds PdfImage object as watermark with its exact position determined by position and applyPageMargins.
 void addWatermarkImage(PdfImage image, int position, double angle, boolean underlay, String pageRange)
          Adds PdfImage object as watermark on pages in specified page range.
 void addWatermarkImage(String path, int position, boolean applyPageMargins, double angle, boolean underlay, String pageRange)
          Adds image, specified by its pathname, as watermark with its exact position determined by position and applyPageMargins on pages in specified page range.
 void addWatermarkImage(String path, int position, double angle, boolean underlay, String pageRange)
          Adds image, specified by its pathname, as watermark on pages in specified page range.
 void addWatermarkText(String text, PdfFont font, int position, boolean applyPageMargins, double angle, boolean underlay, String pageRange)
          Adds specified text as watermark with its exact position determined by position and applyPageMargins on pages in specified page range.
 void addWatermarkText(String text, PdfFont font, int position, double angle, boolean underlay, String pageRange)
          Adds specified text as watermark on pages in specified page range.
 void appendPagesFrom(PdfDocument d, String pageRange)
           
 void appendPagesFrom(String path, String pageRange)
           
 void attachDocument(String fileName)
           
 void deleteFormFields()
           
 void deleteFormFields(int type)
           
 void deleteFormFields(String name)
           
 void deleteFormFieldsOnPage(int pageNo)
           
 void deleteFormFieldsOnPage(int pageNo, int type)
           
 void deleteFormFieldsOnPage(int pageNo, String name)
           
 void deletePages(String pageRange)
          Deletes pages in specified page range from this PdfDocument.
 void disableAllMargins(String pageRange)
          Disables all margins on pages in specified page range.
 void drawArc(PdfRect rect, double startAngle, double arcAngle)
          Draws an arc on the current page of this PdfDocument.
 void drawArc(PdfRect rect, double startAngle, double arcAngle, String pageRange)
          Draws an arc on pages in specified page range.
 void drawBezierCurve(double startX, double startY, double ctrlX, double ctrlY, double endX, double endY, boolean isFill, boolean isStroke)
          Draws a Bézier curve with a single control point on current page of this PdfDocument.
 void drawBezierCurve(double startX, double startY, double ctrlX, double ctrlY, double endX, double endY, boolean isFill, boolean isStroke, String pageRange)
          Draws a Bézier curve with a single control point on pages in specified page range in this PdfDocument.
 void drawBezierCurve(double startX, double startY, double ctrlX1, double ctrlY1, double ctrlX2, double ctrlY2, double endX, double endY, boolean isFill, boolean isStroke)
          Draws a Bézier curve with two control points on current page of this PdfDocument.
 void drawBezierCurve(double startX, double startY, double ctrlX1, double ctrlY1, double ctrlX2, double ctrlY2, double endX, double endY, boolean isFill, boolean isStroke, String pageRange)
          Draws a Bézier curve with two control points on pages in specified page range on this PdfDocument.
 void drawCircle(double x, double y, double radius, boolean isFill, boolean isStroke)
          Draws a circle with specified radius on this PdfDocument's current page.
 void drawCircle(double x, double y, double radius, boolean isFill, boolean isStroke, String pageRange)
          Draws a circle with specified radius on pages in specified page range on this PdfDocument.
 void drawEllipse(double x1, double y1, double x2, double y2, boolean isFill, boolean isStroke)
          Draws an ellipse on this PdfDocument's current page.
 void drawEllipse(double x1, double y1, double x2, double y2, boolean isFill, boolean isStroke, String pageRange)
          Draws an ellipse on pages in specified page range on this PdfDocument's current page.
 void drawImage(PdfImage img, double x, double y)
          Draws specified image at position (x, y) on this PdfDocument's current page.
 void drawImage(PdfImage img, double x, double y, double rotation)
          Draws specified image rotated by rotation degrees at position (x, y) on this PdfDocument's current page.
 void drawImage(PdfImage img, double x, double y, double width, double height)
          Draws specified image at position (x, y) with specified height and width on this PdfDocument's current page.
 void drawImage(PdfImage img, double x, double y, double width, double height, double rotation)
          Draws specified image rotated by rotation degrees at position (x, y) with specified height and width on this PdfDocument's current page.
 void drawImage(PdfImage img, double x, double y, double width, double height, double rotation, String pageRange)
          Draws specified image rotated by rotation degrees at position (x, y) with specified height and width on pages in specified page range.
 void drawImage(PdfImage img, double x, double y, double width, double height, String pageRange)
          Draws specified image at position (x, y) with specified height and width on pages in specified page range.
 void drawImage(PdfImage img, double x, double y, double rotation, String pageRange)
          Draws specified image rotated by rotation degrees at position (x, y) on pages in specified page range.
 void drawImage(PdfImage img, double x, double y, String pageRange)
          Draws specified image at position (x, y) on pages in specified page range.
 void drawImage(PdfImage img, PdfPoint pt)
          Draws specified image at specified point on this PdfDocument's current page.
 void drawImage(PdfImage img, PdfPoint pt, double rotation)
          Draws specified image rotated by rotation degrees at specified point on this PdfDocument's current page.
 void drawImage(PdfImage img, PdfPoint pt, double width, double height)
          Draws specified image at specified point with specified width and height on this PdfDocument's current page.
 void drawImage(PdfImage img, PdfPoint pt, double width, double height, double rotation)
          Draws specified image rotated by rotation degrees at specified point on this PdfDocument's current page.
 void drawImage(PdfImage img, PdfPoint pt, double width, double height, double rotation, String pageRange)
          Draws specified image rotated by rotation degrees at specified point with specified width and height on pages in the specified page range.
 void drawImage(PdfImage img, PdfPoint pt, double width, double height, String pageRange)
          Draws specified image at specified point with specified width and height on pages in the specified page range.
 void drawImage(PdfImage img, PdfPoint pt, double rotation, String pageRange)
          Draws specified image rotated by rotation degrees at specified point on pages in the specified page range.
 void drawImage(PdfImage img, PdfPoint pt, String pageRange)
          Draws specified image at specified point on pages in specified page range.
 void drawImage(PdfImage img, PdfRect rect)
          Draws specified image inside specified rectangle on this PdfDocument's current page.
 void drawImage(PdfImage img, PdfRect rect, double rotation)
          Draws specified image rotated by rotation degrees inside specified rectangle on this PdfDocument's current page.
 void drawImage(PdfImage img, PdfRect rect, double rotation, String pageRange)
          Draws specified image rotated by rotation degrees inside specified rectangle on pages in specified range.
 void drawImage(PdfImage img, PdfRect rect, String pageRange)
          Draws specified image inside specified rectangle on pages in specified page range.
 void drawImage(String path, double x, double y)
          Draws image specified by its pathname at position (x, y) on this PdfDocument's current page.
 void drawImage(String path, double x, double y, double rotation)
          Draws image specified by its pathname rotated at rotation degrees at position (x, y) on this PdfDocument's current page.
 void drawImage(String path, double x, double y, double width, double height)
          Draws image specified by its pathname at position (x, y) with specified width and height on this PdfDocument's current page.
 void drawImage(String path, double x, double y, double width, double height, double rotation)
          Draws image specified by its pathname rotated by rotation degrees at position (x, y) with specified width and height on this PdfDocument's current page.
 void drawImage(String path, double x, double y, double width, double height, double rotation, String pageRange)
          Draws image specified by its pathname rotated by rotation degrees at position (x, y) with specified width and height on pages in specified page range.
 void drawImage(String path, double x, double y, double width, double height, String pageRange)
          Draws image specified by its pathname at position (x, y)with specified width and height on pages in specified page range.
 void drawImage(String path, double x, double y, double rotation, String pageRange)
          Draws image specified by its pathname rotated by rotation degrees at position (x, y)on pages in specified range.
 void drawImage(String path, double x, double y, String pageRange)
          Draws image specified by its pathname at position (x, y) on pages in specified page range.
 void drawImage(String path, PdfPoint pt)
          Draws image specified by its pathname at specified point on this PdfDocument's current page.
 void drawImage(String path, PdfPoint pt, double rotation)
          Draws image specified by its pathname rotated by rotation degrees at specified point on this PdfDocument's current page.
 void drawImage(String path, PdfPoint pt, double width, double height)
          Draws image specified by its pathname at specified point with specified width and height on this PdfDocument's current page.
 void drawImage(String path, PdfPoint pt, double width, double height, double rotation)
          Draws image specified by its pathname rotated by rotation degrees at specified point with specified width and height on this PdfDocument's current page.
 void drawImage(String path, PdfPoint pt, double width, double height, double rotation, String pageRange)
          Draws image specified by its pathname rotated by rotation degrees at specified position with specified width and height on pages in specified page range.
 void drawImage(String path, PdfPoint pt, double width, double height, String pageRange)
          Draws image specified by its pathname at specified position with specified width and height on pages in specified range.
 void drawImage(String path, PdfPoint pt, double rotation, String pageRange)
          Draws image specified by its pathname rotated by rotation degrees at specified point on pages in specified range.
 void drawImage(String path, PdfPoint pt, String pageRange)
          Draws image specified by its pathname at specified point on pages in specified page range.
 void drawImage(String path, PdfRect rect)
          Draws image specified by its pathname inside specified rectangle on this PdfDocument's current page.
 void drawImage(String path, PdfRect rect, double rotation)
          Draws image specified by its pathname rotated by rotation degrees inside specified rectangle on this PdfDocument's current page.
 void drawImage(String path, PdfRect rect, double rotation, String pageRange)
          Draws image specified by its pathname rotated by rotation degrees inside specified rectangle on pages in specified page range.
 void drawImage(String path, PdfRect rect, String pageRange)
          Draws image specified by its pathname inside specified rectangle on pages in specified page range.
 void drawLine(double startx, double starty, double endx, double endy)
          Draws a line between position (startx, starty) and (endx, endy) on this PdfDocument's current page.
 void drawLine(double startx, double starty, double endx, double endy, String pageRange)
          Draws a line between position (startx, starty) and (endx, endy) on pages in specified page range.
 void drawLine(PdfPoint start, PdfPoint end)
          Draws a line from start to end on this PdfDocument's current page.
 void drawLine(PdfPoint start, PdfPoint end, String pageRange)
          Draws a line from start to end on pages in specified page range.
 void drawPie(double x, double y, double width, double height, double startAngle, double arcAngle, boolean isFill, boolean isStroke, String pageRange)
          Draws a pie segment on pages in specified page range.
 void drawPie(int x, int y, int width, int height, double startAngle, double arcAngle, boolean isFill, boolean isStroke)
          Draws a pie segment on this PdfDocument's current page.
 void drawPolygon(double[] xPoints, double[] yPoints, int nPoints, boolean isFill, boolean isStroke)
          Draws a polygon on this PdfDocument's current page.
 void drawPolygon(double[] xPoints, double[] yPoints, int nPoints, boolean isFill, boolean isStroke, String pageRange)
          Draws a polygon on pages in specified page range.
 void drawPolyline(double[] xPoints, double[] yPoints, int nPoints)
          Draws a polyline on this PdfDocument's current page.
 void drawPolyline(double[] xPoints, double[] yPoints, int nPoints, String pageRange)
          Draws a polyline on pages in specified page range.
 void drawRect(double x, double y, double width, double height)
          Draws a rectangle at position (x, y) with specified width and height on this PdfDocument's current page.
 void drawRect(double x, double y, double width, double height, boolean isFill, boolean isStroke)
          Draws a rectangle on this PdfDocument's current page at position (x, y) with specified width, height, pen, and brush settings.
 void drawRect(double x, double y, double width, double height, boolean isFill, boolean isStroke, String pageRange)
          Draws a rectangle on pages in specified page range page at position (x, y) with specified width, height, brush, and pen settings.
 void drawRect(double x, double y, double width, double height, String pageRange)
          Draws a rectangle at position (x, y) with specified width and height on pages in specified page range.
 void drawRect(PdfRect r)
          Draws rectangle r on this PdfDocument's current page.
 void drawRect(PdfRect r, String pageRange)
          Draws specified PdfRect object on pages in specified page range.
 void drawRect(Rectangle r)
          Draws specified Rectangle object on this PdfDocument's current page.
 void drawRect(Rectangle r, String pageRange)
          Draws specified Rectangle object on pages in specified page range.
 void drawRoundRect(double x, double y, double width, double height, double arcWidth, double arcHeight, boolean isFill, boolean isStroke)
          Draws a rectangle with rounded corners on this PdfDocument's current page.
 void drawRoundRect(double x, double y, double width, double height, double arcWidth, double arcHeight, boolean isFill, boolean isStroke, String pageRange)
          Draws a rectangle with rounded corners on pages in specified page range.
 void drawSquare(double x, double y, double length)
          Draws a square on this PdfDocument's current page.
 void drawSquare(double x, double y, double length, boolean isFill, boolean isStroke)
          Draws a square with specified brush and pen settings on this PdfDocument's current page.
 void drawSquare(double x, double y, double length, boolean isFill, boolean isStroke, String pageRange)
          Draws a square with specified pen and brush settings on pages in specified page range.
 void drawSquare(double x, double y, double length, String pageRange)
          Draws a square on pages in specified page range.
 void enableAllMargins(String pageRange)
          Enables all margins on pages in specified page range.
 void exportToFDF(File fdfFile)
           
 void extractPagesTo(String path, String pageRange)
          Extracts pages in specified page range and places them in a file specified by its pathname.
 void extractPagesTo(String path, String pageRange, String extractAsVersion, boolean openAfterExtraction)
          Extracts pages in specified page range in specified PDF version and places them in a new file specified by its pathname.
 void flattenFormFields()
           
 void flattenFormFields(boolean flattenWithNewValue)
           
 void flattenFormFields(int type)
           
 void flattenFormFields(int type, boolean flattenWithNewValue)
           
 void flattenFormFields(String name)
           
 void flattenFormFields(String name, boolean flattenWithNewValue)
           
 void flattenFormFieldsOnPage(int pageNo)
           
 void flattenFormFieldsOnPage(int pageNo, boolean flattenWithNewValue)
           
 void flattenFormFieldsOnPage(int pageNo, int type)
           
 void flattenFormFieldsOnPage(int pageNo, int type, boolean flattenWithNewValue)
           
 void flattenFormFieldsOnPage(int pageNo, String name)
           
 void flattenFormFieldsOnPage(int pageNo, String name, boolean flattenWithNewValue)
           
 List getAllAnnotations()
           
 List getAllAnnotations(int type)
           
 void getAllAnnotations(int type, List listToPopulate)
           
 void getAllAnnotations(List listToPopulate)
           
 List getAllAnnotationsOnPage(int pageNo)
           
 List getAllAnnotationsOnPage(int pageNo, int type)
           
 void getAllAnnotationsOnPage(int pageNo, int type, List listToPopulate)
           
 void getAllAnnotationsOnPage(int pageNo, List listToPopulate)
           
 List getAllFormFields()
           
 List getAllFormFields(int type)
           
 List getAllFormFields(String name)
           
 List getAllFormFieldsOnPage(int pageNo)
           
 List getAllFormFieldsOnPage(int pageNo, int type)
           
 List getAllFormFieldsOnPage(int pageNo, String name)
           
 ArrayList getAttachments()
           
 PdfBookmark getBookmarkRoot()
          Returns a PdfBookmark object that points to the root of the bookmark tree of this PdfDocument.
 int getCompressionLevel()
          Returns constant identifying compression level of this Pdfdocument.
 int getDefaultFieldAlignment()
           
 Color getDefaultFormFontColor()
           
 List getDefaultFormFontList()
           
 PdfEncryption getEncryptor()
          Retrieves current encryption settings of this PdfDocument.
 PdfBookmark getFirstBookmark()
          Returns first bookmark in this PdfDocument's document outline.
 int getMeasurementUnit()
          Returns default measurement unit currently in use for this PdfDocument.
 PdfPage getPage(int pageNo)
          Returns a PdfPage object specified by page number in this document.
 int getPageCount()
          Returns number of pages in this PdfDocument.
 int getPageLayout()
          Returns constant identifying page layout used as default when opening this document.
 int getPageMode()
          Returns constant identifying this PdfDocument's default page mode.
 PdfReader getReader()
          Returns PdfReader object currently used with this PdfDocument.
 String getVersion()
          Returns constant identifying this PdfDocument's PDF version.
 int getViewerPreferences()
           
 PdfWriter getWriter()
          Returns PdfWriter object currently used with this PdfDocument.
 File getWriterOutputFile()
           
 String getXMLMetadata()
          Returns XML metadata of this PdfDocument.
 void importFromFDF(File fileName)
           
 void insertPagesFrom(com.gnostice.pdfone.PdfStdDocument d, String pageRange, int insertAfterPage)
           
 void insertPagesFrom(String path, String pageRange, int insertAfterPage)
           
 boolean isAutoAdjustFieldTextHeight()
           
 boolean isOpenAfterSave()
          Returns whether document is set to be executed after data is saved to file.
 boolean isOverrideFieldAppearanceStreams()
           
 void merge(List docList)
           
 void merge(List docList, int mergeOptions)
           
 void merge(PdfDocument d)
           
 void merge(PdfDocument d, int mergeOptions)
           
 void merge(String path)
           
 void merge(String path, int mergeOptions)
           
 void removeThumbnailImage(String pageRange)
           
 void setAuthor(String s)
          Specifies author entry to be used in this PdfDocument's document information dictionary.
 void setAutoAdjustFieldTextHeight(boolean autoAdjustFieldTextHeight)
           
 void setBrushColor(Color c)
          Specifies default color for this PdfDocument's brush.
 void setCompressionLevel(int compressionLevel)
          Specifies compression level for this PdfDocument.
 void setDefaultFieldAlignment(int defualtFieldAlignment)
           
 void setDefaultFormFontColor(Color defaultFormFontColor)
           
 void setDefaultFormFontIndex(int defaultFormFontIndex)
           
 void setDefaultFormFontList(List fontList)
           
 void setEncryptor(PdfEncryption encrypto)
          Specify encryption settings for this PdfDocument.
 void setKeywords(String s)
          Specifies keywords entry to be used in this PdfDocument's document information dictionary.
 void setMeasurementUnit(int measurementUnit)
          Specifies default measurement unit to be used for this PdfDocument.
 void setOnBookmarkMerge(PdfBookmarkMergeHandler onBookmarkMerge)
           
 void setOnNeedFileName(PdfNeedFileNameHandler pnfnh)
           
 void setOnRenameField(PdfFormFieldRenameHandler pfrh)
           
 void setOpenAfterSave(boolean openAfterSave)
          Specifies whether document needs to be executed after data is saved to file.
 void setOverrideFieldAppearanceStreams(boolean overrideAppearanceStreams)
           
 void setPageLayout(int value)
          Specifies default page layout to be used when opening this document.
 void setPageMode(int value)
          Specifies default page mode with which this PdfDocument needs to be opened.
 void setPenCapStyle(int capStyle)
          Specifies default shape of endpoints of paths in this PdfDocument.
 void setPenColor(Color color)
          Specifies default color for this PdfDocument's pen.
 void setPenDashGap(double gap)
          Specifies length of gaps in default dash pattern of this PdfDocument's pen.
 void setPenDashLength(double length)
          Specifies length of dashes in default dash pattern of this PdfDocument's pen.
 void setPenDashPhase(double phase)
          Specifies length of phase of default dash pattern of this PdfDocument's pen.
 void setPenJoinStyle(int joinStyle)
          Specifies default shape of joints of paths that connect at an angle for this PdfDocument's pen.
 void setPenMiterLimit(int limit)
          Specifies default miter limit for this PdfDocument's pen.
 void setPenWidth(double width)
          Specifies default width for this PdfDocument's pen.
 void setPrintAfterSave(boolean printAfterSave)
           
 void setProducer(String s)
          Specifies producer entry to be used in this PdfDocument's document information dictionary.
 void setReader(PdfReader r)
          Specifies PdfReader object to be used with this PdfDocument.
 void setSubject(String s)
          Specifies subject entry to be used in this PdfDocument's document information dictionary.
 void setTitle(String s)
          Specifies title entry to be used in this PdfDocument's document information dictionary.
 void setVersion(String version)
          Specifies PDF version of this PdfDocument.
 void setViewerPreferences(int value)
           
 void setWriter(PdfWriter w)
          Specifies PdfWriter object to be used with this PdfDocument.
 void split(int pages)
           
 void split(String pageRange)
           
 void stitch(int stitchToPageNo, int stitchFromPageNo, double offsetX, double offsetY)
           
 long write()
          Saves contents in this PdfDocument to the PdfDocument's output stream or file and returns number of bytes that was saved.
 void writeText(String str)
          Writes specified text at current position on this PdfDocument's current page.
 void writeText(String str, boolean wrap)
          Writes specified text with specified wrap setting at current position on this PdfDocument's current page.
 void writeText(String str, boolean wrap, String pageRange)
          Writes specified text with specified wrap setting at current position on pages in specified page range.
 void writeText(String str, double x, double y)
          Writes specified text at position (x, y) on this PdfDocument's current page.
 void writeText(String str, double x, double y, boolean wrap)
          Writes specified text with specified wrap setting at position (x, y) on this PdfDocument's current page.
 void writeText(String str, double x, double y, boolean wrap, String pageRange)
          Writes specified text with specified wrap setting at position (x, y) on pages in specified page range.
 void writeText(String str, double x, double y, double rotation)
          Writes specified text rotated by rotation degrees at position (x, y) on this PdfDocument's current page.
 void writeText(String str, double x, double y, double rotation, String pageRange)
          Writes specified text rotated by rotation degrees at position (x, y) on pages in specified page range.
 void writeText(String str, double x, double y, int alignment)
          Writes specified text with specified alignment at position (x, y) on this PdfDocument's current page.
 void writeText(String str, double x, double y, int alignment, boolean wrap)
          Writes specified text with specified alignment and wrap setting at position (x, y) on this PdfDocument's current page.
 void writeText(String str, double x, double y, int alignment, boolean wrap, String pageRange)
          Writes specified text with specified alignment and wrap setting at position (x, y) on pages in specified page range.
 void writeText(String str, double x, double y, int alignment, String pageRange)
          Writes specified text with specified alignment at position (x, y) on pages in specified range.
 void writeText(String str, double x, double y, String pageRange)
          Writes specified text at position (x, y) on pages in specified page range.
 void writeText(String str, int alignment)
          Writes specified text with specified alignment at current position on this PdfDocument's current page.
 void writeText(String str, int alignment, boolean wrap)
          Writes specified text with specified alignment and specified wrap setting at current position on this PdfDocument's current page.
 void writeText(String str, int alignment, boolean wrap, String pageRange)
          Writes specified text with specified alignment and wrap setting at current position on pages in specified page range.
 void writeText(String str, int alignment, String pageRange)
          Writes specified text with specified alignment at current position on pages in specified page range.
 void writeText(String str, PdfFont f)
          Writes specified text with specified font on this PdfDocument's current page.
 void writeText(String str, PdfFont f, boolean wrap)
          Writes specified text with specified wrap setting and font on this PdfDocument's current page.
 void writeText(String str, PdfFont f, boolean wrap, String pageRange)
          Writes specified text with specified font and wrap setting on pages in specified page range.
 void writeText(String str, PdfFont f, double x, double y)
          Writes specified text with specified font at position (x, y) on this PdfDocument's current page.
 void writeText(String str, PdfFont f, double x, double y, boolean wrap)
          Writes specified text with specified font and wrap setting at position (x, y) on this PdfDocument's current page.
 void writeText(String str, PdfFont f, double x, double y, boolean wrap, String pageRange)
          Writes specified text with specified font and wrap setting at position (x, y) on pages in specified page range.
 void writeText(String str, PdfFont f, double x, double y, double rotation)
          Writes specified text rotated by rotation degrees with specified font at position (x, y) on this PdfDocument's current page.
 void writeText(String str, PdfFont f, double x, double y, double rotation, String pageRange)
          Writes specified text rotated by rotation degrees with specified font at position (x, y) on pages in specified page range.
 void writeText(String str, PdfFont f, double x, double y, String pageRange)
          Writes specified text with specified font at position (x, y) on pages in specified page range.
 void writeText(String str, PdfFont f, int alignment)
          Writes specified text with specified font and alignment on this PdfDocument's current page.
 void writeText(String str, PdfFont f, int alignment, boolean wrap)
          Writes specified text with specified font, alignment, and wrap setting on this PdfDocument's current page.
 void writeText(String str, PdfFont f, int alignment, boolean wrap, String pageRange)
          Writes specified text with specified font, alignment and wrap setting on pages in specified page range.
 void writeText(String str, PdfFont f, int alignment, double x, double y)
          Writes specified text with specified font and alignment at position (x, y) on this PdfDocument's current page.
 void writeText(String str, PdfFont f, int alignment, double x, double y, boolean wrap)
          Writes specified text with specified font, alignment, and wrapping at position (x, y) on this PdfDocument's current page.
 void writeText(String str, PdfFont f, int alignment, double x, double y, boolean wrap, String pageRange)
          Writes specified text with specified font, alignment, and wrapping at position (x, y) on pages in specified page range.
 void writeText(String str, PdfFont f, int alignment, double x, double y, String pageRange)
          Writes specified text with specified font and alignment at position (x, y) on pages in specified page range.
 void writeText(String str, PdfFont f, int alignment, PdfPoint pt)
          Writes specified text with specified font and alignment at specified point on this PdfDocument's current page.
 void writeText(String str, PdfFont f, int alignment, PdfPoint pt, boolean wrap)
          Writes specified text with specified font, alignment, and wrap setting at specified point on this PdfDocument's current page.
 void writeText(String str, PdfFont f, int alignment, PdfPoint pt, boolean wrap, String pageRange)
          Writes specified text with specified font, alignment, and wrap setting at specified point on pages in specified page range.
 void writeText(String str, PdfFont f, int alignment, PdfPoint pt, String pageRange)
          Writes specified text with specified font and alignment at specified point on pages in specified page range.
 void writeText(String str, PdfFont f, int alignment, String pageRange)
          Writes specified text with specified font and alignment on pages in specified page range.
 void writeText(String str, PdfFont f, PdfPoint pt)
          Writes specified text with specified font at specified point on this PdfDocument's current page.
 void writeText(String str, PdfFont f, PdfPoint pt, boolean wrap)
          Writes text str with specified font and wrap setting at specified point on this PdfDocument's current page.
 void writeText(String str, PdfFont f, PdfPoint pt, boolean wrap, String pageRange)
          Writes text str with specified font and wrap setting at specified point on pages in specified page range.
 void writeText(String str, PdfFont f, PdfPoint pt, double rotation)
          Writes text str rotated by rotation degrees with specified font at specified point on this PdfDocument's current page.
 void writeText(String str, PdfFont f, PdfPoint pt, double rotation, String pageRange)
          Writes text str rotated by rotation degrees with specified font at specified point on pages in specified page range.
 void writeText(String str, PdfFont f, PdfPoint pt, String pageRange)
          Writes specified text with specified font at specified point on pages in specified page range.
 void writeText(String str, PdfFont f, PdfRect rectangle)
          Writes specified text with specified font inside specified rectangle on this PdfDocument's current page.
 void writeText(String str, PdfFont f, PdfRect rectangle, double rotation, double firstLinePosition)
          Writes specified text rotated by rotation degrees with specified font and first-line position inside specified rectangle on this PdfDocument's current page.
 void writeText(String str, PdfFont f, PdfRect rectangle, double rotation, double firstLinePosition, String pageRange)
          Writes specified text rotated by rotation degrees with specified font and first-line position inside specified rectangle on pages in specified page range.
 void writeText(String str, PdfFont f, PdfRect rectangle, int alignment)
          Writes specified text with specified alignment and font inside specified rectangle on this PdfDocument's current page.
 void writeText(String str, PdfFont f, PdfRect rectangle, int alignment, double rotation, double firstLinePosition)
          Writes specified text rotated by rotation degrees with specified alignment, first-line position, and font inside specified rectangle on this PdfDocument's current page.
 void writeText(String str, PdfFont f, PdfRect rectangle, int alignment, double rotation, double firstLinePosition, String pageRange)
          Writes specified text rotated by rotation degrees with specified alignment, first-line position, and font inside specified rectangle on pages in specified page range.
 void writeText(String str, PdfFont f, PdfRect rectangle, int alignment, String pageRange)
          Writes specified text with specified font and alignment inside specified rectangle on pages in specified page range.
 void writeText(String str, PdfFont f, PdfRect rectangle, String pageRange)
          Writes specified text with specified font inside specified rectangle on pages in specified page range.
 void writeText(String str, PdfFont f, String pageRange)
          Writes specified text with specified font on pages in specified page range.
 void writeText(String str, PdfPoint pt)
          Writes specified text at specified point on this PdfDocument's current page.
 void writeText(String str, PdfPoint pt, boolean wrap)
          Writes text str with specified wrap setting at point pt on this PdfDocument's current page.
 void writeText(String str, PdfPoint pt, boolean wrap, String pageRange)
          Writes text str with specified wrap setting at point pt on pages in specified page range.
 void writeText(String str, PdfPoint pt, double rotation)
          Writes text str, rotated by rotation degrees, at point pt on this PdfDocument's current page.
 void writeText(String str, PdfPoint pt, double rotation, String pageRange)
          Writes text str, rotated rotation degrees, at point pt on pages in specified page range.
 void writeText(String str, PdfPoint pt, int alignment, boolean wrap)
          Writes text str with specified alignment and wrap setting at point pt on this PdfDocument's current page.
 void writeText(String str, PdfPoint pt, int alignment, boolean wrap, String pageRange)
          Writes text str with specified alignment and wrap setting at point pt on pages in specified page range.
 void writeText(String str, PdfPoint pt, String pageRange)
          Writes specified text at specified point on pages in specified page range.
 void writeText(String str, PdfRect rectangle)
          Writes specified text inside specified rectangle on this PdfDocument's current page.
 void writeText(String str, PdfRect rectangle, double rotation, double firstLinePosition)
          Writes specified text rotated by rotation degrees with specified first-line position inside specified rectangle on this PdfDocument's current page.
 void writeText(String str, PdfRect rectangle, double rotation, double firstLinePosition, String pageRange)
          Writes specified text rotated by rotation degrees with specified first-line position inside specified rectangle on pages in specified page range.
 void writeText(String str, PdfRect rectangle, int alignment)
          Writes specified text with specfied text alignment on this PdfDocument's current page.
 void writeText(String str, PdfRect rectangle, int alignment, double rotation, double firstLinePosition)
          Writes specified text rotated by rotation degrees with specified first-line position inside specified rectangle on this PdfDocument's current page.
 void writeText(String str, PdfRect rectangle, int alignment, double rotation, double firstLinePosition, String pageRange)
          Writes specified text rotated by rotation degrees with specified alignment and first-line position inside specified rectangle on pages in specified page range.
 void writeText(String str, PdfRect rectangle, int alignment, String pageRange)
          Writes specified text with specified alignment inside specified rectangle on pages in specified page range.
 void writeText(String str, PdfRect rectangle, String pageRange)
          Writes specified text inside specified rectangle on pages in specified page range.
 void writeText(String str, Point pt, int alignment)
           
 void writeText(String str, Point pt, int alignment, String pageRange)
           
 void writeText(String str, String pageRange)
          Writes specified text at current position on pages in specified page range.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALIGNMENT_LEFT

public static final int ALIGNMENT_LEFT
See Also:
Constant Field Values

ALIGNMENT_CENTER

public static final int ALIGNMENT_CENTER
See Also:
Constant Field Values

ALIGNMENT_RIGHT

public static final int ALIGNMENT_RIGHT
See Also:
Constant Field Values

VERSION_1_4

public static final String VERSION_1_4
PDF version 1.4

See Also:
Constant Field Values

VERSION_1_5

public static final String VERSION_1_5
PDF version 1.5

See Also:
Constant Field Values

VERSION_1_6

public static final String VERSION_1_6
PDF version 1.6

See Also:
Constant Field Values

MERGE_INCLUDE_ANNOTATIONS

public static final int MERGE_INCLUDE_ANNOTATIONS
See Also:
Constant Field Values

MERGE_INCLUDE_BOOKMARKS

public static final int MERGE_INCLUDE_BOOKMARKS
See Also:
Constant Field Values

MERGE_INCLUDE_DOCUMENT_ACTIONS

public static final int MERGE_INCLUDE_DOCUMENT_ACTIONS
See Also:
Constant Field Values

MERGE_INCLUDE_PAGE_ACTIONS

public static final int MERGE_INCLUDE_PAGE_ACTIONS
See Also:
Constant Field Values

MERGE_INCLUDE_FORMFIELDS

public static final int MERGE_INCLUDE_FORMFIELDS
See Also:
Constant Field Values

MERGE_INCLUDE_ALL

public static final int MERGE_INCLUDE_ALL
See Also:
Constant Field Values

autoPaginate

public boolean autoPaginate
Document property determining whether a new page will be automatically appended when content written to current page starts overflowing the page's confines.

Constructor Detail

PdfDocument

public PdfDocument(PdfWriter w)
            throws PdfException

PdfDocument

public PdfDocument(PdfReader r)
            throws IOException,
                   PdfException
Method Detail

getViewerPreferences

public int getViewerPreferences()

setViewerPreferences

public void setViewerPreferences(int value)

addTable

public void addTable(PdfTable table,
                     double x,
                     double y,
                     int pageNo)
              throws PdfException,
                     IOException
Throws:
PdfException
IOException

stitch

public void stitch(int stitchToPageNo,
                   int stitchFromPageNo,
                   double offsetX,
                   double offsetY)
            throws PdfException,
                   IOException
Throws:
PdfException
IOException

attachDocument

public void attachDocument(String fileName)

getAttachments

public ArrayList getAttachments()
                         throws IOException,
                                PdfException
Throws:
IOException
PdfException

addThumbnailImage

public void addThumbnailImage(String path,
                              int pageNo)
                       throws IOException,
                              PdfException
Throws:
IOException
PdfException

removeThumbnailImage

public void removeThumbnailImage(String pageRange)
                          throws PdfException
Throws:
PdfException

addAnnotation

public void addAnnotation(PdfAnnot annotation,
                          int pageNo)
                   throws PdfException
Throws:
PdfException

addAnnotationList

public void addAnnotationList(List annotList,
                              int pageNo)
                       throws PdfException
Throws:
PdfException

addAnnotationList

public void addAnnotationList(List annotList,
                              int pageNo,
                              boolean removeExistingAnnots)
                       throws PdfException
Throws:
PdfException

addAnnotationList

public void addAnnotationList(List annotList,
                              String[] pageRanges,
                              boolean removeExistingAnnots,
                              int measurementUnit)
                       throws PdfException
Throws:
PdfException

addAnnotationList

public void addAnnotationList(List annotList,
                              String[] pageRanges,
                              int measurementUnit)
                       throws PdfException
Throws:
PdfException

addDefaultFormFont

public void addDefaultFormFont(PdfFont font)

addDefaultFormFontList

public void addDefaultFormFontList(List fontList)

addFormField

public void addFormField(PdfFormField formField,
                         int pageNo)
                  throws PdfException
Throws:
PdfException

addFormField

public void addFormField(PdfFormField f,
                         String[] pageRanges)
                  throws PdfException
Throws:
PdfException

addFormFieldList

public void addFormFieldList(List formFieldList,
                             int pageNo)
                      throws PdfException
Throws:
PdfException

deleteFormFields

public void deleteFormFields()
                      throws IOException,
                             PdfException
Throws:
IOException
PdfException

deleteFormFields

public void deleteFormFields(int type)
                      throws IOException,
                             PdfException
Throws:
IOException
PdfException

deleteFormFields

public void deleteFormFields(String name)
                      throws IOException,
                             PdfException
Throws:
IOException
PdfException

deleteFormFieldsOnPage

public void deleteFormFieldsOnPage(int pageNo)
                            throws IOException,
                                   PdfException
Throws:
IOException
PdfException

deleteFormFieldsOnPage

public void deleteFormFieldsOnPage(int pageNo,
                                   int type)
                            throws IOException,
                                   PdfException
Throws:
IOException
PdfException

deleteFormFieldsOnPage

public void deleteFormFieldsOnPage(int pageNo,
                                   String name)
                            throws IOException,
                                   PdfException
Throws:
IOException
PdfException

exportToFDF

public void exportToFDF(File fdfFile)
                 throws IOException,
                        PdfException
Throws:
IOException
PdfException

flattenFormFields

public void flattenFormFields()
                       throws IOException,
                              PdfException
Throws:
IOException
PdfException

flattenFormFields

public void flattenFormFields(boolean flattenWithNewValue)
                       throws IOException,
                              PdfException
Throws:
IOException
PdfException

flattenFormFields

public void flattenFormFields(int type)
                       throws IOException,
                              PdfException
Throws:
IOException
PdfException

flattenFormFields

public void flattenFormFields(int type,
                              boolean flattenWithNewValue)
                       throws IOException,
                              PdfException
Throws:
IOException
PdfException

flattenFormFields

public void flattenFormFields(String name)
                       throws IOException,
                              PdfException
Throws:
IOException
PdfException

flattenFormFields

public void flattenFormFields(String name,
                              boolean flattenWithNewValue)
                       throws IOException,
                              PdfException
Throws:
IOException
PdfException

flattenFormFieldsOnPage

public void flattenFormFieldsOnPage(int pageNo)
                             throws IOException,
                                    PdfException
Throws:
IOException
PdfException

flattenFormFieldsOnPage

public void flattenFormFieldsOnPage(int pageNo,
                                    boolean flattenWithNewValue)
                             throws IOException,
                                    PdfException
Throws:
IOException
PdfException

flattenFormFieldsOnPage

public void flattenFormFieldsOnPage(int pageNo,
                                    int type)
                             throws IOException,
                                    PdfException
Throws:
IOException
PdfException

flattenFormFieldsOnPage

public void flattenFormFieldsOnPage(int pageNo,
                                    int type,
                                    boolean flattenWithNewValue)
                             throws IOException,
                                    PdfException
Throws:
IOException
PdfException

flattenFormFieldsOnPage

public void flattenFormFieldsOnPage(int pageNo,
                                    String name)
                             throws IOException,
                                    PdfException
Throws:
IOException
PdfException

flattenFormFieldsOnPage

public void flattenFormFieldsOnPage(int pageNo,
                                    String name,
                                    boolean flattenWithNewValue)
                             throws IOException,
                                    PdfException
Throws:
IOException
PdfException

getAllAnnotations

public List getAllAnnotations()
                       throws IOException,
                              PdfException
Throws:
IOException
PdfException

getAllAnnotations

public List getAllAnnotations(int type)
                       throws IOException,
                              PdfException
Throws:
IOException
PdfException

getAllAnnotations

public void getAllAnnotations(int type,
                              List listToPopulate)
                       throws IOException,
                              PdfException
Throws:
IOException
PdfException

getAllAnnotations

public void getAllAnnotations(List listToPopulate)
                       throws IOException,
                              PdfException
Throws:
IOException
PdfException

getAllAnnotationsOnPage

public List getAllAnnotationsOnPage(int pageNo)
                             throws PdfException,
                                    IOException
Throws:
PdfException
IOException

getAllAnnotationsOnPage

public List getAllAnnotationsOnPage(int pageNo,
                                    int type)
                             throws PdfException,
                                    IOException
Throws:
PdfException
IOException

getAllAnnotationsOnPage

public void getAllAnnotationsOnPage(int pageNo,
                                    int type,
                                    List listToPopulate)
                             throws PdfException,
                                    IOException
Throws:
PdfException
IOException

getAllAnnotationsOnPage

public void getAllAnnotationsOnPage(int pageNo,
                                    List listToPopulate)
                             throws IOException,
                                    PdfException
Throws:
IOException
PdfException

getAllFormFields

public List getAllFormFields()
                      throws IOException,
                             PdfException
Throws:
IOException
PdfException

getAllFormFields

public List getAllFormFields(int type)
                      throws IOException,
                             PdfException
Throws:
IOException
PdfException

getAllFormFields

public List getAllFormFields(String name)
                      throws IOException,
                             PdfException
Throws:
IOException
PdfException

getAllFormFieldsOnPage

public List getAllFormFieldsOnPage(int pageNo)
                            throws IOException,
                                   PdfException
Throws:
IOException
PdfException

getAllFormFieldsOnPage

public List getAllFormFieldsOnPage(int pageNo,
                                   int type)
                            throws IOException,
                                   PdfException
Throws:
IOException
PdfException

getAllFormFieldsOnPage

public List getAllFormFieldsOnPage(int pageNo,
                                   String name)
                            throws IOException,
                                   PdfException
Throws:
IOException
PdfException

getDefaultFieldAlignment

public int getDefaultFieldAlignment()

getDefaultFormFontColor

public Color getDefaultFormFontColor()

getDefaultFormFontList

public List getDefaultFormFontList()

importFromFDF

public void importFromFDF(File fileName)
                   throws IOException,
                          PdfException
Throws:
IOException
PdfException

isAutoAdjustFieldTextHeight

public boolean isAutoAdjustFieldTextHeight()

isOverrideFieldAppearanceStreams

public boolean isOverrideFieldAppearanceStreams()

setAutoAdjustFieldTextHeight

public void setAutoAdjustFieldTextHeight(boolean autoAdjustFieldTextHeight)

setDefaultFieldAlignment

public void setDefaultFieldAlignment(int defualtFieldAlignment)

setDefaultFormFontColor

public void setDefaultFormFontColor(Color defaultFormFontColor)

setDefaultFormFontIndex

public void setDefaultFormFontIndex(int defaultFormFontIndex)

setDefaultFormFontList

public void setDefaultFormFontList(List fontList)

setOverrideFieldAppearanceStreams

public void setOverrideFieldAppearanceStreams(boolean overrideAppearanceStreams)

getEncryptor

public PdfEncryption getEncryptor()
Retrieves current encryption settings of this PdfDocument.

Returns:
a PdfEncryption object identifying the current encryption settings of the document
Since:
1.0
See Also:
PdfStdDocument.setEncryptor(PdfEncryption)
Sample Code
See example.

setEncryptor

public void setEncryptor(PdfEncryption encrypto)
                  throws PdfException
Specify encryption settings for this PdfDocument.

Parameters:
encrypto - PdfEncryption specifying the encryption settings for the document
Throws:
PdfException - if an illegal argument is supplied.
Since:
1.0
See Also:
PdfStdDocument.getEncryptor()
Sample Code
See example.

getPageMode

public int getPageMode()
Returns constant identifying this PdfDocument's default page mode. This page mode is applied by default when the document is opened in a viewer application.

Returns:
constant identifying page mode
Since:
1.0
See Also:
PdfStdDocument.setPageMode(int), PdfPageMode
Sample Code
See example.

setPageMode

public void setPageMode(int value)
Specifies default page mode with which this PdfDocument needs to be opened.

Parameters:
value - constant specifying page mode
Since:
1.0
See Also:
PdfStdDocument.getPageMode(), PdfPageMode
Sample Code
See example.

getPageLayout

public int getPageLayout()
Returns constant identifying page layout used as default when opening this document.

Returns:
constant identifying the page layout
Since:
1.0
See Also:
PdfStdDocument.setPageLayout(int), PdfPageLayout
Sample Code
See example.

setPageLayout

public void setPageLayout(int value)
Specifies default page layout to be used when opening this document.

Parameters:
value - constant specifying the page layout
Since:
1.0
See Also:
PdfStdDocument.getPageLayout(), PdfPageLayout
Sample Code
See example.

addAction

public void addAction(int actionType,
                      String applicationToLaunch,
                      boolean isPrint,
                      String parameterToApplication)
               throws IOException,
                      PdfException
Throws:
IOException
PdfException

addAction

public void addAction(int actionType,
                      String javascriptOrURI)
               throws IOException,
                      PdfException
Sets this document to execute action specified by javascriptOrURI when the document is displayed.

Parameters:
actionType - constant specifying the type of action that needs to be executed
javascriptOrURI - Javascript statement or Uniform Resource Indicator (URI) that needs to be executed
Throws:
IOException - if an illegal argument is supplied.
PdfException - if an I/O error occurs.
Since:
1.0
See Also:
PdfAction.JAVASCRIPT, PdfAction.URI
Sample Code
See example.

addAction

public void addAction(int event,
                      int actionType,
                      String javascript)
               throws IOException,
                      PdfException
Throws:
IOException
PdfException

addAction

public void addAction(int namedAction)
Sets this document to execute action specified by namedAction when the document is displayed.

namedAction Effect
PdfAction.NAMED_FIRSTPAGE Navigation to the first page
PdfAction.NAMED_LASTPAGE Navigation to the last page
PdfAction.NAMED_NEXTPAGE Navigation to the next page
PdfAction.NAMED_PREVPAGE Navigation to the previous page

Parameters:
namedAction - constant specifying the action to be executed when the document is displayed
Since:
1.0
See Also:
PdfAction
Sample Code
See example.

setTitle

public void setTitle(String s)
Specifies title entry to be used in this PdfDocument's document information dictionary.

Parameters:
s - title entry to be used in the document information dictionary
Since:
1.0
Sample Code
See example.

setAuthor

public void setAuthor(String s)
Specifies author entry to be used in this PdfDocument's document information dictionary.

Parameters:
s - author entry to be used in the document information dictionary
Since:
1.0
Sample Code
See example.

setSubject

public void setSubject(String s)
Specifies subject entry to be used in this PdfDocument's document information dictionary.

Parameters:
s - author entry to be used in the document information dictionary
Since:
1.0
Sample Code
See example.

setKeywords

public void setKeywords(String s)
Specifies keywords entry to be used in this PdfDocument's document information dictionary.

Parameters:
s - keywords entry to be used in the document information dictionary
Since:
1.0
Sample Code
See example.

setProducer

public void setProducer(String s)
Specifies producer entry to be used in this PdfDocument's document information dictionary.

Parameters:
s - producer entry to be used in the document information dictionary
Since:
1.0
Sample Code
See example.

write

public long write()
           throws IOException,
                  PdfException
Saves contents in this PdfDocument to the PdfDocument's output stream or file and returns number of bytes that was saved.

Returns:
number of bytes that was saved to the output stream or file
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

getMeasurementUnit

public int getMeasurementUnit()
Returns default measurement unit currently in use for this PdfDocument.

Returns:
constant identifying the current default measurement unit
Since:
1.0
See Also:
PdfStdDocument.setMeasurementUnit(int), PdfMeasurement
Sample Code
See example.

setMeasurementUnit

public void setMeasurementUnit(int measurementUnit)
Specifies default measurement unit to be used for this PdfDocument.

Parameters:
measurementUnit - constant specifying the new default measurement unit
Since:
1.0
See Also:
PdfStdDocument.getMeasurementUnit(), PdfMeasurement
Sample Code
See example.

getCompressionLevel

public int getCompressionLevel()
Returns constant identifying compression level of this Pdfdocument.

Returns:
constant identifying the compression level
Since:
1.0
See Also:
PdfStdDocument.setCompressionLevel(int), PdfFlateFilter
Sample Code
See example.

setCompressionLevel

public void setCompressionLevel(int compressionLevel)
Specifies compression level for this PdfDocument.

Parameters:
compressionLevel - constant specifying the compression level
Since:
1.0
See Also:
PdfStdDocument.getCompressionLevel(), PdfFlateFilter
Sample Code
See example.

getVersion

public String getVersion()
Returns constant identifying this PdfDocument's PDF version.

Returns:
constant identifying PDF version
Since:
1.0
Sample Code
See example.

setVersion

public void setVersion(String version)
Specifies PDF version of this PdfDocument.

Parameters:
version - constant specifying PDF version
Since:
1.0
Sample Code
See example.

setWriter

public void setWriter(PdfWriter w)
               throws PdfException
Specifies PdfWriter object to be used with this PdfDocument.

Parameters:
w - PdfWriter object to be used with this PdfDocument
Throws:
PdfException - if an illegal argument is supplied.
Since:
1.0
See Also:
PdfStdDocument.getWriter(), PdfStdDocument.setReader(PdfReader), PdfStdDocument.getReader()
Sample Code
See example.

setReader

public void setReader(PdfReader r)
               throws IOException,
                      PdfException
Specifies PdfReader object to be used with this PdfDocument.

Parameters:
r - PdfReader object to be used with this PdfDocument
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
See Also:
PdfStdDocument.getReader(), PdfStdDocument.getWriter(), PdfStdDocument.setWriter(PdfWriter)
Sample Code
See example.

getReader

public PdfReader getReader()
Returns PdfReader object currently used with this PdfDocument.

Returns:
PdfReader object currently used with the PdfDocument; null if the PdfDocument is used with a PdfWriter object
Since:
1.0
See Also:
PdfStdDocument.setReader(PdfReader), PdfStdDocument.getReader(), PdfStdDocument.setReader(PdfReader)
Sample Code
See example.

getWriter

public PdfWriter getWriter()
Returns PdfWriter object currently used with this PdfDocument.

Returns:
PdfWriter object currently used with the PdfDocument; null if the PdfDocument is used with a PdfReader object
Since:
1.0
See Also:
PdfStdDocument.setWriter(PdfWriter), PdfStdDocument.getReader(), PdfStdDocument.setReader(PdfReader)
Sample Code
See example.

getWriterOutputFile

public File getWriterOutputFile()

getPage

public PdfPage getPage(int pageNo)
                throws PdfException
Returns a PdfPage object specified by page number in this document.

Parameters:
pageNo - page number in the document
Returns:
a PdfPage object
Throws:
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

getPageCount

public int getPageCount()
Returns number of pages in this PdfDocument.

Returns:
number of pages
Since:
1.0
Sample Code
See example.

setPenWidth

public void setPenWidth(double width)
Specifies default width for this PdfDocument's pen.

Parameters:
width - default width for the PdfDocument's pen
Since:
1.0
Sample Code
See example.

setPenColor

public void setPenColor(Color color)
Specifies default color for this PdfDocument's pen.

Parameters:
color - default color for the PdfDocument's pen
Since:
1.0
Sample Code
See example.

setPenDashLength

public void setPenDashLength(double length)
Specifies length of dashes in default dash pattern of this PdfDocument's pen.

Parameters:
length - length of dashes in the default dash pattern
Since:
1.0
See Also:
PdfStdDocument.setPenDashGap(double), PdfStdDocument.setPenDashPhase(double)
Sample Code
See example.

setPenDashGap

public void setPenDashGap(double gap)
Specifies length of gaps in default dash pattern of this PdfDocument's pen.

Parameters:
gap - length of gaps in the default dash pattern
Since:
1.0
See Also:
PdfStdDocument.setPenDashLength(double), PdfStdDocument.setPenDashPhase(double)
Sample Code
See example.

setPenDashPhase

public void setPenDashPhase(double phase)
Specifies length of phase of default dash pattern of this PdfDocument's pen.

Parameters:
phase - length of phase of the default dash pattern
Since:
1.0
See Also:
PdfStdDocument.setPenDashGap(double), PdfStdDocument.setPenDashLength(double)
Sample Code
See example.

setPenCapStyle

public void setPenCapStyle(int capStyle)
Specifies default shape of endpoints of paths in this PdfDocument.

Parameters:
capStyle - constant specifying the default shape
Since:
1.0
See Also:
PdfPen, PdfStdDocument.setPenJoinStyle(int)
Sample Code
See example.

setPenJoinStyle

public void setPenJoinStyle(int joinStyle)
Specifies default shape of joints of paths that connect at an angle for this PdfDocument's pen.

Parameters:
joinStyle - constant specifying the default shape
Since:
1.0
See Also:
PdfPen, PdfStdDocument.setPenCapStyle(int)
Sample Code
See example.

setPenMiterLimit

public void setPenMiterLimit(int limit)
Specifies default miter limit for this PdfDocument's pen.

Parameters:
limit - default miter limit for the PdfDocument's pen
Since:
1.0
See Also:
PdfPen
Sample Code
See example.

setBrushColor

public void setBrushColor(Color c)
Specifies default color for this PdfDocument's brush.

Parameters:
c - default color for the PdfDocument's brush
Since:
1.0
Sample Code
See example.

getXMLMetadata

public String getXMLMetadata()
                      throws IOException,
                             PdfException
Returns XML metadata of this PdfDocument.

Returns:
XML metadata of the document
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

disableAllMargins

public void disableAllMargins(String pageRange)
                       throws PdfException
Disables all margins on pages in specified page range.

Parameters:
pageRange - page range on whose pages margins need to disabled
Throws:
PdfException - if an illegal argument is supplied.
Since:
1.0
See Also:
PdfStdDocument.enableAllMargins(String)
Sample Code
See example.

enableAllMargins

public void enableAllMargins(String pageRange)
                      throws PdfException
Enables all margins on pages in specified page range.

Parameters:
pageRange - page range on whose pages margins need to enabled
Throws:
PdfException - if an illegal argument is supplied.
Since:
1.0
See Also:
PdfStdDocument.enableAllMargins(String)
Sample Code
See example.

isOpenAfterSave

public boolean isOpenAfterSave()
Returns whether document is set to be executed after data is saved to file.

Returns:
whether document is set to be executed after data is saved to file
Since:
1.0
See Also:
PdfStdDocument.setOpenAfterSave(boolean)
Sample Code
See example.

setOpenAfterSave

public void setOpenAfterSave(boolean openAfterSave)
Specifies whether document needs to be executed after data is saved to file.

Parameters:
openAfterSave - whether document needs to be executed after data is saved to file
Since:
1.0
See Also:
PdfStdDocument.isOpenAfterSave()
Sample Code
See example.

addToFiltersList

public void addToFiltersList(int filter)
Adds a filter to the list of filters used to encode stream objects in this document.

Multiple filters can be added to the list of filters for a single document. Filters will be applied in the order they were added.

Parameters:
filter - filter to be added
Since:
1.0
See Also:
PdfFilter
Sample Code
See example.

setPrintAfterSave

public void setPrintAfterSave(boolean printAfterSave)

appendPagesFrom

public void appendPagesFrom(PdfDocument d,
                            String pageRange)
                     throws IOException,
                            PdfException
Throws:
IOException
PdfException

appendPagesFrom

public void appendPagesFrom(String path,
                            String pageRange)
                     throws IOException,
                            PdfException
Throws:
IOException
PdfException

insertPagesFrom

public void insertPagesFrom(com.gnostice.pdfone.PdfStdDocument d,
                            String pageRange,
                            int insertAfterPage)
                     throws IOException,
                            PdfException
Throws:
IOException
PdfException

insertPagesFrom

public void insertPagesFrom(String path,
                            String pageRange,
                            int insertAfterPage)
                     throws IOException,
                            PdfException
Throws:
IOException
PdfException

merge

public void merge(List docList)
           throws IOException,
                  PdfException
Throws:
IOException
PdfException

merge

public void merge(List docList,
                  int mergeOptions)
           throws IOException,
                  PdfException
Throws:
IOException
PdfException

merge

public void merge(PdfDocument d)
           throws IOException,
                  PdfException
Throws:
IOException
PdfException

merge

public void merge(PdfDocument d,
                  int mergeOptions)
           throws IOException,
                  PdfException
Throws:
IOException
PdfException

merge

public void merge(String path)
           throws IOException,
                  PdfException
Throws:
IOException
PdfException

merge

public void merge(String path,
                  int mergeOptions)
           throws IOException,
                  PdfException
Throws:
IOException
PdfException

setOnBookmarkMerge

public void setOnBookmarkMerge(PdfBookmarkMergeHandler onBookmarkMerge)

setOnRenameField

public void setOnRenameField(PdfFormFieldRenameHandler pfrh)

deletePages

public void deletePages(String pageRange)
                 throws PdfException
Deletes pages in specified page range from this PdfDocument.

Parameters:
pageRange - page range from which pages need to be deleted
Throws:
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

extractPagesTo

public void extractPagesTo(String path,
                           String pageRange)
                    throws IOException,
                           PdfException
Extracts pages in specified page range and places them in a file specified by its pathname.

Parameters:
path - pathname of the file to which the pages are to be added
pageRange - page range whose pages are to be extracted
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

extractPagesTo

public void extractPagesTo(String path,
                           String pageRange,
                           String extractAsVersion,
                           boolean openAfterExtraction)
                    throws IOException,
                           PdfException
Extracts pages in specified page range in specified PDF version and places them in a new file specified by its pathname.

Parameters:
path - pathname of the file to which the pages are to be added
pageRange - page range whose pages are to be extracted
extractAsVersion - PDF version in which pages are extracted and saved to the new file
openAfterExtraction - whether the output file is to be opened after it is written to
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

split

public void split(String pageRange)
           throws IOException,
                  PdfException
Throws:
IOException
PdfException

split

public void split(int pages)
           throws IOException,
                  PdfException
Throws:
IOException
PdfException

setOnNeedFileName

public void setOnNeedFileName(PdfNeedFileNameHandler pnfnh)

addWatermarkImage

public void addWatermarkImage(PdfImage image,
                              int position,
                              boolean applyPageMargins,
                              double angle,
                              boolean underlay,
                              String pageRange)
                       throws IOException,
                              PdfException
Adds PdfImage object as watermark with its exact position determined by position and applyPageMargins.

Constants defined in PdfPage can be used to align the image inside the watermark.

The image is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
image - PdfImage object that needs to be used as the watermark image
position - constant specifying the combination of vertical and horizontal alignment of the image
applyPageMargins - whether page margins need to be considered when positioning the image
angle - (measured in anti-clockwise direction and expressed in degrees) tilt of the image with reference to center of its bounding box
underlay - whether the image needs to be placed underneath other page contents
pageRange - page range on whose pages the image needs to be applied as the watermark
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

addWatermarkImage

public void addWatermarkImage(PdfImage image,
                              int position,
                              double angle,
                              boolean underlay,
                              String pageRange)
                       throws IOException,
                              PdfException
Adds PdfImage object as watermark on pages in specified page range.

Constants defined in PdfPage can be used to align the image inside the watermark.

The image is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
image - PdfImage object that needs to be used as the watermark image
position - constant specifying the combination of vertical and horizontal alignment of the image
angle - (measured in anti-clockwise direction and expressed in degrees) tilt of the image with reference to center of its bounding box
underlay - whether the image needs to be placed underneath other page contents
pageRange - page range on whose pages the image needs to be applied as the watermark
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

addWatermarkImage

public void addWatermarkImage(String path,
                              int position,
                              boolean applyPageMargins,
                              double angle,
                              boolean underlay,
                              String pageRange)
                       throws IOException,
                              PdfException
Adds image, specified by its pathname, as watermark with its exact position determined by position and applyPageMargins on pages in specified page range.

Constants defined in PdfPage can be used to align the image inside the watermark.

The image is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
path - pathname of the watermark image
position - constant specifying the combination of vertical and horizontal alignment of the image
applyPageMargins - whether page margins need to be considered when positioning the image
angle - (measured in anti-clockwise direction and expressed in degrees) tilt of the image with reference to center of its bounding box
underlay - whether the image needs to be placed underneath other page contents
pageRange - page range on whose pages the image needs to be applied as the watermark
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

addWatermarkImage

public void addWatermarkImage(String path,
                              int position,
                              double angle,
                              boolean underlay,
                              String pageRange)
                       throws IOException,
                              PdfException
Adds image, specified by its pathname, as watermark on pages in specified page range.

Constants defined in PdfPage can be used to align the image inside the watermark.

The image is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
path - pathname of the watermark image
position - constant specifying the combination of vertical and horizontal alignment of the image
angle - (measured in anti-clockwise direction and expressed in degrees) tilt of the image with reference to center of its bounding box
underlay - whether the image needs to be placed underneath other page contents
pageRange - page range on whose pages the image needs to be applied as the watermark
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

addWatermarkText

public void addWatermarkText(String text,
                             PdfFont font,
                             int position,
                             boolean applyPageMargins,
                             double angle,
                             boolean underlay,
                             String pageRange)
                      throws IOException,
                             PdfException
Adds specified text as watermark with its exact position determined by position and applyPageMargins on pages in specified page range.

Constants defined in PdfPage can be used to align the text inside the watermark.

The text is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
text - text that needs to be added as the watermark
font - font with which the watermark needs to be written
position - constant specifying the combination of vertical and horizontal alignment of the text
applyPageMargins - whether page margins need to be considered when positioning the text
angle - (measured in anti-clockwise direction and expressed in degrees) tilt of the text with reference to center of its bounding box
underlay - whether the text needs to be placed underneath other page contents
pageRange - page range on whose pages the text needs to be applied as the watermark
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

addWatermarkText

public void addWatermarkText(String text,
                             PdfFont font,
                             int position,
                             double angle,
                             boolean underlay,
                             String pageRange)
                      throws IOException,
                             PdfException
Adds specified text as watermark on pages in specified page range.

Constants defined in PdfPage can be used to align the text inside the watermark.

The text is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
text - text to be displayed as watermark
font - font with which the watermark needs to be written
position - constant specifying the combination of vertical and horizontal alignment of the text
angle - (measured in anti-clockwise direction and expressed in degrees) tilt of the text with reference to center of its bounding box
underlay - whether the text needs to be placed underneath other page contents
pageRange - page range on whose pages the text needs to be applied as the watermark
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

addBookmark

public PdfBookmark addBookmark(int namedAction,
                               String title,
                               PdfBookmark parent)
Returns a new bookmark that performs specified action and is added as a child bookmark under parent with specified title.

Parameters:
namedAction - action to be be performed when bookmark is selected
title - text to be used to display the new bookmark
parent - bookmark under which the new bookmark is to be created
Returns:
new bookmark created under parent
Since:
1.0
Sample Code
See example.

addBookmark

public PdfBookmark addBookmark(String title,
                               PdfBookmark parent,
                               int pageNo)
                        throws PdfException
Returns a new bookmark that leads to specified page and is added as a child bookmark under parent with specified title.

Parameters:
title - text to be used to display bookmark
parent - bookmark under which the new bookmark is to be created
pageNo - number of the page that is to be displayed when bookmark is selected
Returns:
a new bookmark created under parent
Throws:
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

addBookmark

public PdfBookmark addBookmark(String title,
                               PdfBookmark parent,
                               int pageNo,
                               double left,
                               double top,
                               double zoom)
                        throws PdfException
Returns a new bookmark that leads to position (left, top) on specified page, displays the page with specified zoom, and is added as a child bookmark under parent with specified title.

Parameters:
title - text to be used to display the new bookmark
parent - bookmark under which the new bookmark is to be created
pageNo - number of the page that is to be displayed when bookmark is selected
left - offset of the position from (0, top) (expressed in points)
top - offset of the position from (left, 0) (expressed in points)
zoom - zoom factor to be applied when displaying the page
Returns:
a new bookmark created under parent
Throws:
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

addBookmark

public PdfBookmark addBookmark(String title,
                               PdfBookmark parent,
                               int pageNo,
                               double x,
                               double y,
                               double width,
                               double height)
                        throws PdfException
Throws:
PdfException

addBookmark

public PdfBookmark addBookmark(String title,
                               PdfBookmark parent,
                               int pageNo,
                               double pos,
                               int fit)
                        throws PdfException
Returns a new bookmark that leads to a destination specified by pageNo, pos and fit, and is added as a child bookmark under parent with specified title.

fit pos Page Display
PdfBookmark.FITH vertical coordinate of destination
  • pos is positioned on the top edge of the window.
  • Page is zoomed to tightly fit the entire width of the page inside the window.
PdfBookmark.FITBH vertical coordinate of destination
  • pos is positioned on top edge of the window.
  • Page is zoomed to tightly fit the entire width of its bounding box inside the window.
PdfBookmark.FITBV horizontal coordinate of destination
  • pos is positioned on the left edge of the window.
  • Page is zoomed to tightly fit the entire height of its bounding box inside the window.
PdfBookmark.FITV horizontal coordinate of destination
  • pos is positioned on the left edge of the window.
  • Page is zoomed to tightly fit the entire height of the page insidethe window.

Parameters:
title - text to be used to display bookmark
parent - bookmark under which the new bookmark is to be created
pageNo - number of the page that is to be displayed when bookmark is selected
pos - horizontal or vertical coordinate of the bookmark's destination
fit - constant determining how page is displayed inside window
Returns:
a new bookmark created under parent
Throws:
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

addBookmark

public PdfBookmark addBookmark(String title,
                               PdfBookmark parent,
                               int pageNo,
                               int fit)
                        throws PdfException
Returns a new bookmark that leads to specified page, displays the page so as to fit entire height and weight of its bounding box inside window, and is added to as a child bookmark under parent with specified title.

Parameters:
title - text to be used to display the new bookmark
parent - bookmark under which the new bookmark is to be created
pageNo - number of the page that is to be displayed when bookmark is selected
fit - constant determining how page is displayed inside window (Always is PdfBookmark.FITB)
Returns:
a new bookmark created under parent
Throws:
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

addBookmark

public PdfBookmark addBookmark(String title,
                               PdfBookmark parent,
                               int pageNo,
                               PdfRect rect)
                        throws PdfException
Returns a new bookmark that leads to specified rectangle on specified page and is added as a child bookmark under parent with specified title.

Parameters:
title - text to be used to display bookmark
parent - bookmark under which the new bookmark is to be created
pageNo - number of the page that is to be displayed when bookmark is selected
rect - rectangle on the specified page
Returns:
a new bookmark created under parent
Throws:
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

addBookmark

public PdfBookmark addBookmark(String title,
                               PdfBookmark parent,
                               int pageNo,
                               Rectangle rect)
                        throws PdfException
Returns a new bookmark that leads to specified rectangular area on specified page and is added as a child bookmark under parent with specified title.

Parameters:
title - text to be used to display bookmark
parent - bookmark under which the new bookmark is to be created
pageNo - number of the page that is to be displayed when bookmark is selected
rect - rectangular area on the specified page
Returns:
a new bookmark created under parent
Throws:
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

addBookmark

public PdfBookmark addBookmark(String title,
                               PdfBookmark parent,
                               String applicationToLaunch,
                               boolean print)
                        throws PdfException
Throws:
PdfException

addBookmark

public PdfBookmark addBookmark(String title,
                               PdfBookmark parent,
                               String javascriptOrURI,
                               int actionType)
                        throws PdfException
Throws:
PdfException

addBookmark

public PdfBookmark addBookmark(String title,
                               PdfBookmark parent,
                               String pdfFileName,
                               int pageNo,
                               boolean newWindow)
                        throws PdfException
Throws:
PdfException

getBookmarkRoot

public PdfBookmark getBookmarkRoot()
                            throws PdfException
Returns a PdfBookmark object that points to the root of the bookmark tree of this PdfDocument. Should be used only if the PdfDocument was created with a PdfWriter object.

The root is at the top of the hierarchy that contains bookmarks displayed in the document outline. The PdfBookmark.getFirstChild() method can be used on the PdfBookmark returned by getBookmarkRoot() to navigate to the first bookmark in the document outline.

Returns:
PdfBookmark object that points to the root of the bookmark tree
Throws:
PdfException - An illegal argument was supplied
Since:
1.0
See Also:
PdfStdDocument.getFirstBookmark()
Sample Code
See example.

getFirstBookmark

public PdfBookmark getFirstBookmark()
                             throws PdfException
Returns first bookmark in this PdfDocument's document outline. Should be used only if the PdfDocument was created with a PdfReader object.

Returns:
a PdfBookmark object of the first bookmark in the document outline
Throws:
PdfException - if an illegal argument is supplied.
Since:
1.0
See Also:
PdfStdDocument.getBookmarkRoot()
Sample Code
See example.

add

public void add(PdfPage p)
         throws PdfException
Adds specified PdfPage to this PdfDocument.

It is not recommended that a PdfPage object is added to the same document or to multiple documents more than once. If at all necessary, it is better to clone the PdfPage object as many times.

Parameters:
p - PdfPage to be added
Throws:
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

add

public void add(PdfPage p,
                boolean setAsCurrentPage)
         throws PdfException
Adds specified PdfPage to this PdfDocument and, if setAsCurrentPage is true, sets the PdfPage as the PdfDocument's current page.

By default, the first page that is added to a PdfDocument is the default current page. If some content has been written directly to a PdfDocument that is without first adding a page, then a default page is automatically added to it and becomes its current page.

Parameters:
p - PdfPage to be added
setAsCurrentPage - whether the PdfPage should be set as the current page
Throws:
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

addFooterImage

public void addFooterImage(PdfImage img,
                           int position,
                           boolean underlay,
                           String pageRange)
                    throws IOException,
                           PdfException
Adds PdfImage object to footer of pages in specified page range.

Constants defined in PdfPage can be used to align the image inside the footer.

Parameters:
img - PdfImage object to be used in the footer
position - constant specifying combination of vertical and horizontal alignment of the image within the footer
underlay - whether the image needs to be placed underneath other page elements
pageRange - page range on whose pages the image is to be added
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

addFooterImage

public void addFooterImage(String path,
                           int position,
                           boolean underlay,
                           String pageRange)
                    throws IOException,
                           PdfException
Adds image, specified by its pathname, to footer of pages in specified page range.

Constants defined in PdfPage can be used to align the image inside the footer.

Parameters:
path - pathname of the image
position - constant specifying combination of vertical and horizontal alignment of the image within the footer
underlay - whether the image needs to be placed underneath other content in the footer
pageRange - page range on whose pages the image is to be added
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

addFooterText

public void addFooterText(String text,
                          PdfFont font,
                          int position,
                          boolean underlay,
                          String pageRange)
                   throws IOException,
                          PdfException
Adds specified text to footer of pages in specified page range.

Constants defined in PdfPage can be used to align the text inside the footer.

Parameters:
text - text to be added to the footer
font - font with which the text next needs to be written
position - constant specifying the combination of vertical and horizontal alignment of the text within the footer
underlay - whether the text needs to be placed underneath other content in the footer
pageRange - page range on whose pages the text is to be added
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

addHeaderImage

public void addHeaderImage(PdfImage img,
                           int position,
                           boolean underlay,
                           String pageRange)
                    throws IOException,
                           PdfException
Adds a PdfImage object to header of pages in specified page range.

Constants defined in PdfPage can be used to align the image inside the header.

Parameters:
img - PdfImage object that needs to be added to the header
position - constant specifying the combination of vertical and horizontal alignment of the image within the header
underlay - whether the image needs to be placed underneath other content in the header
pageRange - page range on whose pages the image is to be added
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

addHeaderImage

public void addHeaderImage(String path,
                           int position,
                           boolean underlay,
                           String pageRange)
                    throws IOException,
                           PdfException
Adds image, specified by its pathname, to footer of pages in specified page range.

Constants defined in PdfPage can be used to align the image inside the header.

Parameters:
path - pathname of the image
position - constant specifying combination of vertical and horizontal alignment of the image within the header
underlay - whether the image needs to be placed underneath other content in the header
pageRange - page range on whose pages the image is to be added
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

addHeaderText

public void addHeaderText(String text,
                          PdfFont font,
                          int position,
                          boolean underlay,
                          String pageRange)
                   throws IOException,
                          PdfException
Adds specified text to header of pages in specified page range.

Constants defined in PdfPage can be used to align the text inside the watermark.

Parameters:
text - text to be added to header
font - font with which the text next needs to be written
position - combination of vertical and horizontal alignment
underlay - whether the text needs to be placed underneath other content in the header
pageRange - page range on whose pages the text is to be added
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawArc

public void drawArc(PdfRect rect,
                    double startAngle,
                    double arcAngle)
             throws IOException,
                    PdfException
Draws an arc on the current page of this PdfDocument. Rectangle rect represents bounding box of an imaginary circle that completes the arc. The arc begins at startAngle degrees and spans for arcAngle degrees. startAngle is measured in anti-clockwise direction.

Parameters:
rect - bounding box of the imaginary circle that completes the arc
startAngle - (measured in anti-clockwise direction and expressed in degrees) angle from which the arc needs to begin
arcAngle - (expressed in degrees) angle for which the arc needs to span
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawArc

public void drawArc(PdfRect rect,
                    double startAngle,
                    double arcAngle,
                    String pageRange)
             throws IOException,
                    PdfException
Draws an arc on pages in specified page range. Rectangle rect represents bounding box of an imaginary circle that completes the arc. The arc begins at startAngle degrees and spans for arcAngle degrees. startAngle is measured in anti-clockwise direction.

Parameters:
rect - bounding box of the imaginary circle that completes the arc
startAngle - (measured in anti-clockwise direction and expressed in degrees) angle from which the arc needs to begin
arcAngle - (expressed in degrees) angle for which the arc needs to span
pageRange - page page range on whose pages the arc needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawBezierCurve

public void drawBezierCurve(double startX,
                            double startY,
                            double ctrlX,
                            double ctrlY,
                            double endX,
                            double endY,
                            boolean isFill,
                            boolean isStroke)
                     throws IOException,
                            PdfException
Draws a Bézier curve with a single control point on current page of this PdfDocument. The curves starts at (startX, startY) and ends at (endX, endY with its control point being at (ctrlX, ctrlY).

Parameters:
startX - x-coordinate of starting point of the curve
startY - y-coordinate of starting point of the curve
ctrlX - x-coordinate of control point of the curve
ctrlY - y-coordinate of control point of the curve
endX - x-coordinate of end point of the curve
endY - y-coordinate of end point of the curve
isFill - whether the curve needs to be filled
isStroke - whether the curve needs to be stroked
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawBezierCurve

public void drawBezierCurve(double startX,
                            double startY,
                            double ctrlX,
                            double ctrlY,
                            double endX,
                            double endY,
                            boolean isFill,
                            boolean isStroke,
                            String pageRange)
                     throws IOException,
                            PdfException
Draws a Bézier curve with a single control point on pages in specified page range in this PdfDocument. The curves starts at (startX, startY) and ends at (endX, endY with its control point being at (ctrlX, ctrlY).

Parameters:
startX - x-coordinate of starting point of the curve
startY - y-coordinate of starting point of the curve
ctrlX - x-coordinate of control point of the curve
ctrlY - y-coordinate of control point of the curve
endX - x-coordinate of end point of the curve
endY - y-coordinate of end point of the Bézier curve
isFill - whether the curve needs to be filled
isStroke - whether the curve needs to be stroked
pageRange - page range on whose pages the curve needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawBezierCurve

public void drawBezierCurve(double startX,
                            double startY,
                            double ctrlX1,
                            double ctrlY1,
                            double ctrlX2,
                            double ctrlY2,
                            double endX,
                            double endY,
                            boolean isFill,
                            boolean isStroke)
                     throws IOException,
                            PdfException
Draws a Bézier curve with two control points on current page of this PdfDocument. The curve starts at (startX, startY) and ends at (endX, endY. Its first control point is at (ctrlX1, ctrlY1). Its second control point is at (ctrlX2, ctrlY2).

Parameters:
startX - x-coordinate of starting point of the curve
startY - y-coordinate of starting point of the curve
ctrlX1 - x-coordinate of first control point of the curve
ctrlY1 - y-coordinate of first control point of the curve
ctrlX2 - x-coordinate of second control point of the curve
ctrlY2 - y-coordinate of second control point of the curve
endX - x-coordinate of end point of the curve
endY - y-coordinate of end point of the curve
isFill - whether the curve needs to be filled
isStroke - whether the curve needs to be stroked
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawBezierCurve

public void drawBezierCurve(double startX,
                            double startY,
                            double ctrlX1,
                            double ctrlY1,
                            double ctrlX2,
                            double ctrlY2,
                            double endX,
                            double endY,
                            boolean isFill,
                            boolean isStroke,
                            String pageRange)
                     throws IOException,
                            PdfException
Draws a Bézier curve with two control points on pages in specified page range on this PdfDocument. The curve starts at (startX, startY) and ends at (endX, endY. Its first control point is at (ctrlX1, ctrlY1). Its second control point is at (ctrlX2, ctrlY2).

Parameters:
startX - x-coordinate of starting point of the curve
startY - y-coordinate of starting point of the curve
ctrlX1 - x-coordinate of first control point of the curve
ctrlY1 - y-coordinate of first control point of the curve
ctrlX2 - x-coordinate of second control point of the curve
ctrlY2 - y-coordinate of second control point of the curve
endX - x-coordinate of end point of the curve
endY - y-coordinate of end point of the curve
isFill - whether the curve needs to be filled
isStroke - whether the curve needs to be stroked
pageRange - page range on whose pages the curve needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawCircle

public void drawCircle(double x,
                       double y,
                       double radius,
                       boolean isFill,
                       boolean isStroke)
                throws IOException,
                       PdfException
Draws a circle with specified radius on this PdfDocument's current page. The circle's center is positioned at (x, y).

Parameters:
x - x-coordinate of the center of the circle
y - y-coordinate of the center of the circle
radius - radius of the circle
isFill - whether the circle needs to be filled
isStroke - whether the circle needs to be stroked
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawCircle

public void drawCircle(double x,
                       double y,
                       double radius,
                       boolean isFill,
                       boolean isStroke,
                       String pageRange)
                throws IOException,
                       PdfException
Draws a circle with specified radius on pages in specified page range on this PdfDocument. The circle's center is positioned at (x, y).

Parameters:
x - x-coordinate of the center of the circle
y - y-coordinate of the center of the circle
radius - radius of the circle
isFill - whether the circle needs to be filled
isStroke - whether the circle needs to be stroked
pageRange - page range on whose pages the circle will be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawEllipse

public void drawEllipse(double x1,
                        double y1,
                        double x2,
                        double y2,
                        boolean isFill,
                        boolean isStroke)
                 throws IOException,
                        PdfException
Draws an ellipse on this PdfDocument's current page. Top-left corner of ellipse's bounding box is specified by (x1, y1). Bottom-right corner of ellipse's bounding box is specified by (x2, y2).

Parameters:
x1 - x-coordinate of the top-left corner of the ellipse's bounding box
y1 - y-coordinate of the top-left corner of the ellipse's bounding box
x2 - x-coordinate of the bottom-right corner of the ellipse's bounding box
y2 - y-coordinate of the bottom-right corner of the ellipse's bounding box
isFill - whether the ellipse needs to be filled
isStroke - whether the ellipse needs to be stroked
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawEllipse

public void drawEllipse(double x1,
                        double y1,
                        double x2,
                        double y2,
                        boolean isFill,
                        boolean isStroke,
                        String pageRange)
                 throws IOException,
                        PdfException
Draws an ellipse on pages in specified page range on this PdfDocument's current page. Top-left corner of ellipse's bounding box is specified by (x1, y1). Bottom-right corner of ellipse's bounding box is specified by (x2, y2).

Parameters:
x1 - x-coordinate of the top-left corner of the ellipse's bounding box
y1 - y-coordinate of the top-left corner of the ellipse's bounding box
x2 - x-coordinate of the bottom-right corner of the ellipse's bounding box
y2 - y-coordinate of the bottom-right corner of the ellipse's bounding box
isFill - whether the ellipse needs to be filled
isStroke - whether the ellipse needs to be stroked
pageRange - page range on whose pages the ellipse needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(PdfImage img,
                      double x,
                      double y)
               throws IOException,
                      PdfException
Draws specified image at position (x, y) on this PdfDocument's current page.

Parameters:
img - image that needs to be drawn
x - x-coordinate of the position where the image needs to be drawn
y - y-coordinate of the position where the image needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(PdfImage img,
                      double x,
                      double y,
                      double rotation)
               throws IOException,
                      PdfException
Draws specified image rotated by rotation degrees at position (x, y) on this PdfDocument's current page.

The image is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
img - image that needs to be drawn
x - x-coordinate of the position where the image needs to be drawn
y - y-coordinate of the position where the image needs to be drawn
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the image with reference to center of its bounding box
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(PdfImage img,
                      double x,
                      double y,
                      double width,
                      double height)
               throws IOException,
                      PdfException
Draws specified image at position (x, y) with specified height and width on this PdfDocument's current page.

Parameters:
img - image that needs to be drawn
x - x-coordinate of the position where the image needs to be drawn
y - y-coordinate of the position where the image needs to be drawn
width - width of the image
height - height of the image
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(PdfImage img,
                      double x,
                      double y,
                      double width,
                      double height,
                      double rotation)
               throws IOException,
                      PdfException
Draws specified image rotated by rotation degrees at position (x, y) with specified height and width on this PdfDocument's current page.

The image is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
img - image that needs to be drawn
x - x-coordinate of the position where the image needs to be drawn
y - y-coordinate of the position where the image needs to be drawn
width - width of the image
height - height of the image
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the image with reference to center of its bounding box
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(PdfImage img,
                      double x,
                      double y,
                      double width,
                      double height,
                      double rotation,
                      String pageRange)
               throws IOException,
                      PdfException
Draws specified image rotated by rotation degrees at position (x, y) with specified height and width on pages in specified page range.

The image is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
img - image that needs to be drawn
x - x-coordinate of the position where the image needs to be drawn
y - y-coordinate of the position where the image needs to be drawn
width - width of the image
height - height of the image
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the image with reference to center of its bounding box
pageRange - page range on whose pages the image needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(PdfImage img,
                      double x,
                      double y,
                      double width,
                      double height,
                      String pageRange)
               throws IOException,
                      PdfException
Draws specified image at position (x, y) with specified height and width on pages in specified page range.

Parameters:
img - image that needs to be drawn
x - x-coordinate of the position where the image needs to be drawn
y - y-coordinate of the position where the image needs to be drawn
width - width of the image
height - height of the image
pageRange - page range on whose pages the image needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(PdfImage img,
                      double x,
                      double y,
                      double rotation,
                      String pageRange)
               throws IOException,
                      PdfException
Draws specified image rotated by rotation degrees at position (x, y) on pages in specified page range.

The image is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
img - image that needs to be drawn
x - x-coordinate of the position where the image needs to be drawn
y - y-coordinate of the position where the image needs to be drawn
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the image with reference to center of its bounding box
pageRange - page range on whose pages the image needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(PdfImage img,
                      double x,
                      double y,
                      String pageRange)
               throws IOException,
                      PdfException
Draws specified image at position (x, y) on pages in specified page range.

Parameters:
img - image that needs to be drawn
x - x-coordinate of the position where the image needs to be drawn
y - y-coordinate of the position where the image needs to be drawn
pageRange - page range on whose pages the image needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(PdfImage img,
                      PdfPoint pt)
               throws IOException,
                      PdfException
Draws specified image at specified point on this PdfDocument's current page.

Parameters:
img - image that needs to be drawn
pt - point where the image needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(PdfImage img,
                      PdfPoint pt,
                      double rotation)
               throws IOException,
                      PdfException
Draws specified image rotated by rotation degrees at specified point on this PdfDocument's current page.

The image is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
img - image that needs to be drawn
pt - point where the image needs to be drawn
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the image with reference to center of its bounding box
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(PdfImage img,
                      PdfPoint pt,
                      double width,
                      double height)
               throws IOException,
                      PdfException
Draws specified image at specified point with specified width and height on this PdfDocument's current page.

Parameters:
img - image that needs to be drawn
pt - point where the image needs to be drawn
width - width of the image
height - height of the image
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(PdfImage img,
                      PdfPoint pt,
                      double width,
                      double height,
                      double rotation)
               throws IOException,
                      PdfException
Draws specified image rotated by rotation degrees at specified point on this PdfDocument's current page.

The image is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
img - image that needs to be drawn
pt - point where the image needs to be drawn
width - width of the image
height - height of the image
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the image with reference to center of its bounding box
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(PdfImage img,
                      PdfPoint pt,
                      double width,
                      double height,
                      double rotation,
                      String pageRange)
               throws IOException,
                      PdfException
Draws specified image rotated by rotation degrees at specified point with specified width and height on pages in the specified page range.

The image is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
img - image that needs to be drawn
pt - point where the image needs to be drawn
width - width of the image
height - height of the image
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the image with reference to center of its bounding box
pageRange - page range on whose pages the image needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(PdfImage img,
                      PdfPoint pt,
                      double width,
                      double height,
                      String pageRange)
               throws IOException,
                      PdfException
Draws specified image at specified point with specified width and height on pages in the specified page range.

Parameters:
img - image that needs to be drawn
pt - point where the image needs to be drawn
width - width of the image
height - width of the image
pageRange - page range on whose pages the image needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(PdfImage img,
                      PdfPoint pt,
                      double rotation,
                      String pageRange)
               throws IOException,
                      PdfException
Draws specified image rotated by rotation degrees at specified point on pages in the specified page range.

The image is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
img - image that needs to be drawn
pt - point where the image needs to be drawn
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the image with reference to center of its bounding box
pageRange - page range on whose pages the image needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(PdfImage img,
                      PdfPoint pt,
                      String pageRange)
               throws IOException,
                      PdfException
Draws specified image at specified point on pages in specified page range.

Parameters:
img - image that needs to be drawn
pt - point where the image needs to be drawn
pageRange - page range on whose pages the image needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(PdfImage img,
                      PdfRect rect)
               throws IOException,
                      PdfException
Draws specified image inside specified rectangle on this PdfDocument's current page.

Parameters:
img - image that needs to be drawn
rect - PdfRectangle object inside which the image needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(PdfImage img,
                      PdfRect rect,
                      double rotation)
               throws IOException,
                      PdfException
Draws specified image rotated by rotation degrees inside specified rectangle on this PdfDocument's current page.

The image is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
img - image that needs to be drawn
rect - rectangle on which the image needs to be drawn
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the image with reference to center of its bounding box
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(PdfImage img,
                      PdfRect rect,
                      double rotation,
                      String pageRange)
               throws IOException,
                      PdfException
Draws specified image rotated by rotation degrees inside specified rectangle on pages in specified range.

The image is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
img - image that needs to be drawn
rect - PdfRect object of the rectangle inside which the image is to be drawn
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the image with reference to center of its bounding box
pageRange - page range on whose pages the image is to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(PdfImage img,
                      PdfRect rect,
                      String pageRange)
               throws IOException,
                      PdfException
Draws specified image inside specified rectangle on pages in specified page range.

Parameters:
img - image that needs to be drawn
rect - rectangle on which the image needs to be drawn
pageRange - page range on whose pages the image needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(String path,
                      double x,
                      double y)
               throws IOException,
                      PdfException
Draws image specified by its pathname at position (x, y) on this PdfDocument's current page.

Parameters:
path - pathname of the image file
x - x-coordinate of the position where the image needs to be drawn
y - y-coordinate of the position where the image needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(String path,
                      double x,
                      double y,
                      double rotation)
               throws IOException,
                      PdfException
Draws image specified by its pathname rotated at rotation degrees at position (x, y) on this PdfDocument's current page.

The image is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
path - pathname of the image file
x - x-coordinate of the position where the image needs to be drawn
y - y-coordinate of the position where the image needs to be drawn
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the image with reference to center of its bounding box
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(String path,
                      double x,
                      double y,
                      double width,
                      double height)
               throws IOException,
                      PdfException
Draws image specified by its pathname at position (x, y) with specified width and height on this PdfDocument's current page.

Parameters:
path - pathname of the image file
x - x-coordinate of the position where the image needs to be drawn
y - y-coordinate of the position where the image needs to be drawn
width - width of the image
height - height of the image
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(String path,
                      double x,
                      double y,
                      double width,
                      double height,
                      double rotation)
               throws IOException,
                      PdfException
Draws image specified by its pathname rotated by rotation degrees at position (x, y) with specified width and height on this PdfDocument's current page.

The image is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
path - pathname of the image file
x - x-coordinate of the position where the image needs to be drawn
y - y-coordinate of the position where the image needs to be drawn
width - width of the image
height - height of the image
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the image with reference to center of its bounding box
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(String path,
                      double x,
                      double y,
                      double width,
                      double height,
                      double rotation,
                      String pageRange)
               throws IOException,
                      PdfException
Draws image specified by its pathname rotated by rotation degrees at position (x, y) with specified width and height on pages in specified page range.

The image is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
path - pathname of the image file
x - x-coordinate of the position where the image needs to be drawn
y - y-coordinate of the position where the image needs to be drawn
width - width of the image
height - height of the image
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the image with reference to center of its bounding box
pageRange - page range on whose pages the image needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(String path,
                      double x,
                      double y,
                      double width,
                      double height,
                      String pageRange)
               throws IOException,
                      PdfException
Draws image specified by its pathname at position (x, y)with specified width and height on pages in specified page range.

Parameters:
path - pathname of the image file
x - x-coordinate of the position where the image needs to be drawn
y - y-coordinate of the position where the image needs to be drawn
width - width of the image
height - height of the image
pageRange - page range on whose pages the image needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(String path,
                      double x,
                      double y,
                      double rotation,
                      String pageRange)
               throws IOException,
                      PdfException
Draws image specified by its pathname rotated by rotation degrees at position (x, y)on pages in specified range.

The image is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
path - pathname of the image file
x - x-coordinate of the position where the image needs to be drawn
y - y-coordinate of the position where the image needs to be drawn
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the image with reference to center of its bounding box
pageRange - page range on whose pages the image needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(String path,
                      double x,
                      double y,
                      String pageRange)
               throws IOException,
                      PdfException
Draws image specified by its pathname at position (x, y) on pages in specified page range.

Parameters:
path - pathname of the image file
x - x-coordinate of the position where the image needs to be drawn
y - y-coordinate of the position where the image needs to be drawn
pageRange - page range on whose pages the image needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(String path,
                      PdfPoint pt)
               throws IOException,
                      PdfException
Draws image specified by its pathname at specified point on this PdfDocument's current page.

Parameters:
path - pathname of the image file
pt - point where the image needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(String path,
                      PdfPoint pt,
                      double rotation)
               throws IOException,
                      PdfException
Draws image specified by its pathname rotated by rotation degrees at specified point on this PdfDocument's current page.

The image is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
path - pathname of the image file
pt - point where the image needs to be drawn
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the image with reference to center of its bounding box
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(String path,
                      PdfPoint pt,
                      double width,
                      double height)
               throws IOException,
                      PdfException
Draws image specified by its pathname at specified point with specified width and height on this PdfDocument's current page.

Parameters:
path - pathname of the image file
pt - point where the image needs to be drawn
width - width of the image
height - height of the image
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(String path,
                      PdfPoint pt,
                      double width,
                      double height,
                      double rotation)
               throws IOException,
                      PdfException
Draws image specified by its pathname rotated by rotation degrees at specified point with specified width and height on this PdfDocument's current page.

The image is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
path - pathname of the image file
pt - point where the image needs to be drawn
width - width of the image
height - height of the image
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the image with reference to center of its bounding box
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(String path,
                      PdfPoint pt,
                      double width,
                      double height,
                      double rotation,
                      String pageRange)
               throws IOException,
                      PdfException
Draws image specified by its pathname rotated by rotation degrees at specified position with specified width and height on pages in specified page range.

The image is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
path - pathname of the image file
pt - point where the image needs to be drawn
width - width of the image
height - height of the image
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the image with reference to center of its bounding box
pageRange - page range on whose pages the image needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(String path,
                      PdfPoint pt,
                      double width,
                      double height,
                      String pageRange)
               throws IOException,
                      PdfException
Draws image specified by its pathname at specified position with specified width and height on pages in specified range.

Parameters:
path - pathname of the image file
pt - point where the image needs to be drawn
width - width of the image
height - height of the image
pageRange - page range on whose pages the image needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(String path,
                      PdfPoint pt,
                      double rotation,
                      String pageRange)
               throws IOException,
                      PdfException
Draws image specified by its pathname rotated by rotation degrees at specified point on pages in specified range.

The image is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
path - pathname of the image file
pt - point where the image needs to be drawn
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the image with reference to center of its bounding box
pageRange - page range on whose pages the image needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(String path,
                      PdfPoint pt,
                      String pageRange)
               throws IOException,
                      PdfException
Draws image specified by its pathname at specified point on pages in specified page range.

Parameters:
path - pathname of the image file
pt - point where the image needs to be drawn
pageRange - page range on whose pages the image needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(String path,
                      PdfRect rect)
               throws IOException,
                      PdfException
Draws image specified by its pathname inside specified rectangle on this PdfDocument's current page.

Parameters:
path - pathname of the image file
rect - rectangle inside which the image needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(String path,
                      PdfRect rect,
                      double rotation)
               throws IOException,
                      PdfException
Draws image specified by its pathname rotated by rotation degrees inside specified rectangle on this PdfDocument's current page.

The image is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
path - pathname of the image file
rect - rectangle inside which the image needs to be drawn
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the image with reference to center of its bounding box
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(String path,
                      PdfRect rect,
                      double rotation,
                      String pageRange)
               throws IOException,
                      PdfException
Draws image specified by its pathname rotated by rotation degrees inside specified rectangle on pages in specified page range.

The image is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
path - pathname of the image file
rect - rectangle inside which the image needs to be drawn
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the image with reference to center of its bounding box
pageRange - page range on whose pages the image needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawImage

public void drawImage(String path,
                      PdfRect rect,
                      String pageRange)
               throws IOException,
                      PdfException
Draws image specified by its pathname inside specified rectangle on pages in specified page range.

Parameters:
path - pathname of the image file
rect - rectangle inside which the image needs to be drawn
pageRange - page range on whose pages the image needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawLine

public void drawLine(double startx,
                     double starty,
                     double endx,
                     double endy)
              throws IOException,
                     PdfException
Draws a line between position (startx, starty) and (endx, endy) on this PdfDocument's current page.

Parameters:
startx - x-coordinate of the position from which the line needs to be drawn
starty - y-coordinate of the position from which the line needs to be drawn
endx - x-coordinate of the position to which the line needs to be drawn
endy - y-coordinate of the position to which the line needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawLine

public void drawLine(double startx,
                     double starty,
                     double endx,
                     double endy,
                     String pageRange)
              throws IOException,
                     PdfException
Draws a line between position (startx, starty) and (endx, endy) on pages in specified page range.

Parameters:
startx - x-coordinate of the position from which the line needs to be drawn
starty - y-coordinate of the position from which the line needs to be drawn
endx - x-coordinate of the position to which the line needs to be drawn
endy - y-coordinate of the position to which the line needs to be drawn
pageRange - page range on whose pages the line needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawLine

public void drawLine(PdfPoint start,
                     PdfPoint end)
              throws IOException,
                     PdfException
Draws a line from start to end on this PdfDocument's current page.

Parameters:
start - starting point of the line
end - end point of the line
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawLine

public void drawLine(PdfPoint start,
                     PdfPoint end,
                     String pageRange)
              throws IOException,
                     PdfException
Draws a line from start to end on pages in specified page range.

Parameters:
start - starting point of the line
end - end point of the line
pageRange - page range on whose pages the line needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawPie

public void drawPie(double x,
                    double y,
                    double width,
                    double height,
                    double startAngle,
                    double arcAngle,
                    boolean isFill,
                    boolean isStroke,
                    String pageRange)
             throws IOException,
                    PdfException
Draws a pie segment on pages in specified page range. The position (x, y) represents the top-left corner of the bounding box of an imaginary ellipse, which the pie segment can neatly fit into.

Parameters:
x - x-coordinate of top-left corner of the bounding box of the imaginary ellipse that contains the pie segment
y - y-coordinate of top-left corner of the bounding box of the imaginary ellipse that contains the pie segment
width - width of the bounding box of the imaginary ellipse that contains the pie segment
height - height of the bounding box of the imaginary pie of which the pie segment can be an integral part
startAngle - (measured in anti-clockwise direction and expressed in degrees) angle from which the pie segment needs to start
arcAngle - (expressed in degrees) angle for which the pie segment needs to span
isFill - whether the pie segment needs to be filled
isStroke - whether the pie segment needs to be stroked
pageRange - page page range on whose pages the pie segment needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawPie

public void drawPie(int x,
                    int y,
                    int width,
                    int height,
                    double startAngle,
                    double arcAngle,
                    boolean isFill,
                    boolean isStroke)
             throws IOException,
                    PdfException
Draws a pie segment on this PdfDocument's current page. The position (x, y) represents the top-left corner of the bounding box of an imaginary ellipse, which the pie segment can neatly fit into.

Parameters:
x - x-coordinate of top-left corner of the bounding box of the imaginary ellipse that contains the pie segment
y - y-coordinate of top-left corner of the bounding box of the imaginary ellipse that contains the pie segment
width - width of the bounding box of the imaginary ellipse that contains the pie segment
height - height of the bounding box of the imaginary ellipse that contains the pie segment
startAngle - (measured in anti-clockwise direction and expressed in degrees) angle from which the pie segment needs to start
arcAngle - (expressed in degrees) angle for which the pie segment needs to span
isFill - whether the pie segment needs to be filled
isStroke - whether the pie segment needs to be stroked
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawPolygon

public void drawPolygon(double[] xPoints,
                        double[] yPoints,
                        int nPoints,
                        boolean isFill,
                        boolean isStroke)
                 throws IOException,
                        PdfException
Draws a polygon on this PdfDocument's current page. Arrays xPoints and yPoints contain x- and y-coordinates of certain specific points on the page. nPoints represents the number of these points, starting with the first, that need to be connected to draw the polygon.

Parameters:
xPoints - array containing x-coordinates of certain specific points on the page
yPoints - array containing y-coordinates of certain specific points on the page
nPoints - number of points that need to be connected together, starting with the first of those points represented by xPoints and yPoints, to draw the polygon
isFill - whether the polygon needs to be filled
isStroke - whether the polygon needs to be stroked
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawPolygon

public void drawPolygon(double[] xPoints,
                        double[] yPoints,
                        int nPoints,
                        boolean isFill,
                        boolean isStroke,
                        String pageRange)
                 throws IOException,
                        PdfException
Draws a polygon on pages in specified page range. Arrays xPoints and yPoints contain x- and y-coordinates of certain specific points on the page. nPoints represents the number of these points, starting with the first, that need to be connected to draw the polygon.

Parameters:
xPoints - array containing x-coordinates of certain specific points on pages in specified page range
yPoints - array containing y-coordinates of certain specific points on pages in specified page range
nPoints - number of points that need to be connected together, starting with the first of those points represented by xPoints and yPoints, to draw the polygon
isFill - whether the polygon nees to be filled
isStroke - whether the polygon needs to be stroked
pageRange - page range on whose pages the polygon needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawPolyline

public void drawPolyline(double[] xPoints,
                         double[] yPoints,
                         int nPoints)
                  throws IOException,
                         PdfException
Draws a polyline on this PdfDocument's current page. Arrays xPoints and yPoints contain x- and y-coordinates of certain specific points on the page. nPoints represents the number of these points, starting with the first, that need to be connected to draw the polyline.

Parameters:
xPoints - array containing x-coordinates of certain specific points on the page
yPoints - array containing y-coordinates of certain specific points on the page
nPoints - number of points that need to be connected together, starting with the first of those points represented by xPoints and yPoints, to draw the polyline
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawPolyline

public void drawPolyline(double[] xPoints,
                         double[] yPoints,
                         int nPoints,
                         String pageRange)
                  throws IOException,
                         PdfException
Draws a polyline on pages in specified page range. Arrays xPoints and yPoints contain x- and y-coordinates of certain specific points on the page. nPoints represents the number of these points, starting with the first, that need to be connected to draw the polyline.

Parameters:
xPoints - array containing x-coordinates of certain specific points on pages in specified page rnage
yPoints - array containing y-coordinates of certain specific points on pages in specified page rnage
nPoints - number of points that need to be connected together, starting with the first of those points represented by xPoints and yPoints, to draw the polyline
pageRange - page range on whose pages the polyline needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawRect

public void drawRect(double x,
                     double y,
                     double width,
                     double height)
              throws IOException,
                     PdfException
Draws a rectangle at position (x, y) with specified width and height on this PdfDocument's current page.

Parameters:
x - x-coordinate of top-left corner of the rectangle
y - y-coordinate of top-left corner of the rectangle
width - width of the rectangle
height - height of the rectangle
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawRect

public void drawRect(double x,
                     double y,
                     double width,
                     double height,
                     boolean isFill,
                     boolean isStroke)
              throws IOException,
                     PdfException
Draws a rectangle on this PdfDocument's current page at position (x, y) with specified width, height, pen, and brush settings.

Parameters:
x - x-coordinate of top-left corner of the rectangle
y - y-coordinate of top-left corner of the rectangle
width - width of the rectangle
height - height of the rectangle
isFill - whether the rectangle needs to be filled
isStroke - whether the rectangle needs to be stroked
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawRect

public void drawRect(double x,
                     double y,
                     double width,
                     double height,
                     boolean isFill,
                     boolean isStroke,
                     String pageRange)
              throws IOException,
                     PdfException
Draws a rectangle on pages in specified page range page at position (x, y) with specified width, height, brush, and pen settings.

Parameters:
x - x-coordinate of top-left corner of the rectangle
y - y-coordinate of top-left corner of the rectangle
width - width of the rectangle
height - height of the rectangle
isFill - whether the rectangle needs to be filled
isStroke - whether the rectangle needs to be stroked
pageRange - page range on whose pages the rectangle needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawRect

public void drawRect(double x,
                     double y,
                     double width,
                     double height,
                     String pageRange)
              throws IOException,
                     PdfException
Draws a rectangle at position (x, y) with specified width and height on pages in specified page range.

Parameters:
x - x-coordinate of top-left corner of the rectangle
y - y-coordinate of top-left corner of the rectangle
width - width of the rectangle
height - height of the rectangle
pageRange - page range on whose pages the rectangle needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawRect

public void drawRect(PdfRect r)
              throws IOException,
                     PdfException
Draws rectangle r on this PdfDocument's current page.

Parameters:
r - rectangle that needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawRect

public void drawRect(PdfRect r,
                     String pageRange)
              throws IOException,
                     PdfException
Draws specified PdfRect object on pages in specified page range.

Parameters:
r - PdfRect object which needs to be drawn
pageRange - page range on whose pages the rectangle needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawRect

public void drawRect(Rectangle r)
              throws IOException,
                     PdfException
Draws specified Rectangle object on this PdfDocument's current page.

Parameters:
r - Rectangle object, which needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawRect

public void drawRect(Rectangle r,
                     String pageRange)
              throws IOException,
                     PdfException
Draws specified Rectangle object on pages in specified page range.

Parameters:
r - Rectangle object, which needs to be drawn
pageRange - page range on whose pages the rectangle needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawRoundRect

public void drawRoundRect(double x,
                          double y,
                          double width,
                          double height,
                          double arcWidth,
                          double arcHeight,
                          boolean isFill,
                          boolean isStroke)
                   throws IOException,
                          PdfException
Draws a rectangle with rounded corners on this PdfDocument's current page. The corners of the rectangle are actually arcs whose dimensions are specified by arcWidth and arcHeight. The dimensions of the whole rectangle are specified by width and height.

Parameters:
x - x-coordinate of top-left corner of the rectangle
y - y-coordinate of top-left corner of the rectangle
width - width of the rectangle
height - height of the rectangle
arcWidth - width of the rounded corners
arcHeight - height of the rounded corners
isFill - whether the rectangle needs to be filled
isStroke - whether the rectangle needs to be stroked
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawRoundRect

public void drawRoundRect(double x,
                          double y,
                          double width,
                          double height,
                          double arcWidth,
                          double arcHeight,
                          boolean isFill,
                          boolean isStroke,
                          String pageRange)
                   throws IOException,
                          PdfException
Draws a rectangle with rounded corners on pages in specified page range. The corners of the rectangle are actually arcs whose dimensions are specified by arcWidth and arcHeight. The dimensions of the whole rectangle are specified by width and height.

Parameters:
x - x-coordinate of top-left corner of the rectangle
y - y-coordinate of top-left corner of the rectangle
width - width of the rectangle
height - height of the rectangle
arcWidth - width of the rounded corners
arcHeight - height of the rounded corners
isFill - whether the rectangle needs to be filled
isStroke - whether the rectangle needs to be stroked
pageRange - page range on whose pages the rectangle needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawSquare

public void drawSquare(double x,
                       double y,
                       double length)
                throws IOException,
                       PdfException
Draws a square on this PdfDocument's current page.

Parameters:
x - x-coordinate of the top-left corner of the square
y - y-coordinate of the top-left corner of the square
length - length of a side of the square
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawSquare

public void drawSquare(double x,
                       double y,
                       double length,
                       boolean isFill,
                       boolean isStroke)
                throws IOException,
                       PdfException
Draws a square with specified brush and pen settings on this PdfDocument's current page.

Parameters:
x - x-coordinate of the top-left corner of the square
y - y-coordinate of the top-left corner of the square
length - length of a side of the square
isFill - whether the square needs to be filled
isStroke - whether the square needs to be stroked
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawSquare

public void drawSquare(double x,
                       double y,
                       double length,
                       boolean isFill,
                       boolean isStroke,
                       String pageRange)
                throws IOException,
                       PdfException
Draws a square with specified pen and brush settings on pages in specified page range.

Parameters:
x - x-coordinate of the top-left corner of the square
y - y-coordinate of the top-left corner of the square
length - length of a side of the square
isFill - whether the square needs to be filled
isStroke - whether the square needs to be stroked
pageRange - page range on whose pages the square needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

drawSquare

public void drawSquare(double x,
                       double y,
                       double length,
                       String pageRange)
                throws IOException,
                       PdfException
Draws a square on pages in specified page range.

Parameters:
x - x-coordinate of the top-left corner of the square
y - y-coordinate of the top-left corner of the square
length - length of a side of the square
pageRange - page range on whose pages the square needs to be drawn
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

writeText

public void writeText(String str)
               throws PdfException,
                      IOException
Writes specified text at current position on this PdfDocument's current page.

Parameters:
str - text that needs to be written
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
Sample Code
See example.

writeText

public void writeText(String str,
                      boolean wrap)
               throws PdfException,
                      IOException
Writes specified text with specified wrap setting at current position on this PdfDocument's current page.

Parameters:
str - text that needs to be written
wrap - constant specifying whether the text needs to be wrapped
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      boolean wrap,
                      String pageRange)
               throws PdfException,
                      IOException
Writes specified text with specified wrap setting at current position on pages in specified page range.

Parameters:
str - text that needs to be written
wrap - constant specifying whether the text needs to be wrapped at the margins
pageRange - page range on whose pages the text needs to be written
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      double x,
                      double y)
               throws PdfException,
                      IOException
Writes specified text at position (x, y) on this PdfDocument's current page.

Parameters:
str - text that needs to be written
x - x-coordinate of the position where the text needs to be written
y - y-coordinate of the position where the text needs to be written
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
Sample Code
See example.

writeText

public void writeText(String str,
                      double x,
                      double y,
                      boolean wrap)
               throws PdfException,
                      IOException
Writes specified text with specified wrap setting at position (x, y) on this PdfDocument's current page.

Parameters:
str - text that needs to be written
x - x-coordinate of the position where the text needs
y - y-coordinate of the position where the text needs to be written
wrap - constant specifying whether the text needs to be wrapped
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      double x,
                      double y,
                      boolean wrap,
                      String pageRange)
               throws PdfException,
                      IOException
Writes specified text with specified wrap setting at position (x, y) on pages in specified page range.

Parameters:
str - text that needs to be written
x - x-coordinate of the position where the text needs to be written
y - y-coordinate of the position where the text needs to be written
wrap - constant specifying whether the text needs to be wrapped
pageRange - page range on whose pages the text needs to be written
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      double x,
                      double y,
                      double rotation)
               throws IOException,
                      PdfException
Writes specified text rotated by rotation degrees at position (x, y) on this PdfDocument's current page.

The text is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
str - text that needs to be written
x - x-coordinate of the position where the text needs to be written
y - y-coordinate of the position where the text needs to be written
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the text with reference to center of its bounding box
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

writeText

public void writeText(String str,
                      double x,
                      double y,
                      double rotation,
                      String pageRange)
               throws IOException,
                      PdfException
Writes specified text rotated by rotation degrees at position (x, y) on pages in specified page range.

The text is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
str - text that needs to be written
x - x-coordinate of the position where the text needs to be written
y - y-coordinate of the position where the text needs to be written
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the text with reference to center of its bounding box
pageRange - page range on whose pages the text needs to be written
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

writeText

public void writeText(String str,
                      double x,
                      double y,
                      int alignment)
               throws PdfException,
                      IOException
Writes specified text with specified alignment at position (x, y) on this PdfDocument's current page.

Parameters:
str - text that needs to be written
x - x-coordinate of the position where the text needs to be written
y - y-coordinate of the position where the text needs to be written
alignment - constant specifying how the text needs to be aligned
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      double x,
                      double y,
                      int alignment,
                      boolean wrap)
               throws IOException,
                      PdfException
Writes specified text with specified alignment and wrap setting at position (x, y) on this PdfDocument's current page.

Parameters:
str - text that needs to be written
x - x-coordinate of the position where the text needs to be written
y - y-coordinate of the position where the text needs to be written
alignment - constant specifying how the text needs to be aligned
wrap - constant specifying whether the text needs to be wrapped
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      double x,
                      double y,
                      int alignment,
                      boolean wrap,
                      String pageRange)
               throws IOException,
                      PdfException
Writes specified text with specified alignment and wrap setting at position (x, y) on pages in specified page range.

Parameters:
str - text that needs to be written
x - x-coordinate of the position where the text needs to be written
y - y-coordinate of the position where the text needs to be written
alignment - constant specifying how the text needs to be aligned
wrap - constant specifying whether the text needs to be wrapped
pageRange - page range on whose pages the text needs to be written
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      double x,
                      double y,
                      int alignment,
                      String pageRange)
               throws PdfException,
                      IOException
Writes specified text with specified alignment at position (x, y) on pages in specified range.

Parameters:
str - text that needs to be written
x - x-coordinate of the position where the text needs to be written
y - y-coordinate of the position where the text needs to be written
alignment - constant specifying how the text needs to be aligned
pageRange - page range on whose pages the text needs to be written
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      double x,
                      double y,
                      String pageRange)
               throws PdfException,
                      IOException
Writes specified text at position (x, y) on pages in specified page range.

Parameters:
str - text that needs to be written
x - x-coordinate of the position where the text needs to be written
y - y-coordinate of the position where the text needs to be written
pageRange - page range on whose pages the text needs to be written
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
Sample Code
See example.

writeText

public void writeText(String str,
                      int alignment)
               throws PdfException,
                      IOException
Writes specified text with specified alignment at current position on this PdfDocument's current page.

Parameters:
str - text that needs to be written
alignment - constant specifying how the text needs to be aligned
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      int alignment,
                      boolean wrap)
               throws PdfException,
                      IOException
Writes specified text with specified alignment and specified wrap setting at current position on this PdfDocument's current page.

Parameters:
str - text that needs to be written
alignment - constant specifying how the text needs to be aligned
wrap - constant specifying whether the text needs to be wrapped
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      int alignment,
                      boolean wrap,
                      String pageRange)
               throws PdfException,
                      IOException
Writes specified text with specified alignment and wrap setting at current position on pages in specified page range.

Parameters:
str - text that needs to be written
alignment - constant specifying how the text needs to be aligned
wrap - constant specifying whether the text needs to be wrapped
pageRange - page range on whose pages the text needs to be written
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      int alignment,
                      String pageRange)
               throws PdfException,
                      IOException
Writes specified text with specified alignment at current position on pages in specified page range.

Parameters:
str - text that needs to be written
alignment - constant specifying how the text needs to be aligned
pageRange - page range on whose pages the text needs to be written
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f)
               throws PdfException,
                      IOException
Writes specified text with specified font on this PdfDocument's current page.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      boolean wrap)
               throws PdfException,
                      IOException
Writes specified text with specified wrap setting and font on this PdfDocument's current page.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
wrap - constant specifying whether the text needs to be wrapped
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      boolean wrap,
                      String pageRange)
               throws PdfException,
                      IOException
Writes specified text with specified font and wrap setting on pages in specified page range.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
wrap - constant specifying whether the text needs to be wrapped
pageRange - page range on whose pages the text needs to be written
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      double x,
                      double y)
               throws PdfException,
                      IOException
Writes specified text with specified font at position (x, y) on this PdfDocument's current page.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
x - x-coordinate of the position where the text needs to be written
y - y-coordinate of the position where the text needs to be written
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      double x,
                      double y,
                      boolean wrap)
               throws IOException,
                      PdfException
Writes specified text with specified font and wrap setting at position (x, y) on this PdfDocument's current page.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
x - x-coordinate of the position where the text needs to be written
y - y-coordinate of the position where the text needs to be written
wrap - constant specifying whether the text needs to be wrapped
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      double x,
                      double y,
                      boolean wrap,
                      String pageRange)
               throws IOException,
                      PdfException
Writes specified text with specified font and wrap setting at position (x, y) on pages in specified page range.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
x - x-coordinate of the position where the text needs to be written
y - y-coordinate of the position where the text needs to be written
wrap - constant specifying whether the text needs to be wrapped
pageRange - page range on whose pages the text needs to be written
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      double x,
                      double y,
                      double rotation)
               throws IOException,
                      PdfException
Writes specified text rotated by rotation degrees with specified font at position (x, y) on this PdfDocument's current page.

The text is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
x - x-coordinate of the position where the text needs to be written
y - y-coordinate of the position where the text needs to be written
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the text with reference to center of its bounding box
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      double x,
                      double y,
                      double rotation,
                      String pageRange)
               throws IOException,
                      PdfException
Writes specified text rotated by rotation degrees with specified font at position (x, y) on pages in specified page range.

The text is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
x - x-coordinate of the position where the text needs to be written
y - y-coordinate of the position where the text needs to be written
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the text with reference to center of its bounding box
pageRange - page range on whose pages the text needs to be written
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      double x,
                      double y,
                      String pageRange)
               throws PdfException,
                      IOException
Writes specified text with specified font at position (x, y) on pages in specified page range.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
x - x-coordinate of the position where the text needs to be written
y - y-coordinate of the position where the text needs to be written
pageRange - page range on whose pages the text needs to be written
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      int alignment)
               throws PdfException,
                      IOException
Writes specified text with specified font and alignment on this PdfDocument's current page.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
alignment - constant specifying how the text needs to be aligned
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      int alignment,
                      boolean wrap)
               throws PdfException,
                      IOException
Writes specified text with specified font, alignment, and wrap setting on this PdfDocument's current page.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
alignment - constant specifying how the text needs to be aligned
wrap - constant specifying whether the text needs to be wrapped
Throws:
PdfException - if an I/O error occurs.
IOException - if an illegal argument is supplied.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      int alignment,
                      boolean wrap,
                      String pageRange)
               throws PdfException,
                      IOException
Writes specified text with specified font, alignment and wrap setting on pages in specified page range.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
alignment - constant specifying how the text needs to be aligned
wrap - constant specifying whether the text needs to be wrapped
pageRange - page range on whose pages the text needs to be written
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      int alignment,
                      double x,
                      double y)
               throws IOException,
                      PdfException
Writes specified text with specified font and alignment at position (x, y) on this PdfDocument's current page.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
alignment - constant specifying how the text needs to be aligned
x - x-coordinate of the position where the text needs to be written
y - y-coordinate of the position where the text needs to be written
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      int alignment,
                      double x,
                      double y,
                      boolean wrap)
               throws IOException,
                      PdfException
Writes specified text with specified font, alignment, and wrapping at position (x, y) on this PdfDocument's current page.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
alignment - constant specifying how the text needs to be aligned
x - x-coordinate of the position where the text needs to be written
y - y-coordinate of the position where the text needs to be written
wrap - constant specifying whether the text needs to be wrapped
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      int alignment,
                      double x,
                      double y,
                      boolean wrap,
                      String pageRange)
               throws IOException,
                      PdfException
Writes specified text with specified font, alignment, and wrapping at position (x, y) on pages in specified page range.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
alignment - constant specifying how the text needs to be aligned
x - x-coordinate of the position where the text needs to be written
y - y-coordinate of the position where the text needs to be written
wrap - constant specifying whether the text needs to be wrapped
pageRange - page range on whose pages the text needs to be written
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      int alignment,
                      double x,
                      double y,
                      String pageRange)
               throws IOException,
                      PdfException
Writes specified text with specified font and alignment at position (x, y) on pages in specified page range.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
alignment - constant specifying how the text needs to be aligned
x - x-coordinate of the position where the text needs to be written
y - y-coordinate of the position where the text needs to be written
pageRange - page range on whose pages the text needs to be written
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      int alignment,
                      PdfPoint pt)
               throws IOException,
                      PdfException
Writes specified text with specified font and alignment at specified point on this PdfDocument's current page.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
alignment - constant specifying how the text needs to be aligned
pt - PdfPoint where the text needs to be written
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      int alignment,
                      PdfPoint pt,
                      boolean wrap)
               throws IOException,
                      PdfException
Writes specified text with specified font, alignment, and wrap setting at specified point on this PdfDocument's current page.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
alignment - constant specifying how the text needs to be aligned
pt - PdfPoint where the text needs to be written
wrap - constant specifying whether the text needs to be wrapped
Throws:
IOException - if an I/O error occurs.
PdfException - if an I/O error occurs.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      int alignment,
                      PdfPoint pt,
                      boolean wrap,
                      String pageRange)
               throws IOException,
                      PdfException
Writes specified text with specified font, alignment, and wrap setting at specified point on pages in specified page range.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
alignment - constant specifying how the text needs to be aligned
pt - PdfPoint where the text needs to be written
wrap - constant specifying whether the text needs to be wrapped
pageRange - page range on whose pages the text needs to be written
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      int alignment,
                      PdfPoint pt,
                      String pageRange)
               throws IOException,
                      PdfException
Writes specified text with specified font and alignment at specified point on pages in specified page range.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
alignment - constant specifying how the text needs to be aligned
pt - PdfPoint where the text needs to be written
pageRange - page range on whose pages the text needs to be written
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      int alignment,
                      String pageRange)
               throws PdfException,
                      IOException
Writes specified text with specified font and alignment on pages in specified page range.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
alignment - constant specifying how the text needs to be aligned
pageRange - page range on whose pages the text needs to be written
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      PdfPoint pt)
               throws PdfException,
                      IOException
Writes specified text with specified font at specified point on this PdfDocument's current page.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
pt - PdfPoint where the text needs to be written
Throws:
PdfException - if an I/O error occurs.
IOException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      PdfPoint pt,
                      boolean wrap)
               throws IOException,
                      PdfException
Writes text str with specified font and wrap setting at specified point on this PdfDocument's current page.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
pt - PdfPoint where the text needs to be written
wrap - constant specifying whether the text needs to be wrapped
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      PdfPoint pt,
                      boolean wrap,
                      String pageRange)
               throws IOException,
                      PdfException
Writes text str with specified font and wrap setting at specified point on pages in specified page range.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
pt - PdfPoint where the text needs to be written
wrap - constant specifying whether the text needs to be wrapped
pageRange - page range on whose pages the text needs to be written
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      PdfPoint pt,
                      double rotation)
               throws IOException,
                      PdfException
Writes text str rotated by rotation degrees with specified font at specified point on this PdfDocument's current page.

The text is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
pt - PdfPoint where the text needs to be written
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the text with reference to center of its bounding box
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      PdfPoint pt,
                      double rotation,
                      String pageRange)
               throws IOException,
                      PdfException
Writes text str rotated by rotation degrees with specified font at specified point on pages in specified page range.

The text is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
str - text that needs to be written
f - text that needs to be written
pt - PdfPoint where the text needs to be written
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the text with reference to center of its bounding box
pageRange - page range on whose pages the text needs to be written
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      PdfPoint pt,
                      String pageRange)
               throws PdfException,
                      IOException
Writes specified text with specified font at specified point on pages in specified page range.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
pt - PdfPoint where the text needs to be written
pageRange - page range on whose pages the text needs to be written
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      PdfRect rectangle)
               throws PdfException,
                      IOException
Writes specified text with specified font inside specified rectangle on this PdfDocument's current page.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
rectangle - rectangle inside which the text needs to be written
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      PdfRect rectangle,
                      double rotation,
                      double firstLinePosition)
               throws IOException,
                      PdfException
Writes specified text rotated by rotation degrees with specified font and first-line position inside specified rectangle on this PdfDocument's current page.

The text is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
rectangle - rectangle inside which the text needs to be written
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the text with reference to center of its bounding box
firstLinePosition - position inside the rectangle where the first line of text should begin (Applied in current measurement unit)
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      PdfRect rectangle,
                      double rotation,
                      double firstLinePosition,
                      String pageRange)
               throws IOException,
                      PdfException
Writes specified text rotated by rotation degrees with specified font and first-line position inside specified rectangle on pages in specified page range.

The text is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
str - text that needs to be written
f - text that needs to be written
rectangle - rectangle inside which the text needs to be written
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the text with reference to center of its bounding box
firstLinePosition - position inside the rectangle where the first line of text should begin (Applied in current measurement unit)
pageRange - page range on whose pages the text needs to be written
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      PdfRect rectangle,
                      int alignment)
               throws IOException,
                      PdfException
Writes specified text with specified alignment and font inside specified rectangle on this PdfDocument's current page.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
rectangle - rectangle inside which the text needs to be written
alignment - constant specifying how the text needs to be aligned inside the rectangle
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      PdfRect rectangle,
                      int alignment,
                      double rotation,
                      double firstLinePosition)
               throws IOException,
                      PdfException
Writes specified text rotated by rotation degrees with specified alignment, first-line position, and font inside specified rectangle on this PdfDocument's current page.

The text is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
rectangle - rectangle inside which the text needs to be written
alignment - constant specifying how the text needs to be aligned inside the rectangle
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the text with reference to center of its bounding box
firstLinePosition - position inside the rectangle where the first line of text should begin (Applied in current measurement unit)
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      PdfRect rectangle,
                      int alignment,
                      double rotation,
                      double firstLinePosition,
                      String pageRange)
               throws IOException,
                      PdfException
Writes specified text rotated by rotation degrees with specified alignment, first-line position, and font inside specified rectangle on pages in specified page range.

The text is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
str - text that needs to be written
f - text that needs to be written
rectangle - rectangle inside which the text needs to be written
alignment - constant specifying how the text needs to be aligned inside the rectangle
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the text with reference to center of its bounding box
firstLinePosition - position inside the rectangle where the first line of text should begin (Applied in current measurement unit)
pageRange - page range on whose pages the text needs to be written
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      PdfRect rectangle,
                      int alignment,
                      String pageRange)
               throws IOException,
                      PdfException
Writes specified text with specified font and alignment inside specified rectangle on pages in specified page range.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
rectangle - rectangle inside which the text needs to be written
alignment - constant specifying how the text needs to be aligned inside the rectangle
pageRange - page range on whose pages the text needs to be written
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      PdfRect rectangle,
                      String pageRange)
               throws PdfException,
                      IOException
Writes specified text with specified font inside specified rectangle on pages in specified page range.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
rectangle - rectangle inside which the text needs to be written
pageRange - page range on whose pages the text needs to be written
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfFont f,
                      String pageRange)
               throws PdfException,
                      IOException
Writes specified text with specified font on pages in specified page range.

Parameters:
str - text that needs to be written
f - font with which the text needs to be written
pageRange - page range on whose pages the text needs to be written
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfPoint pt)
               throws PdfException,
                      IOException
Writes specified text at specified point on this PdfDocument's current page.

Parameters:
str - text that needs to be written
pt - PdfPoint where the text needs to be written
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfPoint pt,
                      boolean wrap)
               throws PdfException,
                      IOException
Writes text str with specified wrap setting at point pt on this PdfDocument's current page.

Parameters:
str - text that needs to be written
pt - PdfPoint where the text needs to be written
wrap - constant specifying whether the text needs to be wrapped
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfPoint pt,
                      boolean wrap,
                      String pageRange)
               throws PdfException,
                      IOException
Writes text str with specified wrap setting at point pt on pages in specified page range.

Parameters:
str - text that needs to be written
pt - PdfPoint where the text needs to be written
wrap - constant specifying whether the text needs to be wrapped
pageRange - page range on whose pages the text needs to be written
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfPoint pt,
                      double rotation)
               throws IOException,
                      PdfException
Writes text str, rotated by rotation degrees, at point pt on this PdfDocument's current page.

The text is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
str - text that needs to be written
pt - PdfPoint where the text needs to be written
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the text with reference to center of its bounding box
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfPoint pt,
                      double rotation,
                      String pageRange)
               throws IOException,
                      PdfException
Writes text str, rotated rotation degrees, at point pt on pages in specified page range.

The text is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
str - text that needs to be written
pt - PdfPoint where the text needs to be written
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the text with reference to center of its bounding box
pageRange - page range on whose pages the text needs to be written
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfPoint pt,
                      int alignment,
                      boolean wrap)
               throws IOException,
                      PdfException
Writes text str with specified alignment and wrap setting at point pt on this PdfDocument's current page.

Parameters:
str - text that needs to be written
pt - PdfPoint where the text needs to be written
alignment - constant specifying how the text needs to be aligned
wrap - constant specifying whether the text needs to be wrapped
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfPoint pt,
                      int alignment,
                      boolean wrap,
                      String pageRange)
               throws IOException,
                      PdfException
Writes text str with specified alignment and wrap setting at point pt on pages in specified page range.

Parameters:
str - text that needs to be written
pt - PdfPoint where the text needs to be written
alignment - constant specifying how the text needs to be aligned
wrap - constant specifying whether the text needs to be wrapped
pageRange - page range on whose pages the text needs to be written
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfPoint pt,
                      String pageRange)
               throws PdfException,
                      IOException
Writes specified text at specified point on pages in specified page range.

Parameters:
str - text that needs to be written
pt - PdfPoint where the text needs to be written
pageRange - page range on whose pages the text needs to be written
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfRect rectangle)
               throws PdfException,
                      IOException
Writes specified text inside specified rectangle on this PdfDocument's current page.

Parameters:
str - text that needs to be written
rectangle - rectangle inside which the text needs to be written
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfRect rectangle,
                      double rotation,
                      double firstLinePosition)
               throws IOException,
                      PdfException
Writes specified text rotated by rotation degrees with specified first-line position inside specified rectangle on this PdfDocument's current page.

The text is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
str - text that needs to be written
rectangle - rectangle inside which the text needs to be written
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the text with reference to center of its bounding box
firstLinePosition - position inside the rectangle where the first line of text should begin (Applied in current measurement unit)
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfRect rectangle,
                      double rotation,
                      double firstLinePosition,
                      String pageRange)
               throws IOException,
                      PdfException
Writes specified text rotated by rotation degrees with specified first-line position inside specified rectangle on pages in specified page range.

The text is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
str - text that needs to be written
rectangle - rectangle inside which the text needs to be written
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the text with reference to center of its bounding box
firstLinePosition - position inside the rectangle where the first line of text should begin (Applied in current measurement unit)
pageRange - page range on whose pages the text needs to be written
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfRect rectangle,
                      int alignment)
               throws PdfException,
                      IOException
Writes specified text with specfied text alignment on this PdfDocument's current page.

Parameters:
str - text that needs to be written
rectangle - rectangle inside which the text needs to be written
alignment - constant specifying how the text needs to be aligned inside the rectangle
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfRect rectangle,
                      int alignment,
                      double rotation,
                      double firstLinePosition)
               throws IOException,
                      PdfException
Writes specified text rotated by rotation degrees with specified first-line position inside specified rectangle on this PdfDocument's current page.

The text is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
str - text that needs to be written
rectangle - rectangle inside which the text needs to be written
alignment - constant specifying how the text needs to be aligned inside the rectangle
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the text with reference to center of its bounding box
firstLinePosition - position inside the rectangle where the first line of text should begin (Applied in current measurement unit)
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfRect rectangle,
                      int alignment,
                      double rotation,
                      double firstLinePosition,
                      String pageRange)
               throws IOException,
                      PdfException
Writes specified text rotated by rotation degrees with specified alignment and first-line position inside specified rectangle on pages in specified page range.

The text is rotated on center of its bounding box by angle degrees in anti-clockwise direction.

Parameters:
str - text that needs to be written
rectangle - rectangle inside which the text needs to be written
alignment - how the text needs to be aligned inside the rectangle
rotation - (measured in anti-clockwise direction and expressed in degrees) tilt of the text with reference to center of its bounding box
firstLinePosition - position inside the rectangle where the first line of text should begin (Applied in current measurement unit)
pageRange - page range on whose pages the text needs to be written
Throws:
IOException - if an I/O error occurs.
PdfException - if an illegal argument is supplied.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfRect rectangle,
                      int alignment,
                      String pageRange)
               throws PdfException,
                      IOException
Writes specified text with specified alignment inside specified rectangle on pages in specified page range.

Parameters:
str - text that needs to be written
rectangle - rectangle inside which the text needs to be written
alignment - constant specifying how the text needs to be aligned inside the rectangle
pageRange - page range on whose pages the text needs to be written
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
See Also:
PdfTextFormatter
Sample Code
See example.

writeText

public void writeText(String str,
                      PdfRect rectangle,
                      String pageRange)
               throws PdfException,
                      IOException
Writes specified text inside specified rectangle on pages in specified page range.

Parameters:
str - text that needs to be written
rectangle - rectangle inside which the text needs to be written
pageRange - page range on whose pages the text needs to be written
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
Sample Code
See example.

writeText

public void writeText(String str,
                      Point pt,
                      int alignment)
               throws PdfException,
                      IOException
Throws:
PdfException
IOException

writeText

public void writeText(String str,
                      Point pt,
                      int alignment,
                      String pageRange)
               throws PdfException,
                      IOException
Throws:
PdfException
IOException

writeText

public void writeText(String str,
                      String pageRange)
               throws PdfException,
                      IOException
Writes specified text at current position on pages in specified page range.

Parameters:
str - text that needs to be written
pageRange - page range on whose pages the text needs to be written
Throws:
PdfException - if an illegal argument is supplied.
IOException - if an I/O error occurs.
Since:
1.0
Sample Code
See example.

Gnostice PDFOne
Pro. Ed. v1.41

To contact our support team, send an e-mail to support@gnostice.com.
 
© 2006 Gnostice Information Technologies Private Limited. All rights reserved.
www.gnostice.com