com.caucho.quercus.lib.pdf
Class PDFModule

java.lang.Object
  extended by com.caucho.quercus.module.AbstractQuercusModule
      extended by com.caucho.quercus.lib.pdf.PDFModule
All Implemented Interfaces:
QuercusModule

public class PDFModule
extends AbstractQuercusModule

PHP PDF routines.


Field Summary
 
Fields inherited from class com.caucho.quercus.module.AbstractQuercusModule
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER
 
Constructor Summary
PDFModule()
           
 
Method Summary
 java.lang.String[] getLoadedExtensions()
          Returns true for the mysql extension.
static boolean pdf_activate_item(Env env, PDF pdf, int id)
          Activates a created element.
static boolean pdf_add_annotation(Env env, PDF pdf)
          Adds an annotation
static boolean pdf_add_bookmark(Env env, PDF pdf)
          Adds an bookmarkannotation
static boolean pdf_add_launchlink(Env env, PDF pdf, double llx, double lly, double urx, double ury, java.lang.String filename)
          Adds an launchlink
static boolean 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 pdf_add_nameddest(Env env, PDF pdf, java.lang.String name, java.lang.String optlist)
          Creates a named destination
static boolean 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 pdf_add_outline(Env env, PDF pdf, java.lang.String name, java.lang.String optlist)
          Creates an outline
static boolean 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 pdf_add_thumbnail(Env env, PDF pdf, PDFImage image)
          Adds a thumbnail
static boolean 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 pdf_arc(PDF pdf, double x1, double y1, double r, double a, double b)
          Creates a counterclockwise arc
static boolean pdf_arcn(PDF pdf, double x1, double y1, double r, double a, double b)
          Creates a clockwise arc
static boolean 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 pdf_begin_document(PDF pdf, java.lang.String fileName, java.lang.String optList)
          Starts the document.
static boolean 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 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 pdf_begin_item(Env env, PDF pdf, java.lang.String tag, java.lang.String optlist)
          Starts a structure element
static boolean pdf_begin_layer(Env env, PDF pdf, int layer)
          Starts a pdf layer
static boolean pdf_begin_page_ext(PDF pdf, double w, double h, java.lang.String optlist)
          Starts the page.
static boolean pdf_begin_page(PDF pdf, double w, double h)
          Starts the page.
static boolean pdf_begin_pattern(Env env, PDF pdf, double w, double h, double xStep, double yStep, int paintType)
          Starts a pattern
static boolean pdf_begin_template(Env env, PDF pdf, double w, double h)
          Starts a template
static boolean pdf_circle(PDF pdf, double x, double y, double r)
          Draws a circle
static boolean pdf_clip(PDF pdf)
          Clips the path.
static boolean pdf_close_image(Env env, PDF pdf, PDFImage image)
          Closes an image
static boolean pdf_close_pdi_page(Env env, PDF pdf, int page)
          Closes a page
static boolean pdf_close_pdi(Env env, PDF pdf, int doc)
          Closes a document
static boolean pdf_close(PDF pdf)
          Closes the pdf document.
static boolean pdf_closepath_fill_stroke(PDF pdf)
          Closes the path, fill, and stroke it.
static boolean pdf_closepath_stroke(PDF pdf)
          Closes the path and stroke it.
static boolean pdf_closepath(PDF pdf)
          Closes the path.
static boolean pdf_concat(PDF pdf, double a, double b, double c, double d, double e, double f)
          Concatenates a transformation matrix
static boolean pdf_continue_text(PDF pdf, java.lang.String text)
          Continues text at the next line.
static boolean pdf_create_action(Env env, PDF pdf, java.lang.String type, java.lang.String optList)
          Creates an action.
static boolean 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 pdf_create_bookmark(Env env, PDF pdf, java.lang.String text, java.lang.String optList)
          Creates a bookmark
static boolean 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 pdf_create_fieldgroup(Env env, PDF pdf, java.lang.String name, java.lang.String optList)
          Creates a form field group.
static boolean pdf_create_gstate(Env env, PDF pdf, java.lang.String optList)
          Creates a graphics state
static boolean 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 pdf_create_textflow(Env env, PDF pdf, java.lang.String text, java.lang.String optList)
          Creates a textflow object
