90 | | Description: Gets the size of the specified page. |
91 | | |
92 | | Parameters: pagenum: page number |
93 | | width: return the width of the page |
94 | | (NULL if width is not needed) |
95 | | height: return the height of the page |
96 | | (NULL if height is not needed) |
97 | | |
98 | | void: getPageSize( in long pagenum, inout double width, inout double height ); |
99 | | |
| 91 | Description: |
| 92 | Gets the size of the specified page. |
| 93 | Parameters: |
| 94 | ||pagenum||page number|| |
| 95 | ||width||return the width of the page (NULL if width is not needed)|| |
| 96 | ||height||return the height of the page (NULL if height is not needed)|| |
| 97 | Type: |
| 98 | void |
| 99 | Syntax: |
| 100 | {{{getPageSize( in long pagenum, inout double width, inout double height );}}} |
104 | | Description: First, scale the document to match the specified pixels per point, |
105 | | then render the rectangle given by the upper left corner at |
106 | | (src_x, src_y) and src_width by src_height. |
107 | | |
108 | | Parameters: pagenum: the page from which we are to render |
109 | | src_x: x coordinate of upper left corner |
110 | | src_y: y coordinate of upper left corner |
111 | | src_width: width of rectangle to render |
112 | | src_height: height of rectangle to render |
113 | | scale: scale specified as pixels per point |
114 | | (if isScalable() is FALSE, scale is ignored and assumed to be 1.0) |
115 | | rotation: rotate the document by the specified degree |
116 | | (allowed values are 0, 90, 180, 270) |
117 | | (if isRotable() is FALSE, rotation is ignored and assumed to be 0) |
118 | | pixbuf: pixbuf into which we are to render |
119 | | errorCode: return location for an error/warning code, or NULL |
120 | | error: return location for an error/warning, or NULL |
121 | | |
122 | | Syntax: renderPageToPixbuf( in long pagenum, in long src_x, in long src_y, |
123 | | in long src_width, in long src_height, |
124 | | in double scale, in long rotation, |
125 | | in LuPixbuf pixbuf, |
126 | | out long errorCode, inout string error ); |
127 | | |
| 105 | Description: |
| 106 | First, scale the document to match the specified pixels per point, then render the rectangle given by the upper left corner at (src_x, src_y) and src_width by src_height. |
| 107 | Parameters: |
| 108 | ||pagenum||the page from which we are to render|| |
| 109 | ||src_x||x coordinate of upper left corner|| |
| 110 | ||src_y||y coordinate of upper left corner|| |
| 111 | ||src_width||width of rectangle to render|| |
| 112 | ||src_height||height of rectangle to render|| |
| 113 | ||scale||scale specified as pixels per point (if isScalable() is FALSE, scale is ignored and assumed to be 1.0)|| |
| 114 | ||rotation||rotate the document by the specified degree (allowed values are 0, 90, 180, 270) (if isRotable() is FALSE, rotation is ignored and assumed to be 0)|| |
| 115 | ||pixbuf||pixbuf into which we are to render|| |
| 116 | ||errorCode||return location for an error/warning code, or NULL|| |
| 117 | ||error||return location for an error/warning, or NULL|| |
| 118 | Syntax: |
| 119 | {{{ |
| 120 | renderPageToPixbuf( in long pagenum, in long src_x, in long src_y, |
| 121 | in long src_width, in long src_height, |
| 122 | in double scale, in long rotation, |
| 123 | in LuPixbuf pixbuf, |
| 124 | out long errorCode, inout string error ); |
| 125 | }}} |
142 | | Description: Same as renderPageToPixbuf(), but received pointers to |
143 | | draw function, abort function and functions data. |
144 | | Callback functions must be defined as |
145 | | long _System *asynchCallbackFn( void *data ); |
146 | | |
147 | | Parameters: errorCode: return location for an error/warning code, or NULL |
148 | | error: return location for an error/warning, or NULL |
149 | | |
150 | | Note: You must implement renderPageToPixbuf() also, as |
151 | | it is used for printing. |
152 | | |
153 | | void: renderPageToPixbufAsynch( in long pagenum, in long src_x, |
154 | | in long src_y, in long src_width, in long src_height, |
155 | | in double scale, in long rotation, in LuPixbuf pixbuf, |
156 | | in asynchCallbackFn fnd, in asynchCallbackFn fna, |
157 | | in somToken fndata, |
158 | | out long errorCode, inout string error ); |
159 | | |
| 143 | Description: |
| 144 | Same as [#renderPageToPixbuf renderPageToPixbuf()], but received pointers to draw function, abort function and functions data. Callback functions must be defined as long _System *asynchCallbackFn( void *data ); |
| 145 | Parameters: |
| 146 | ||errorCode||return location for an error/warning code, or NULL|| |
| 147 | ||error||return location for an error/warning, or NULL|| |
| 148 | Note: |
| 149 | You must implement [#renderPageToPixbuf renderPageToPixbuf()] also, as it is used for printing. |
| 150 | Type: |
| 151 | void |
| 152 | Syntax: |
| 153 | {{{ |
| 154 | renderPageToPixbufAsynch( in long pagenum, in long src_x, |
| 155 | in long src_y, in long src_width, in long src_height, |
| 156 | in double scale, in long rotation, in LuPixbuf pixbuf, |
| 157 | in asynchCallbackFn fnd, in asynchCallbackFn fna, |
| 158 | in somToken fndata, |
| 159 | out long errorCode, inout string error ); |
| 160 | }}} |