Package | Description |
---|---|
com.caucho.quercus.lib.pdf |
Modifier and Type | Method and Description |
---|---|
static PDF |
PDFModule.pdf_new(Env env)
Creates a new PDF object.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
PDFModule.pdf_activate_item(Env env,
PDF pdf,
int id)
Activates a created element.
|
static boolean |
PDFModule.pdf_add_annotation(Env env,
PDF pdf)
Adds an annotation
|
static boolean |
PDFModule.pdf_add_bookmark(Env env,
PDF pdf)
Adds an bookmarkannotation
|
static boolean |
PDFModule.pdf_add_launchlink(Env env,
PDF pdf,
double llx,
double lly,
double urx,
double ury,
java.lang.String filename)
Adds an launchlink
|
static boolean |
PDFModule.pdf_add_locallink(Env env,
PDF pdf,
double llx,
double lly,
double urx,
double ury,
int page,
java.lang.String dest)
Adds a locallink
|
static boolean |
PDFModule.pdf_add_nameddest(Env env,
PDF pdf,
java.lang.String name,
java.lang.String optlist)
Creates a named destination
|
static boolean |
PDFModule.pdf_add_note(Env env,
PDF pdf,
double llx,
double lly,
double urx,
double ury,
java.lang.String contents,
java.lang.String title,
java.lang.String icon,
int open)
Creates an annotation
|
static boolean |
PDFModule.pdf_add_outline(Env env,
PDF pdf,
java.lang.String name,
java.lang.String optlist)
Creates an outline
|
static boolean |
PDFModule.pdf_add_pdflink(Env env,
PDF pdf,
double llx,
double lly,
double urx,
double ury,
java.lang.String filename,
int page,
java.lang.String dest)
Creates a file link annotation
|
static boolean |
PDFModule.pdf_add_thumbnail(Env env,
PDF pdf,
PDFImage image)
Adds a thumbnail
|
static boolean |
PDFModule.pdf_add_weblink(Env env,
PDF pdf,
double llx,
double lly,
double urx,
double ury,
java.lang.String url)
Adds a web link
|
static boolean |
PDFModule.pdf_arc(PDF pdf,
double x1,
double y1,
double r,
double a,
double b)
Creates a counterclockwise arc
|
static boolean |
PDFModule.pdf_arcn(PDF pdf,
double x1,
double y1,
double r,
double a,
double b)
Creates a clockwise arc
|
static boolean |
PDFModule.pdf_attach_file(Env env,
PDF pdf,
double llx,
double lly,
double urx,
double ury,
java.lang.String filename,
java.lang.String description,
java.lang.String author,
java.lang.String mimetype,
java.lang.String icon)
Adds a file attachment
|
static boolean |
PDFModule.pdf_begin_document(PDF pdf,
java.lang.String fileName,
java.lang.String optList)
Starts the document.
|
static boolean |
PDFModule.pdf_begin_font(Env env,
PDF pdf,
java.lang.String fileName,
double a,
double b,
double c,
double d,
double e,
double f,
java.lang.String optList)
Starts a font definition
|
static boolean |
PDFModule.pdf_begin_glyph(Env env,
PDF pdf,
java.lang.String glyphname,
double wx,
double llx,
double lly,
double urx,
double ury)
Starts a glyph definition
|
static boolean |
PDFModule.pdf_begin_item(Env env,
PDF pdf,
java.lang.String tag,
java.lang.String optlist)
Starts a structure element
|
static boolean |
PDFModule.pdf_begin_layer(Env env,
PDF pdf,
int layer)
Starts a pdf layer
|
static boolean |
PDFModule.pdf_begin_page_ext(PDF pdf,
double w,
double h,
java.lang.String optlist)
Starts the page.
|
static boolean |
PDFModule.pdf_begin_page(PDF pdf,
double w,
double h)
Starts the page.
|
static boolean |
PDFModule.pdf_begin_pattern(Env env,
PDF pdf,
double w,
double h,
double xStep,
double yStep,
int paintType)
Starts a pattern
|
static boolean |
PDFModule.pdf_begin_template(Env env,
PDF pdf,
double w,
double h)
Starts a template
|
static boolean |
PDFModule.pdf_circle(PDF pdf,
double x,
double y,
double r)
Draws a circle
|
static boolean |
PDFModule.pdf_clip(PDF pdf)
Clips the path.
|
static boolean |
PDFModule.pdf_close_image(Env env,
PDF pdf,
PDFImage image)
Closes an image
|
static boolean |
PDFModule.pdf_close_pdi_page(Env env,
PDF pdf,
int page)
Closes a page
|
static boolean |
PDFModule.pdf_close_pdi(Env env,
PDF pdf,
int doc)
Closes a document
|
static boolean |
PDFModule.pdf_close(PDF pdf)
Closes the pdf document.
|
static boolean |
PDFModule.pdf_closepath_fill_stroke(PDF pdf)
Closes the path, fill, and stroke it.
|
static boolean |
PDFModule.pdf_closepath_stroke(PDF pdf)
Closes the path and stroke it.
|
static boolean |
PDFModule.pdf_closepath(PDF pdf)
Closes the path.
|
static boolean |
PDFModule.pdf_concat(PDF pdf,
double a,
double b,
double c,
double d,
double e,
double f)
Concatenates a transformation matrix
|
static boolean |
PDFModule.pdf_continue_text(PDF pdf,
java.lang.String text)
Continues text at the next line.
|
static boolean |
PDFModule.pdf_create_action(Env env,
PDF pdf,
java.lang.String type,
java.lang.String optList)
Creates an action.
|
static boolean |
PDFModule.pdf_create_annotation(Env env,
PDF pdf,
double llx,
double lly,
double urx,
double ury,
java.lang.String type,
java.lang.String optList)
Creates a rectangular annotation
|
static boolean |
PDFModule.pdf_create_bookmark(Env env,
PDF pdf,
java.lang.String text,
java.lang.String optList)
Creates a bookmark
|
static boolean |
PDFModule.pdf_create_field(Env env,
PDF pdf,
double llx,
double lly,
double urx,
double ury,
java.lang.String name,
java.lang.String type,
java.lang.String optList)
Creates a form field.
|
static boolean |
PDFModule.pdf_create_fieldgroup(Env env,
PDF pdf,
java.lang.String name,
java.lang.String optList)
Creates a form field group.
|
static boolean |
PDFModule.pdf_create_gstate(Env env,
PDF pdf,
java.lang.String optList)
Creates a graphics state
|
static boolean |
PDFModule.pdf_create_pvf(Env env,
PDF pdf,
java.lang.String filename,
java.lang.String data,
java.lang.String optList)
Creates a virtual file
|
static boolean |
PDFModule.pdf_create_textflow(Env env,
PDF pdf,
java.lang.String text,
java.lang.String optList)
Creates a textflow object
|
static boolean |
PDFModule.pdf_curveto(PDF pdf,
double x1,
double y1,
double x2,
double y2,
double x3,
double y3)
Draws a bezier curve
|
static boolean |
PDFModule.pdf_define_layer(Env env,
PDF pdf,
java.lang.String name,
java.lang.String optList)
Creates a layer
|
static boolean |
PDFModule.pdf_delete_pvf(Env env,
PDF pdf,
java.lang.String name)
Delete a virtual file
|
static boolean |
PDFModule.pdf_delete_textflow(Env env,
PDF pdf,
int textflow)
Delete a textflow object
|
static boolean |
PDFModule.pdf_delete(PDF pdf)
Delete the pdf object.
|
static boolean |
PDFModule.pdf_encoding_set_char(Env env,
PDF pdf,
java.lang.String encoding,
int slow,
java.lang.String glyphname,
int uv)
Adds a glyph to a custom encoding.
|
static boolean |
PDFModule.pdf_end_document(PDF pdf,
java.lang.String optlist)
Completes the document.
|
static boolean |
PDFModule.pdf_end_font(Env env,
PDF pdf)
Completes a font definition
|
static boolean |
PDFModule.pdf_end_glyph(Env env,
PDF pdf)
Completes a glyph definition
|
static boolean |
PDFModule.pdf_end_item(Env env,
PDF pdf,
int id)
Completes a structure element.
|
static boolean |
PDFModule.pdf_end_layer(Env env,
PDF pdf)
Completes a layer
|
static boolean |
PDFModule.pdf_end_page_ext(PDF pdf,
java.lang.String optlist)
Completes a page
|
static boolean |
PDFModule.pdf_end_page(PDF pdf)
Completes a page
|
static boolean |
PDFModule.pdf_end_path(PDF pdf)
End the current path.
|
static boolean |
PDFModule.pdf_end_pattern(Env env,
PDF pdf)
Completes a pattern
|
static boolean |
PDFModule.pdf_end_template(Env env,
PDF pdf)
Completes a template
|
static boolean |
PDFModule.pdf_fill_imageblock(Env env,
PDF pdf,
int page,
java.lang.String blockname,
int image,
java.lang.String optlist)
Fill the image with data.
|
static boolean |
PDFModule.pdf_fill_pdfblock(Env env,
PDF pdf,
int page,
java.lang.String blockname,
int contents,
java.lang.String optlist)
Fill the pdfblock with data.
|
static boolean |
PDFModule.pdf_fill_stroke(PDF pdf)
Fill and stroke the path.
|
static boolean |
PDFModule.pdf_fill_textblock(Env env,
PDF pdf,
int page,
java.lang.String block,
java.lang.String text,
java.lang.String optlist)
Fill the text with data.
|
static boolean |
PDFModule.pdf_fill(PDF pdf)
Fill the path.
|
static boolean |
PDFModule.pdf_findfont(Env env,
PDF pdf,
java.lang.String fontname,
java.lang.String encoding,
int embed)
Loads a font.
|
static boolean |
PDFModule.pdf_fit_image(PDF pdf,
PDFImage image,
double x,
double y,
java.lang.String optlist)
Place an image
|
static boolean |
PDFModule.pdf_fit_pdi_page(Env env,
PDF pdf,
int page,
double x,
double y,
java.lang.String optlist)
Place an embedded pdf
|
static boolean |
PDFModule.pdf_fit_textflow(Env env,
PDF pdf,
int textflow,
double llx,
double lly,
double urx,
double ury,
java.lang.String optlist)
Place a textflow object
|
static boolean |
PDFModule.pdf_fit_textline(Env env,
PDF pdf,
java.lang.String text,
double x,
double y,
java.lang.String optlist)
Place a line of text.
|
static java.lang.String |
PDFModule.pdf_get_apiname(Env env,
PDF pdf)
Returns the name of the last failing function.
|
static Value |
PDFModule.pdf_get_buffer(Env env,
PDF pdf)
Returns the buffer with the data.
|
static java.lang.String |
PDFModule.pdf_get_errmsg(PDF pdf)
Returns the last error message
|
static int |
PDFModule.pdf_get_errnum(PDF pdf)
Returns the last error number
|
static java.lang.String |
PDFModule.pdf_get_parameter(PDF pdf,
java.lang.String key,
double modifier)
Returns the named parameter.
|
static java.lang.String |
PDFModule.pdf_get_pdi_parameter(Env env,
PDF pdf,
java.lang.String key,
int doc,
int page,
int reserved)
Returns the named pdi parameter.
|
static double |
PDFModule.pdf_get_pdi_value(Env env,
PDF pdf,
java.lang.String key,
int doc,
int page,
int reserved)
Returns the named pdi value.
|
static double |
PDFModule.pdf_get_value(PDF pdf,
java.lang.String key,
double modifier)
Returns the named parameter.
|
static double |
PDFModule.pdf_info_textflow(Env env,
PDF pdf,
int textflow,
java.lang.String key)
Returns the textflow state
|
static boolean |
PDFModule.pdf_initgraphics(Env env,
PDF pdf)
Resets the graphic state
|
static boolean |
PDFModule.pdf_lineto(PDF pdf,
double x,
double y)
Draw a line from the current position.
|
static PDFFont |
PDFModule.pdf_load_font(PDF pdf,
java.lang.String fontname,
java.lang.String encoding,
java.lang.String optlist)
Search for a font.
|
static boolean |
PDFModule.pdf_load_iccprofile(Env env,
PDF pdf,
java.lang.String profileName,
java.lang.String optlist)
Search for an icc profile
|
static PDFImage |
PDFModule.pdf_load_image(PDF pdf,
java.lang.String imageType,
Path path,
java.lang.String optlist)
Loads an image
|
static boolean |
PDFModule.pdf_makespotcolor(Env env,
PDF pdf,
java.lang.String spotname)
Finds a spot color
|
static boolean |
PDFModule.pdf_moveto(PDF pdf,
double x,
double y)
Sets the current graphics point.
|
static boolean |
PDFModule.pdf_open_file(PDF pdf,
java.lang.String filename)
Opens a file.
|
static boolean |
PDFModule.pdf_open_image_data(Env env,
PDF pdf,
java.lang.String imagetype,
java.lang.String source,
java.lang.String data,
long length,
long width,
long height,
int components,
int bpc,
java.lang.String params)
Opens an image.
|
static PDFImage |
PDFModule.pdf_open_image_file(PDF pdf,
java.lang.String imagetype,
Path filename,
java.lang.String stringparam,
int intparam)
Opens an image.
|
static boolean |
PDFModule.pdf_open_pdi_page(Env env,
PDF pdf,
int doc,
int pagenumber,
java.lang.String optlist)
Opens an embedded page.
|
static boolean |
PDFModule.pdf_open_pdi(Env env,
PDF pdf,
java.lang.String filename,
java.lang.String optlist)
Opens an embedded document
|
static boolean |
PDFModule.pdf_place_image(PDF pdf,
PDFImage image,
double x,
double y,
double scale)
Place an image.
|
static boolean |
PDFModule.pdf_place_pdi_page(Env env,
PDF pdf,
int page,
double x,
double y,
double scaleX,
double scaleY)
Place an embedded page.
|
static boolean |
PDFModule.pdf_process_pdi(Env env,
PDF pdf,
int doc,
int page,
java.lang.String optlist)
Process an imported PDF document.
|
static boolean |
PDFModule.pdf_rect(PDF pdf,
double x,
double y,
double width,
double height)
Creates a rectangle
|
static boolean |
PDFModule.pdf_restore(PDF pdf)
Restores the graphics state.
|
static boolean |
PDFModule.pdf_rotate(PDF pdf,
double phi)
Rotate the coordinates.
|
static boolean |
PDFModule.pdf_save(PDF pdf)
Save the graphics state.
|
static boolean |
PDFModule.pdf_scale(PDF pdf,
double scaleX,
double scaleY)
Scale the coordinates.
|
static boolean |
PDFModule.pdf_set_border_color(Env env,
PDF pdf,
double red,
double green,
double blue)
Sets an annotation border color.
|
static boolean |
PDFModule.pdf_set_border_dash(Env env,
PDF pdf,
double black,
double white)
Sets an annotation border dash
|
static boolean |
PDFModule.pdf_set_border_style(Env env,
PDF pdf,
java.lang.String style,
double width)
Sets an annotation border style
|
static boolean |
PDFModule.pdf_set_gstate(Env env,
PDF pdf,
int gstate)
Activate a graphics state.
|
static boolean |
PDFModule.pdf_set_info(PDF pdf,
java.lang.String key,
java.lang.String value)
Sets document info.
|
static boolean |
PDFModule.pdf_set_layer_dependency(Env env,
PDF pdf,
java.lang.String type,
java.lang.String optlist)
Define a relationship between layers.
|
static boolean |
PDFModule.pdf_set_parameter(PDF pdf,
java.lang.String key,
java.lang.String value)
Sets a string parameter.
|
static boolean |
PDFModule.pdf_set_text_pos(PDF pdf,
double x,
double y)
Sets the text position
|
static boolean |
PDFModule.pdf_set_value(PDF pdf,
java.lang.String key,
double value)
Sets a double parameter.
|
static boolean |
PDFModule.pdf_setcolor(PDF pdf,
java.lang.String type,
java.lang.String colorspace,
double c1,
double c2,
double c3,
double c4)
Sets the colorspace and color
|
static boolean |
PDFModule.pdf_setdash(PDF pdf,
double black,
double white)
Sets the dashing
|
static boolean |
PDFModule.pdf_setdashpattern(Env env,
PDF pdf,
java.lang.String optlist)
Sets the dash pattern
|
static boolean |
PDFModule.pdf_setflat(Env env,
PDF pdf,
double flatness)
Sets the flatness
|
static boolean |
PDFModule.pdf_setfont(PDF pdf,
PDFFont font,
double size)
Sets the font size
|
static boolean |
PDFModule.pdf_setgray_fill(PDF pdf,
double g)
Sets the fill color to gray
|
static boolean |
PDFModule.pdf_setgray_stroke(PDF pdf,
double g)
Sets the stroke color to gray
|
static boolean |
PDFModule.pdf_setgray(PDF pdf,
double g)
Sets the color to gray
|
static boolean |
PDFModule.pdf_setlinecap(Env env,
PDF pdf,
int value)
Sets the linecap param
|
static boolean |
PDFModule.pdf_setlinejoin(Env env,
PDF pdf,
int value)
Sets the linejoin param
|
static boolean |
PDFModule.pdf_setlinewidth(PDF pdf,
double width)
Sets the line width
|
static boolean |
PDFModule.pdf_setmatrix(Env env,
PDF pdf,
double a,
double b,
double c,
double d,
double e,
double f)
Sets the current transformation matrix
|
static boolean |
PDFModule.pdf_setmiterlimit(Env env,
PDF pdf,
double value)
Sets the line miter limit.
|
static boolean |
PDFModule.pdf_setrgbcolor_fill(PDF pdf,
double red,
double green,
double blue)
Sets the fill in rgb
|
static boolean |
PDFModule.pdf_setrgbcolor_stroke(PDF pdf,
double red,
double green,
double blue)
Sets the stroke in rgb
|
static boolean |
PDFModule.pdf_setrgbcolor(PDF pdf,
double red,
double green,
double blue)
Sets the color in rgb
|
static boolean |
PDFModule.pdf_shading_pattern(Env env,
PDF pdf,
int shading,
java.lang.String optlist)
Sets the shading pattern
|
static int |
PDFModule.pdf_shading(Env env,
PDF pdf,
java.lang.String type,
double x1,
double y1,
double x2,
double y2,
double c1,
double c2,
double c3,
double c4,
java.lang.String optlist)
Define a blend
|
static boolean |
PDFModule.pdf_shfill(Env env,
PDF pdf,
int shading)
Fill with a shading object.
|
static boolean |
PDFModule.pdf_show_boxed(Env env,
PDF pdf,
java.lang.String text,
double x,
double y,
double width,
double height,
java.lang.String mode,
java.lang.String feature)
Output text in a box.
|
static boolean |
PDFModule.pdf_show_xy(Env env,
PDF pdf,
java.lang.String text,
double x,
double y)
Output text at a location
|
static boolean |
PDFModule.pdf_show(Env env,
PDF pdf,
java.lang.String text)
Output text at the current
|
static boolean |
PDFModule.pdf_skew(PDF pdf,
double alpha,
double beta)
Skew the coordinate system.
|
static double |
PDFModule.pdf_stringwidth(PDF pdf,
java.lang.String text,
PDFFont font,
double size)
Returns the width of text in the font.
|
static boolean |
PDFModule.pdf_stroke(PDF pdf)
Strokes the path
|
static boolean |
PDFModule.pdf_suspend_page(Env env,
PDF pdf,
java.lang.String optlist)
Suspend the page.
|
static boolean |
PDFModule.pdf_translate(PDF pdf,
double x,
double y)
Sets the coordinate system origin.
|
static java.lang.String |
PDFModule.pdf_utf16_to_utf8(Env env,
PDF pdf,
java.lang.String utf16string)
Convert from utf16 to utf8
|
static java.lang.String |
PDFModule.pdf_utf8_to_utf16(Env env,
PDF pdf,
java.lang.String utf8string)
Convert from utf8 to utf16
|