static boolean pdf_curveto(PDF pdf, double x1, double y1, double x2, double y2, double x3, double y3)
          Draws a bezier curve
static boolean pdf_define_layer(Env env, PDF pdf, java.lang.String name, java.lang.String optList)
          Creates a layer
static boolean pdf_delete_pvf(Env env, PDF pdf, java.lang.String name)
          Delete a virtual file
static boolean pdf_delete_textflow(Env env, PDF pdf, int textflow)
          Delete a textflow object
static boolean pdf_delete(PDF pdf)
          Delete the pdf object.
static boolean 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 pdf_end_document(PDF pdf, java.lang.String optlist)
          Completes the document.
static boolean pdf_end_font(Env env, PDF pdf)
          Completes a font definition
static boolean pdf_end_glyph(Env env, PDF pdf)
          Completes a glyph definition
static boolean pdf_end_item(Env env, PDF pdf, int id)
          Completes a structure element.
static boolean pdf_end_layer(Env env, PDF pdf)
          Completes a layer
static boolean pdf_end_page_ext(PDF pdf, java.lang.String optlist)
          Completes a page
static boolean pdf_end_page(PDF pdf)
          Completes a page
static boolean pdf_end_path(PDF pdf)
          End the current path.
static boolean pdf_end_pattern(Env env, PDF pdf)
          Completes a pattern
static boolean pdf_end_template(Env env, PDF pdf)
          Completes a template
static boolean 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 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 pdf_fill_stroke(PDF pdf)
          Fill and stroke the path.
static boolean 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 pdf_fill(PDF pdf)
          Fill the path.
static boolean pdf_findfont(Env env, PDF pdf, java.lang.String fontname, java.lang.String encoding, int embed)
          Loads a font.
static boolean pdf_fit_image(PDF pdf, PDFImage image, double x, double y, java.lang.String optlist)
          Place an image
static boolean pdf_fit_pdi_page(Env env, PDF pdf, int page, double x, double y, java.lang.String optlist)
          Place an embedded pdf
static boolean 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 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 pdf_get_apiname(Env env, PDF pdf)
          Returns the name of the last failing function.
static Value pdf_get_buffer(Env env, PDF pdf)
          Returns the buffer with the data.
static java.lang.String pdf_get_errmsg(PDF pdf)
          Returns the last error message
static int pdf_get_errnum(PDF pdf)
          Returns the last error number
static double pdf_get_image_height(PDFImage image)
          Returns the height of an image.
static double pdf_get_image_width(PDFImage image)
          Returns the width of an image.
static java.lang.String pdf_get_parameter(PDF pdf, java.lang.String key, double modifier)
          Returns the named parameter.
static java.lang.String 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 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 pdf_get_value(PDF pdf, java.lang.String key, double modifier)
          Returns the named parameter.
static double pdf_info_textflow(Env env, PDF pdf, int textflow, java.lang.String key)
          Returns the textflow state
static boolean pdf_initgraphics(Env env, PDF pdf)
          Resets the graphic state
static boolean pdf_lineto(PDF pdf, double x, double y)
          Draw a line from the current position.
static PDFFont pdf_load_font(PDF pdf, java.lang.String fontname, java.lang.String encoding, java.lang.String optlist)
          Search for a font.
static boolean pdf_load_iccprofile(Env env, PDF pdf, java.lang.String profileName, java.lang.String optlist)
          Search for an icc profile
static PDFImage pdf_load_image(PDF pdf, java.lang.String imageType, Path path, java.lang.String optlist)
          Loads an image
static boolean pdf_makespotcolor(Env env, PDF pdf, java.lang.String spotname)
          Finds a spot color
static boolean pdf_moveto(PDF pdf, double x, double y)
          Sets the current graphics point.
static PDF pdf_new(Env env)
          Creates a new PDF object.
static boolean pdf_open_file(PDF pdf, java.lang.String filename)
          Opens a file.
static boolean 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 pdf_open_image_file(PDF pdf, java.lang.String imagetype, Path filename, java.lang.String stringparam, int intparam)
          Opens an image.
static boolean pdf_open_pdi_page(Env env, PDF pdf, int doc, int pagenumber, java.lang.String optlist)
          Opens an embedded page.
static boolean pdf_open_pdi(Env env, PDF pdf, java.lang.String filename, java.lang.String optlist)
          Opens an embedded document
