Ancestor type: CObject
This type of object represents one page in document.
void moveAbove(ContentStream cs)
Move specified content stream in this page one level up in painting order.
void moveBelow(ContentStream cs)
Move specified content stream in this page one level down in painting order.
Move content stream with specified index in this page one level up in painting order.
Move content stream with specified index in this page one level down in painting order.
void addAnnotation(Annotation an)
Add copy of given annotation to this page
void setTransformMatrix(Variant tMatrix)
Set transform matrix of this page. Expects array with 6 real numbers as the matrix.
void prependContentStream(PdfOperatorStack opStack)
Add new content stream to page, created from provided stack of PDF operators. They must form a valid content stream Content stream is prepended before other content streams
void appendContentStream(PdfOperatorStack opStack)
Add new content stream to page, created from provided stack of PDF operators. They must form a valid content stream Content stream in appended after other content streams
string getFontId(string fontName)
For given font name (case sensitive) return it's ID if present on page. If the font is not present, returns NULL
string[] getFontIdsAndNames(bool onlyNames)
Return list of all font id's and base names from resource dictionary of a page. For each font id and name pair there are two consecutive elements in returned array, first one containing font id and second one containing the name, so number of elements in output array is always even. If parametr onlyNames is true, id's are ommited and only list of names is returned instead.
void addSystemType1Font(string fontName)
Add new Type 1 font to this page resource dictionary with specified font name It is supposed that you insert standard system font name that should be avaiable to all PDF viewers.
ContentStream getContentStream(int streamNumber)
Returns content stream with given number from this page Use data fetched by loadContentStreams method, if it wasn't called, it is called before returning the stream
void removeContentStream(int streamNumber)
Removes content stream with given number from page.
int getContentStreamCount()
Returns number of content streams in this page Use data fetched by loadContentStreams method, if it wasn't called, it is called before returning the count
ContentStream getChange(int changeNumber)
Return change with given number as content stream
void loadContentStreams()
Get all content streams from page and store them. Get the streams with getContentStreamCount and getContentStream functions. Usually it is not necessary to call this method, as these funtions will call it automatically on first need, but you may call it explicitly to reload the streams stored in this object from the page
Return text representation of this page
Return media box of this page as array (x1,y1,x2,y2). The mediabox is a rectangle from (x1,y1) to (x2,y2)
void setMediabox(double x1,double y1,double x2,double y2)
Set media box of this page to given rectangle - from (x1,y1) to (x2,y2)
void setMediabox(Rect rc)
Set media box of this page to given rectangle