pdfmodule.java

来自「RESIN 3.2 最新源码」· Java 代码 · 共 1,945 行 · 第 1/3 页

JAVA
1,945
字号
   * Opens an embedded page.   */  public static boolean pdf_open_pdi_page(Env env,					  @NotNull PDF pdf,					  int doc,					  int pagenumber,					  @Optional String optlist)  {    env.stub("pdf_open_pdi_page");    return false;  }  /**   * Opens an embedded document   */  public static boolean pdf_open_pdi(Env env,				     @NotNull PDF pdf,				     String filename,				     @Optional String optlist)  {    env.stub("pdf_open_pdi");    return false;  }  /**   * Place an image.   */  public static boolean pdf_place_image(@NotNull PDF pdf,					PDFImage image,					double x,					double y,					double scale)  {    return pdf_fit_image(pdf, image, x, y, "");  }  /**   * Place an embedded page.   */  public static boolean pdf_place_pdi_page(Env env,					   @NotNull PDF pdf,					   int page,					   double x,					   double y,					   double scaleX,					   double scaleY)  {    return pdf_fit_pdi_page(env, pdf, page, x, y, "");  }  /**   * Process an imported PDF document.   */  public static boolean pdf_process_pdi(Env env,					@NotNull PDF pdf,					int doc,					int page,					@Optional String optlist)  {    env.stub("pdf_process_pdi");        return false;  }    /**   * Creates a rectangle   */  public static boolean pdf_rect(@NotNull PDF pdf,				 double x, double y,				 double width, double height)  {    if (pdf == null)      return false;        return pdf.rect(x, y, width, height);  }  /**   * Restores the graphics state.   */  public static boolean pdf_restore(@NotNull PDF pdf)  {    if (pdf == null)      return false;        return pdf.restore();  }  /**   * Rotate the coordinates.   */  public static boolean pdf_rotate(@NotNull PDF pdf,				   double phi)  {    if (pdf == null)      return false;        return pdf.rotate(phi);  }  /**   * Save the graphics state.   */  public static boolean pdf_save(@NotNull PDF pdf)  {    if (pdf == null)      return false;        return pdf.save();  }  /**   * Scale the coordinates.   */  public static boolean pdf_scale(@NotNull PDF pdf,				  double scaleX,				  double scaleY)  {    if (pdf == null)      return false;        return pdf.scale(scaleX, scaleY);  }  /**   * Sets an annotation border color.   */  public static boolean pdf_set_border_color(Env env,					     @NotNull PDF pdf,					     double red,					     double green,					     double blue)  {    env.stub("pdf_set_border_color");        return false;  }  /**   * Sets an annotation border dash   */  public static boolean pdf_set_border_dash(Env env,					    @NotNull PDF pdf,					    double black,					    double white)  {    env.stub("pdf_set_border_dash");        return false;  }  /**   * Sets an annotation border style   */  public static boolean pdf_set_border_style(Env env,					    @NotNull PDF pdf,					    String style,					    double width)  {    env.stub("pdf_set_border_style");        return false;  }  /**   * Activate a graphics state.   */  public static boolean pdf_set_gstate(Env env,				       @NotNull PDF pdf,				       int gstate)  {    env.stub("pdf_set_gstate");        return false;  }  /**   * Sets document info.   */  public static boolean pdf_set_info(@NotNull PDF pdf,				     String key,				     String value)  {    if (pdf == null)      return false;        return pdf.set_info(key, value);  }  /**   * Define a relationship between layers.   */  public static boolean pdf_set_layer_dependency(Env env,						 @NotNull PDF pdf,						 String type,						 @Optional String optlist)  {    env.stub("pdf_set_layer_dependency");        return false;  }  /**   * Sets a string parameter.   */  public static boolean pdf_set_parameter(@NotNull PDF pdf,					  String key,					  String value)  {    if (pdf != null)      return false;        return pdf.set_parameter(key, value);  }  /**   * Sets the text position   */  public static boolean pdf_set_text_pos(@NotNull PDF pdf,					 double x,					 double y)  {    if (pdf == null)      return false;        return pdf.set_text_pos(x, y);  }  /**   * Sets a double parameter.   */  public static boolean pdf_set_value(@NotNull PDF pdf,				      String key,				      double value)  {    if (pdf == null)      return false;        return pdf.set_value(key, value);  }  /**   * Sets the colorspace and color   */  public static boolean pdf_setcolor(@NotNull PDF pdf,				     String type,				     String colorspace,				     double c1,				     @Optional double c2,				     @Optional double c3,				     @Optional double c4)  {    if (pdf == null)      return false;        return pdf.setcolor(type, colorspace, c1, c2, c3, c4);  }  /**   * Sets the dashing   */  public static boolean pdf_setdash(@NotNull PDF pdf,				    double black,				    double white)  {    if (pdf == null)      return false;        return pdf.setdash(black, white);  }  /**   * Sets the dash pattern   */  public static boolean pdf_setdashpattern(Env env,					   @NotNull PDF pdf,					   String optlist)  {    if (pdf == null)      return false;        return pdf.setdashpattern(env, optlist);  }  /**   * Sets the flatness   */  public static boolean pdf_setflat(Env env,				    @NotNull PDF pdf,				    double flatness)  {    if (pdf == null)      return false;        return pdf.setflat(env, flatness);  }  /**   * Sets the font size   */  public static boolean pdf_setfont(@NotNull PDF pdf,				    @NotNull PDFFont font,				    double size)  {    try {      if (pdf == null)	return false;          return pdf.setfont(font, size);    } catch (IOException e) {      throw new QuercusModuleException(e);    }  }  /**   * Sets the fill color to gray   */  public static boolean pdf_setgray_fill(@NotNull PDF pdf,					 double g)  {    if (pdf == null)      return false;        return pdf.setgray_fill(g);  }  /**   * Sets the stroke color to gray   */  public static boolean pdf_setgray_stroke(@NotNull PDF pdf,					   double g)  {    if (pdf == null)      return false;        return pdf.setgray_stroke(g);  }  /**   * Sets the color to gray   */  public static boolean pdf_setgray(@NotNull PDF pdf,				    double g)  {    if (pdf == null)      return false;        return pdf.setgray(g);  }  /**   * Sets the linecap param   */  public static boolean pdf_setlinecap(Env env,				       @NotNull PDF pdf,				       int value)  {    if (pdf == null)      return false;        return pdf.setlinecap(env, value);  }  /**   * Sets the linejoin param   */  public static boolean pdf_setlinejoin(Env env,					@NotNull PDF pdf,					int value)  {    if (pdf == null)      return false;        return pdf.setlinejoin(env, value);  }  /**   * Sets the line width   */  public static boolean pdf_setlinewidth(@NotNull PDF pdf,					 double width)  {    if (pdf == null)      return false;        return pdf.setlinewidth(width);  }  /**   * Sets the current transformation matrix   */  public static boolean pdf_setmatrix(Env env,				      @NotNull PDF pdf,				      double a,				      double b,				      double c,				      double d,				      double e,				      double f)  {    if (pdf == null)      return false;        return pdf.setmatrix(env, a, b, c, d, e, f);  }  /**   * Sets the line miter limit.   */  public static boolean pdf_setmiterlimit(Env env,					  @NotNull PDF pdf,					  double value)  {    if (pdf == null)      return false;        return pdf.setmiterlimit(env, value);  }  /**   * Sets the fill in rgb   */  public static boolean pdf_setrgbcolor_fill(@NotNull PDF pdf,					     double red,					     double green,					     double blue)  {    if (pdf == null)      return false;        return pdf.setrgbcolor_fill(red, green, blue);  }  /**   * Sets the stroke in rgb   */  public static boolean pdf_setrgbcolor_stroke(@NotNull PDF pdf,					       double red,					       double green,					       double blue)  {    if (pdf == null)      return false;        return pdf.setrgbcolor_stroke(red, green, blue);  }  /**   * Sets the color in rgb   */  public static boolean pdf_setrgbcolor(@NotNull PDF pdf,					double red,					double green,					double blue)  {    if (pdf == null)      return false;        return pdf.setrgbcolor(red, green, blue);  }  /**   * Sets the shading pattern   */  public static boolean pdf_shading_pattern(Env env,					    @NotNull PDF pdf,					    int shading,					    @Optional String optlist)  {    if (pdf == null)      return false;        return pdf.shading_pattern(env, shading, optlist);  }  /**   * Define a blend   */  public static int pdf_shading(Env env,				@NotNull PDF pdf,				String type,				double x1,				double y1,				double x2,				double y2,				double c1,				double c2,				double c3,				double c4,				@Optional String optlist)  {    if (pdf == null)      return 0;        return pdf.shading(env, type, x1, y1, x2, y2, c1, c2, c3, c4, optlist);  }  /**   * Fill with a shading object.   */  public static boolean pdf_shfill(Env env,				   @NotNull PDF pdf,				   int shading)  {    if (pdf == null)      return false;        return pdf.shfill(env, shading);  }  /**   * Output text in a box.   */  public static boolean pdf_show_boxed(Env env,				       @NotNull PDF pdf,				       String text,				       double x,				       double y,				       double width,				       double height,				       String mode,				       @Optional String feature)  {    if (pdf == null)      return false;        return pdf.show_boxed(text, x, y, width, height, mode, feature);  }  /**   * Output text at a location   */  public static boolean pdf_show_xy(Env env,				    @NotNull PDF pdf,				    String text,				    double x,				    double y)  {    if (pdf == null)      return false;        return pdf.show_xy(text, x, y);  }  /**   * Output text at the current   */  public static boolean pdf_show(Env env,				 @NotNull PDF pdf,				 String text)  {    if (pdf == null)      return false;        return pdf.show(text);  }  /**   * Skew the coordinate system.   */  public static boolean pdf_skew(@NotNull PDF pdf,				 double alpha,				 double beta)  {    if (pdf == null)      return false;        return pdf.skew(alpha, beta);  }  /**   * Returns the width of text in the font.   */  public static double pdf_stringwidth(@NotNull PDF pdf,				       String text,				       @NotNull PDFFont font,				       double size)  {    if (pdf == null)      return 0;        return pdf.stringwidth(text, font, size);  }  /**   * Strokes the path   */  public static boolean pdf_stroke(@NotNull PDF pdf)  {    if (pdf == null)      return false;        return pdf.stroke();  }  /**   * Suspend the page.   */  public static boolean pdf_suspend_page(Env env,					 @NotNull PDF pdf,					 @Optional String optlist)  {    env.stub("pdf_suspend_page");        return false;  }  /**   * Sets the coordinate system origin.   */  public static boolean pdf_translate(@NotNull PDF pdf,				      double x,				      double y)  {    if (pdf == null)      return false;        return pdf.translate(x, y);  }  /**   * Convert from utf16 to utf8   */  public static String pdf_utf16_to_utf8(Env env,					  @NotNull PDF pdf,					  String utf16string)  {    env.stub("pdf_utf16_to_utf8");        return utf16string;  }  /**   * Convert from utf8 to utf16   */  public static String pdf_utf8_to_utf16(Env env,					 @NotNull PDF pdf,					  String utf8string)  {    env.stub("pdf_utf16_to_utf8");        return utf8string;  }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?