static boolean pdf_place_image(PDF pdf, PDFImage image, double x, double y, double scale)
          Place an image.
static boolean pdf_place_pdi_page(Env env, PDF pdf, int page, double x, double y, double scaleX, double scaleY)
          Place an embedded page.
static boolean pdf_process_pdi(Env env, PDF pdf, int doc, int page, java.lang.String optlist)
          Process an imported PDF document.
static boolean pdf_rect(PDF pdf, double x, double y, double width, double height)
          Creates a rectangle
static boolean pdf_restore(PDF pdf)
          Restores the graphics state.
static boolean pdf_rotate(PDF pdf, double phi)
          Rotate the coordinates.
static boolean pdf_save(PDF pdf)
          Save the graphics state.
static boolean pdf_scale(PDF pdf, double scaleX, double scaleY)
          Scale the coordinates.
static boolean pdf_set_border_color(Env env, PDF pdf, double red, double green, double blue)
          Sets an annotation border color.
static boolean pdf_set_border_dash(Env env, PDF pdf, double black, double white)
          Sets an annotation border dash
static boolean pdf_set_border_style(Env env, PDF pdf, java.lang.String style, double width)
          Sets an annotation border style
static boolean pdf_set_gstate(Env env, PDF pdf, int gstate)
          Activate a graphics state.
static boolean pdf_set_info(PDF pdf, java.lang.String key, java.lang.String value)
          Sets document info.
static boolean pdf_set_layer_dependency(Env env, PDF pdf, java.lang.String type, java.lang.String optlist)
          Define a relationship between layers.
static boolean pdf_set_parameter(PDF pdf, java.lang.String key, java.lang.String value)
          Sets a string parameter.
static boolean pdf_set_text_pos(PDF pdf, double x, double y)
          Sets the text position
static boolean pdf_set_value(PDF pdf, java.lang.String key, double value)
          Sets a double parameter.
static boolean 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 pdf_setdash(PDF pdf, double black, double white)
          Sets the dashing
static boolean pdf_setdashpattern(Env env, PDF pdf, java.lang.String optlist)
          Sets the dash pattern
static boolean pdf_setflat(Env env, PDF pdf, double flatness)
          Sets the flatness
static boolean pdf_setfont(PDF pdf, PDFFont font, double size)
          Sets the font size
static boolean pdf_setgray_fill(PDF pdf, double g)
          Sets the fill color to gray
static boolean pdf_setgray_stroke(PDF pdf, double g)
          Sets the stroke color to gray
static boolean pdf_setgray(PDF pdf, double g)
          Sets the color to gray
static boolean pdf_setlinecap(Env env, PDF pdf, int value)
          Sets the linecap param
static boolean pdf_setlinejoin(Env env, PDF pdf, int value)
          Sets the linejoin param
static boolean pdf_setlinewidth(PDF pdf, double width)
          Sets the line width
static boolean 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 pdf_setmiterlimit(Env env, PDF pdf, double value)
          Sets the line miter limit.
static boolean pdf_setrgbcolor_fill(PDF pdf, double red, double green, double blue)
          Sets the fill in rgb
static boolean pdf_setrgbcolor_stroke(PDF pdf, double red, double green, double blue)
          Sets the stroke in rgb
static boolean pdf_setrgbcolor(PDF pdf, double red, double green, double blue)
          Sets the color in rgb
static boolean pdf_shading_pattern(Env env, PDF pdf, int shading, java.lang.String optlist)
          Sets the shading pattern
static int 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 pdf_shfill(Env env, PDF pdf, int shading)
          Fill with a shading object.
static boolean 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 pdf_show_xy(Env env, PDF pdf, java.lang.String text, double x, double y)
          Output text at a location
static boolean pdf_show(Env env, PDF pdf, java.lang.String text)
          Output text at the current
static boolean pdf_skew(PDF pdf, double alpha, double beta)
          Skew the coordinate system.
static double pdf_stringwidth(PDF pdf, java.lang.String text, PDFFont font, double size)
          Returns the width of text in the font.
static boolean pdf_stroke(PDF pdf)
          Strokes the path
static boolean pdf_suspend_page(Env env, PDF pdf, java.lang.String optlist)
          Suspend the page.
