|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.spire.pdf.PdfPageBase
public abstract class PdfPageBase
The base class for all pages.
| Constructor Summary | |
|---|---|
PdfPageBase(PdfDictionary dic)
Initializes a new instance of the class. |
|
| Method Summary | |
|---|---|
PdfTemplate |
createTemplate()
Creates a template from page content and all annotation appearances. |
void |
deleteImage(int imageIndex)
Deprecated. |
java.awt.image.BufferedImage[] |
extractImages()
Deprecated. |
java.awt.image.BufferedImage[] |
extractImages(boolean processImage)
Deprecated. |
java.awt.geom.Rectangle2D |
getActualBounds(boolean includeMargins)
Calculates actual bounds of the page. |
java.awt.geom.Dimension2D |
getActualSize()
Gets the actual size of the page. |
boolean |
getAllowContainTopDocTemplates()
Gets the template that Allow Contain Top Doc Templates. |
PdfAnnotationCollection |
getAnnotations()
Gets a collection of the annotations of the page. |
PdfAnnotationCollection |
getAnnotationsWidget()
Gets the field collection. |
java.awt.geom.Rectangle2D |
getArtBox()
Returns page region containing content. |
float |
getBackgroudOpacity()
Gets the transparency to draw the image |
java.awt.Color |
getBackgroundColor()
Gets page's background color. |
java.awt.image.BufferedImage |
getBackgroundImage()
Gets page's background image. |
java.awt.geom.Rectangle2D |
getBackgroundRegion()
The position and size of the background |
java.awt.geom.Rectangle2D |
getBleedBox()
Returns page region after clipping. |
PdfCanvas |
getCanvas()
Gets the graphics of the . |
java.awt.geom.Dimension2D |
getClientSize()
Returns a page size reduced by page margins and page template dimensions. |
java.awt.geom.Rectangle2D |
getCropBox()
Returns the visible region of the page. |
int |
getDefaultLayerIndex()
Gets index of the default layer. |
PdfImageInfo[] |
getImagesInfo()
Gets the information about the extracted image. |
java.awt.geom.Rectangle2D |
getMediaBox()
Returns page region mediabox. |
java.lang.String |
getPageLabel()
Get the page label. |
PdfPieceInfo |
getPagePieceInfo()
Returns page piece info. |
PdfPageRotateAngle |
getRotation()
Gets the page rotation. |
PdfSection |
getSection()
Gets the parent section of the page. |
java.awt.geom.Rectangle2D |
getTrimBox()
Returns page region after trimming. |
boolean |
isAutoAdjustContent()
|
void |
isAutoAdjustContent(boolean autoAdjustContent)
some document page content does no start with q and end with Q,so need adjust content. |
boolean |
isBlank()
Returns page is blank flag for page's content. |
void |
releaseExtactImageInfo()
Release image info. |
void |
replaceImage(int imageIndex,
PdfImage image)
Deprecated. |
void |
setAllowContainTopDocTemplates(boolean value)
Sets the template that Allow Contain Top Doc Templates. |
void |
setAnnotationsWidget(PdfAnnotationCollection value)
Sets the field collection. |
void |
setArtBox(java.awt.geom.Rectangle2D rect)
Set art box of the page. |
void |
setBackgroudOpacity(float value)
Sets the transparency to draw the image |
void |
setBackgroundColor(java.awt.Color value)
Sets page's background color. |
void |
setBackgroundImage(java.awt.image.BufferedImage image)
Sets page's background image. |
void |
setBackgroundImage(java.lang.String imageFileName)
Sets page's background image. |
void |
setBackgroundRegion(java.awt.geom.Rectangle2D value)
|
void |
setCropBox(java.awt.geom.Rectangle2D rect)
Set crop box of the page. |
void |
setDefaultLayerIndex(int value)
Sets index of the default layer. |
void |
setPagePieceInfo(PdfPieceInfo pieceInfo)
Sets the page piece info. |
void |
setRotation(PdfPageRotateAngle rotateAngle)
Sets the page rotation. |
void |
setTabOrder(TabOrder tabOrder)
Set tab order. |
void |
setTrimBox(java.awt.geom.Rectangle2D rect)
Set trim box of the page. |
boolean |
tryCompressImage(int imgIndex)
Deprecated. |
| Constructor Detail |
|---|
public PdfPageBase(PdfDictionary dic)
dic - The page dictionary.| Method Detail |
|---|
public void isAutoAdjustContent(boolean autoAdjustContent)
autoAdjustContent - public boolean isAutoAdjustContent()
public boolean isBlank()
public java.awt.geom.Rectangle2D getMediaBox()
public java.awt.geom.Rectangle2D getCropBox()
public void setCropBox(java.awt.geom.Rectangle2D rect)
rect - The crop box rectangle.public java.awt.geom.Rectangle2D getBleedBox()
public java.awt.geom.Rectangle2D getTrimBox()
public void setTrimBox(java.awt.geom.Rectangle2D rect)
rect - The trim box rectangle.public java.awt.geom.Rectangle2D getArtBox()
public void setArtBox(java.awt.geom.Rectangle2D rect)
rect - The art box rectangle.public boolean getAllowContainTopDocTemplates()
public void setAllowContainTopDocTemplates(boolean value)
public java.awt.geom.Dimension2D getActualSize()
public PdfPieceInfo getPagePieceInfo()
public void setPagePieceInfo(PdfPieceInfo pieceInfo)
public PdfAnnotationCollection getAnnotations()
public PdfAnnotationCollection getAnnotationsWidget()
public void setAnnotationsWidget(PdfAnnotationCollection value)
public PdfImageInfo[] getImagesInfo()
com.spire.ms.System.Exceptionpublic PdfCanvas getCanvas()
public PdfSection getSection()
public int getDefaultLayerIndex()
public void setDefaultLayerIndex(int value)
public PdfPageRotateAngle getRotation()
public void setRotation(PdfPageRotateAngle rotateAngle)
rotateAngle - rotateAnglepublic java.awt.image.BufferedImage getBackgroundImage()
public void setBackgroundImage(java.awt.image.BufferedImage image)
image - The imagepublic void setBackgroundImage(java.lang.String imageFileName)
imageFileName - The image filenamepublic java.awt.Color getBackgroundColor()
public void setBackgroundColor(java.awt.Color value)
value - The color.public java.lang.String getPageLabel()
public float getBackgroudOpacity()
public void setBackgroudOpacity(float value)
public java.awt.geom.Rectangle2D getBackgroundRegion()
public void setBackgroundRegion(java.awt.geom.Rectangle2D value)
public java.awt.geom.Dimension2D getClientSize()
It's the actual size of the page where some output can be performed.public java.awt.geom.Rectangle2D getActualBounds(boolean includeMargins)
includeMargins - If true - take into consideration Margins.
@Deprecated
public void replaceImage(int imageIndex,
PdfImage image)
imageIndex - index of an imageimage - The New Replace imagepublic PdfTemplate createTemplate()
@Deprecated public java.awt.image.BufferedImage[] extractImages()
public void releaseExtactImageInfo()
@Deprecated public java.awt.image.BufferedImage[] extractImages(boolean processImage)
@Deprecated public void deleteImage(int imageIndex)
imageIndex - The image index.@Deprecated public boolean tryCompressImage(int imgIndex)
imgIndex - The image index
com.spire.ms.System.Exceptionpublic void setTabOrder(TabOrder tabOrder)
tabOrder - The order name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||