static boolean pdf_translate(PDF pdf, double x, double y)
          Sets the coordinate system origin.
static java.lang.String pdf_utf16_to_utf8(Env env, PDF pdf, java.lang.String utf16string)
          Convert from utf16 to utf8
static java.lang.String pdf_utf8_to_utf16(Env env, PDF pdf, java.lang.String utf8string)
          Convert from utf8 to utf16
 
Methods inherited from class com.caucho.quercus.module.AbstractQuercusModule
addConstant, addConstant, addConstant, getConstMap, getIniDefinitions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDFModule

public PDFModule()
Method Detail

getLoadedExtensions

public java.lang.String[] getLoadedExtensions()
Returns true for the mysql extension.

Specified by:
getLoadedExtensions in interface QuercusModule
Overrides:
getLoadedExtensions in class AbstractQuercusModule

pdf_activate_item

public static boolean pdf_activate_item(Env env,
                                        PDF pdf,
                                        int id)
Activates a created element.


pdf_add_annotation

public static boolean pdf_add_annotation(Env env,
                                         PDF pdf)
Adds an annotation


pdf_add_bookmark

public static boolean pdf_add_bookmark(Env env,
                                       PDF pdf)
Adds an bookmarkannotation


pdf_add_launchlink

public static boolean pdf_add_launchlink(Env env,
                                         PDF pdf,
                                         double llx,
                                         double lly,
                                         double urx,
                                         double ury,
                                         java.lang.String filename)
Adds an launchlink


pdf_add_locallink

public static boolean pdf_add_locallink(Env env,
                                        PDF pdf,
                                        double llx,
                                        double lly,
                                        double urx,
                                        double ury,
                                        int page,
                                        java.lang.String dest)
Adds a locallink


pdf_add_nameddest

public static boolean pdf_add_nameddest(Env env,
                                        PDF pdf,
                                        java.lang.String name,
                                        java.lang.String optlist)
Creates a named destination


pdf_add_note

public static boolean 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


pdf_add_outline

public static boolean pdf_add_outline(Env env,
                                      PDF pdf,
                                      java.lang.String name,
                                      java.lang.String optlist)
Creates an outline


pdf_add_pdflink

public static boolean 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


pdf_add_thumbnail

public static boolean pdf_add_thumbnail(Env env,
                                        PDF pdf,
                                        PDFImage image)
Adds a thumbnail


pdf_add_weblink

public static boolean pdf_add_weblink(Env env,
                                      PDF pdf,
                                      double llx,
                                      double lly,
                                      double urx,
                                      double ury,
                                      java.lang.String url)
Adds a web link


pdf_arc

public static boolean pdf_arc(PDF pdf,
                              double x1,
                              double y1,
                              double r,
                              double a,
                              double b)
Creates a counterclockwise arc


pdf_arcn

public static boolean pdf_arcn(PDF pdf,
                               double x1,
                               double y1,
                               double r,
                               double a,
                               double b)
Creates a clockwise arc


pdf_attach_file

public static boolean 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


pdf_begin_document

public static boolean pdf_begin_document(PDF pdf,
                                         java.lang.String fileName,
                                         java.lang.String optList)
Starts the document.


pdf_begin_font

public static boolean 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


pdf_begin_glyph

public static boolean 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


pdf_begin_item

public static boolean pdf_begin_item(Env env,
                                     PDF pdf,
                                     java.lang.String tag,
                                     java.lang.String optlist)
Starts a structure element


pdf_begin_layer

public static boolean pdf_begin_layer(Env env,
                                      PDF pdf,
                                      int layer)
Starts a pdf layer


pdf_begin_page_ext

public static boolean pdf_begin_page_ext(PDF pdf,
                                         double w,
                                         double h,
                                         java.lang.String optlist)
Starts the page.


pdf_begin_page

public static boolean pdf_begin_page(PDF pdf,
                                     double w,
                                     double h)
Starts the page.


pdf_begin_pattern

public static boolean pdf_begin_pattern(Env env,
                                        PDF pdf,
                                        double w,
                                        double h,
                                        double xStep,
                                        double yStep,
                                        int paintType)
Starts a pattern


pdf_begin_template

public static boolean pdf_begin_template(Env env,
                                         PDF pdf,
                                         double w,
                                         double h)
Starts a template


pdf_circle

public static boolean pdf_circle(PDF pdf,
                                 double x,
                                 double y,
                                 double r)
Draws a circle


pdf_clip

public static boolean pdf_clip(PDF pdf)
Clips the path.


pdf_close_image

public static boolean pdf_close_image(Env env,
                                      PDF pdf,
                                      PDFImage image)
Closes an image


pdf_close_pdi_page

public static boolean pdf_close_pdi_page(Env env,
                                         PDF pdf,
                                         int page)
Closes a page


pdf_close_pdi

public static boolean pdf_close_pdi(Env env,
                                    PDF pdf,
                                    int doc)
Closes a document


pdf_close

public static boolean pdf_close(PDF pdf)
Closes the pdf document.


pdf_closepath_fill_stroke

public static boolean pdf_closepath_fill_stroke(PDF pdf)
Closes the path, fill, and stroke it.


pdf_closepath_stroke

public static boolean pdf_closepath_stroke(PDF pdf)
Closes the path and stroke it.


pdf_closepath

public static boolean pdf_closepath(PDF pdf)
Closes the path.


pdf_concat

public static boolean pdf_concat(PDF pdf,
                                 double a,
                                 double b,
                                 double c,
                                 double d,
                                 double e,
                                 double f)
Concatenates a transformation matrix


pdf_continue_text

public static boolean pdf_continue_text(PDF pdf,
                                        java.lang.String text)
Continues text at the next line.


pdf_create_action

public static boolean pdf_create_action(Env env,
                                        PDF pdf,
                                        java.lang.String type,
                                        java.lang.String optList)
Creates an action.


pdf_create_annotation

public static boolean 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


pdf_create_bookmark

public static boolean pdf_create_bookmark(Env env,
                                          PDF pdf,
                                          java.lang.String text,
                                          java.lang.String optList)
Creates a bookmark


pdf_create_field

public static boolean 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.


pdf_create_fieldgroup

public static boolean pdf_create_fieldgroup(Env env,
                                            PDF pdf,
                                            java.lang.String name,
                                            java.lang.String optList)
Creates a form field group.


pdf_create_gstate

public static boolean pdf_create_gstate(Env env,
                                        PDF pdf,
                                        java.lang.String optList)
Creates a graphics state


pdf_create_pvf

public static boolean pdf_create_pvf(Env env,
                                     PDF pdf,
                                     java.lang.String filename,
                                     java.lang.String data,
                                     java.lang.String optList)
Creates a virtual file


pdf_create_textflow

public static boolean pdf_create_textflow(Env env,
                                          PDF pdf,
                                          java.lang.String text,
                                          java.lang.String optList)
Creates a textflow object


pdf_curveto

public static boolean pdf_curveto(PDF pdf,
                                  double x1,
                                  double y1,
                                  double x2,
                                  double y2,
                                  double x3,
                                  double y3)
Draws a bezier curve


pdf_define_layer

public static boolean pdf_define_layer(Env env,
                                       PDF pdf,
                                       java.lang.String name,
                                       java.lang.String optList)
Creates a layer


pdf_delete_pvf

public static boolean pdf_delete_pvf(Env env,
                                     PDF pdf,
                                     java.lang.String name)
Delete a virtual file


pdf_delete_textflow

public static boolean pdf_delete_textflow(Env env,
                                          PDF pdf,
                                          int textflow)
Delete a textflow object


pdf_delete

public static boolean pdf_delete(PDF pdf)
Delete the pdf object.


pdf_encoding_set_char

public static boolean 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.


pdf_end_document

public static boolean pdf_end_document(PDF pdf,
                                       java.lang.String optlist)
Completes the document.


pdf_end_font

public static boolean pdf_end_font(Env env,
                                   PDF pdf)
Completes a font definition


pdf_end_glyph

public static boolean pdf_end_glyph(Env env,
                                    PDF pdf)
Completes a glyph definition


pdf_end_item

public static boolean pdf_end_item(Env env,
                                   PDF pdf,
                                   int id)
Completes a structure element.


pdf_end_layer

public static boolean pdf_end_layer(Env env,
                                    PDF pdf)
Completes a layer


pdf_end_page_ext

public static boolean pdf_end_page_ext(PDF pdf,
                                       java.lang.String optlist)
Completes a page


pdf_end_page

public static boolean pdf_end_page(PDF pdf)
Completes a page


pdf_end_pattern

public static boolean pdf_end_pattern(Env env,
                                      PDF pdf)
Completes a pattern


pdf_end_template

public static boolean pdf_end_template(Env env,
                                       PDF pdf)
Completes a template


pdf_end_path

public static boolean pdf_end_path(PDF pdf)
End the current path.


pdf_fill_imageblock

public static boolean pdf_fill_imageblock(Env env,
                                          PDF pdf,
                                          int page,
                                          java.lang.String blockname,
                                          int image,
                                          java.lang.String optlist)
Fill the image with data.


pdf_fill_pdfblock

public static boolean pdf_fill_pdfblock(Env env,
                                        PDF pdf,
                                        int page,
                                        java.lang.String blockname,
                                        int contents,
                                        java.lang.String optlist)
Fill the pdfblock with data.


pdf_fill_stroke

public static boolean pdf_fill_stroke(PDF pdf)
Fill and stroke the path.


pdf_fill_textblock

public static boolean 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.


pdf_fill

public static boolean pdf_fill(PDF pdf)
Fill the path.


pdf_findfont

public static boolean pdf_findfont(Env env,
                                   PDF pdf,
                                   java.lang.String fontname,
                                   java.lang.String encoding,
                                   int embed)
Loads a font.


pdf_fit_image

public static boolean pdf_fit_image(PDF pdf,
                                    PDFImage image,
                                    double x,
                                    double y,
                                    java.lang.String optlist)
Place an image


pdf_fit_pdi_page

public static boolean pdf_fit_pdi_page(Env env,
                                       PDF pdf,
                                       int page,
                                       double x,
                                       double y,
                                       java.lang.String optlist)
Place an embedded pdf


pdf_fit_textflow

public static boolean 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


pdf_fit_textline

public static boolean pdf_fit_textline(Env env,
                                       PDF pdf,
                                       java.lang.String text,
                                       double x,
                                       double y,
                                       java.lang.String optlist)
Place a line of text.


pdf_get_apiname

public static java.lang.String pdf_get_apiname(Env env,
                                               PDF pdf)
Returns the name of the last failing function.


pdf_get_buffer

public static Value pdf_get_buffer(Env env,
                                   PDF pdf)
Returns the buffer with the data.


pdf_get_errmsg

public static java.lang.String pdf_get_errmsg(PDF pdf)
Returns the last error message


pdf_get_errnum

public static int pdf_get_errnum(PDF pdf)
Returns the last error number


pdf_get_image_height

public static double pdf_get_image_height(PDFImage image)
Returns the height of an image.


pdf_get_image_width

public static double pdf_get_image_width(PDFImage image)
Returns the width of an image.


pdf_get_parameter

public static java.lang.String pdf_get_parameter(PDF pdf,
                                                 java.lang.String key,
                                                 double modifier)
Returns the named parameter.


pdf_get_pdi_parameter

public static java.lang.String pdf_get_pdi_parameter(Env env,
                                                     PDF pdf,
                                                     java.lang.String key,
                                                     int doc,
                                                     int page,
                                                     int reserved)
Returns the named pdi parameter.


pdf_get_pdi_value

public static double pdf_get_pdi_value(Env env,
                                       PDF pdf,
                                       java.lang.String key,
                                       int doc,
                                       int page,
                                       int reserved)
Returns the named pdi value.


pdf_get_value

public static double pdf_get_value(PDF pdf,
                                   java.lang.String key,
                                   double modifier)
Returns the named parameter.


pdf_info_textflow

public static double pdf_info_textflow(Env env,
                                       PDF pdf,
                                       int textflow,
                                       java.lang.String key)
Returns the textflow state


pdf_initgraphics

public static boolean pdf_initgraphics(Env env,
                                       PDF pdf)
Resets the graphic state


pdf_lineto

public static boolean pdf_lineto(PDF pdf,
                                 double x,
                                 double y)
Draw a line from the current position.


pdf_load_font

public static PDFFont pdf_load_font(PDF pdf,
                                    java.lang.String fontname,
                                    java.lang.String encoding,
                                    java.lang.String optlist)
Search for a font.


pdf_load_iccprofile

public static boolean pdf_load_iccprofile(Env env,
                                          PDF pdf,
                                          java.lang.String profileName,
                                          java.lang.String optlist)
Search for an icc profile


pdf_load_image

public static PDFImage pdf_load_image(PDF pdf,
                                      java.lang.String imageType,
                                      Path path,
                                      java.lang.String optlist)
Loads an image


pdf_makespotcolor

public static boolean pdf_makespotcolor(Env env,
                                        PDF pdf,
                                        java.lang.String spotname)
Finds a spot color


pdf_moveto

public static boolean pdf_moveto(PDF pdf,
                                 double x,
                                 double y)
Sets the current graphics point.


pdf_new

public static PDF pdf_new(Env env)
Creates a new PDF object.


pdf_open_file

public static boolean pdf_open_file(PDF pdf,
                                    java.lang.String filename)
Opens a file.


pdf_open_image_file

public static PDFImage pdf_open_image_file(PDF pdf,
                                           java.lang.String imagetype,
                                           Path filename,
                                           java.lang.String stringparam,
                                           int intparam)
Opens an image.


pdf_open_image_data

public static boolean 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.


pdf_open_pdi_page

public static boolean pdf_open_pdi_page(Env env,
                                        PDF pdf,
                                        int doc,
                                        int pagenumber,
                                        java.lang.String optlist)
Opens an embedded page.


pdf_open_pdi

public static boolean pdf_open_pdi(Env env,
                                   PDF pdf,
                                   java.lang.String filename,
                                   java.lang.String optlist)
Opens an embedded document


pdf_place_image

public static boolean pdf_place_image(PDF pdf,
                                      PDFImage image,
                                      double x,
                                      double y,
                                      double scale)
Place an image.


pdf_place_pdi_page

public static boolean pdf_place_pdi_page(Env env,
                                         PDF pdf,
                                         int page,
                                         double x,
                                         double y,
                                         double scaleX,
                                         double scaleY)
Place an embedded page.


pdf_process_pdi

public static boolean pdf_process_pdi(Env env,
                                      PDF pdf,
                                      int doc,
                                      int page,
                                      java.lang.String optlist)
Process an imported PDF document.


pdf_rect

public static boolean pdf_rect(PDF pdf,
                               double x,
                               double y,
                               double width,
                               double height)
Creates a rectangle


pdf_restore

public static boolean pdf_restore(PDF pdf)
Restores the graphics state.


pdf_rotate

public static boolean pdf_rotate(PDF pdf,
                                 double phi)
Rotate the coordinates.


pdf_save

public static boolean pdf_save(PDF pdf)
Save the graphics state.


pdf_scale

public static boolean pdf_scale(PDF pdf,
                                double scaleX,
                                double scaleY)
Scale the coordinates.


pdf_set_border_color

public static boolean pdf_set_border_color(Env env,
                                           PDF pdf,
                                           double red,
                                           double green,
                                           double blue)
Sets an annotation border color.


pdf_set_border_dash

public static boolean pdf_set_border_dash(Env env,
                                          PDF pdf,
                                          double black,
                                          double white)
Sets an annotation border dash


pdf_set_border_style

public static boolean pdf_set_border_style(Env env,
                                           PDF pdf,
                                           java.lang.String style,
                                           double width)
Sets an annotation border style


pdf_set_gstate

public static boolean pdf_set_gstate(Env env,
                                     PDF pdf,
                                     int gstate)
Activate a graphics state.


pdf_set_info

public static boolean pdf_set_info(PDF pdf,
                                   java.lang.String key,
                                   java.lang.String value)
Sets document info.


pdf_set_layer_dependency

public static boolean pdf_set_layer_dependency(Env env,
                                               PDF pdf,
                                               java.lang.String type,
                                               java.lang.String optlist)
Define a relationship between layers.


pdf_set_parameter

public static boolean pdf_set_parameter(PDF pdf,
                                        java.lang.String key,
                                        java.lang.String value)
Sets a string parameter.


pdf_set_text_pos

public static boolean pdf_set_text_pos(PDF pdf,
                                       double x,
                                       double y)
Sets the text position


pdf_set_value

public static boolean pdf_set_value(PDF pdf,
                                    java.lang.String key,
                                    double value)
Sets a double parameter.


pdf_setcolor

public static boolean 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


pdf_setdash

public static boolean pdf_setdash(PDF pdf,
                                  double black,
                                  double white)
Sets the dashing


pdf_setdashpattern

public static boolean pdf_setdashpattern(Env env,
                                         PDF pdf,
                                         java.lang.String optlist)
Sets the dash pattern


pdf_setflat

public static boolean pdf_setflat(Env env,
                                  PDF pdf,
                                  double flatness)
Sets the flatness


pdf_setfont

public static boolean pdf_setfont(PDF pdf,
                                  PDFFont font,
                                  double size)
Sets the font size


pdf_setgray_fill

public static boolean pdf_setgray_fill(PDF pdf,
                                       double g)
Sets the fill color to gray


pdf_setgray_stroke

public static boolean pdf_setgray_stroke(PDF pdf,
                                         double g)
Sets the stroke color to gray


pdf_setgray

public static boolean pdf_setgray(PDF pdf,
                                  double g)
Sets the color to gray


pdf_setlinecap

public static boolean pdf_setlinecap(Env env,
                                     PDF pdf,
                                     int value)
Sets the linecap param


pdf_setlinejoin

public static boolean pdf_setlinejoin(Env env,
                                      PDF pdf,
                                      int value)
Sets the linejoin param


pdf_setlinewidth

public static boolean pdf_setlinewidth(PDF pdf,
                                       double width)
Sets the line width


pdf_setmatrix

public static boolean pdf_setmatrix(Env env,
                                    PDF pdf,
                                    double a,
                                    double b,
                                    double c,
                                    double d,
                                    double e,
                                    double f)
Sets the current transformation matrix


pdf_setmiterlimit

public static boolean pdf_setmiterlimit(Env env,
                                        PDF pdf,
                                        double value)
Sets the line miter limit.


pdf_setrgbcolor_fill

public static boolean pdf_setrgbcolor_fill(PDF pdf,
                                           double red,
                                           double green,
                                           double blue)
Sets the fill in rgb


pdf_setrgbcolor_stroke

public static boolean pdf_setrgbcolor_stroke(PDF pdf,
                                             double red,
                                             double green,
                                             double blue)
Sets the stroke in rgb


pdf_setrgbcolor

public static boolean pdf_setrgbcolor(PDF pdf,
                                      double red,
                                      double green,
                                      double blue)
Sets the color in rgb


pdf_shading_pattern

public static boolean pdf_shading_pattern(Env env,
                                          PDF pdf,
                                          int shading,
                                          java.lang.String optlist)
Sets the shading pattern


pdf_shading

public static int 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


pdf_shfill

public static boolean pdf_shfill(Env env,
                                 PDF pdf,
                                 int shading)
Fill with a shading object.


pdf_show_boxed

public static boolean 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.


pdf_show_xy

public static boolean pdf_show_xy(Env env,
                                  PDF pdf,
                                  java.lang.String text,
                                  double x,
                                  double y)
Output text at a location


pdf_show

public static boolean pdf_show(Env env,
                               PDF pdf,
                               java.lang.String text)
Output text at the current


pdf_skew

public static boolean pdf_skew(PDF pdf,
                               double alpha,
                               double beta)
Skew the coordinate system.


pdf_stringwidth

public static double pdf_stringwidth(PDF pdf,
                                     java.lang.String text,
                                     PDFFont font,
                                     double size)
Returns the width of text in the font.


pdf_stroke

public static boolean pdf_stroke(PDF pdf)
Strokes the path


pdf_suspend_page

public static boolean pdf_suspend_page(Env env,
                                       PDF pdf,
                                       java.lang.String optlist)
Suspend the page.


pdf_translate

public static boolean pdf_translate(PDF pdf,
                                    double x,
                                    double y)
Sets the coordinate system origin.


pdf_utf16_to_utf8

public static java.lang.String pdf_utf16_to_utf8(Env env,
                                                 PDF pdf,
                                                 java.lang.String utf16string)
Convert from utf16 to utf8


pdf_utf8_to_utf16

public static java.lang.String pdf_utf8_to_utf16(Env env,
                                                 PDF pdf,
                                                 java.lang.String utf8string)
Convert from utf8 to utf16