pdfmodule.java

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

JAVA
1,945
字号
					    @Optional String optList)  {    env.stub("pdf_create_textflow");        return false;  }  /**   * Draws a bezier curve   */  public static boolean pdf_curveto(@NotNull PDF pdf,				    double x1,				    double y1,				    double x2,				    double y2,				    double x3,				    double y3)  {    if (pdf == null)      return false;        return pdf.curveto(x1, y1, x2, y2, x3, y3);  }  /**   * Creates a layer   */  public static boolean pdf_define_layer(Env env,					 @NotNull PDF pdf,					 String name,					 @Optional String optList)  {    env.stub("pdf_define_layer");        return false;  }  /**   * Delete a virtual file   */  public static boolean pdf_delete_pvf(Env env,				       @NotNull PDF pdf,				       String name)  {    env.stub("pdf_delete_pvf");        return false;  }  /**   * Delete a textflow object   */  public static boolean pdf_delete_textflow(Env env,					    @NotNull PDF pdf,					    int textflow)  {    env.stub("pdf_delete_textflow");        return false;  }  /**   * Delete the pdf object.   */  public static boolean pdf_delete(@NotNull PDF pdf)  {    try {      if (pdf == null)	return false;          return pdf.delete();    } catch (IOException e) {      throw new QuercusModuleException(e);    }  }  /**   * Adds a glyph to a custom encoding.   */  public static boolean pdf_encoding_set_char(Env env,					      @NotNull PDF pdf,					      String encoding,					      int slow,					      String glyphname,					      int uv)  {    env.stub("pdf_encoding_set_char");    return false;  }  /**   * Completes the document.   */  public static boolean pdf_end_document(@NotNull PDF pdf,					 @Optional String optlist)  {    try {      if (pdf == null)	return false;          return pdf.end_document(optlist);    } catch (IOException e) {      throw new QuercusModuleException(e);    }  }  /**   * Completes a font definition   */  public static boolean pdf_end_font(Env env,				     @NotNull PDF pdf)  {    env.stub("pdf_end_font");        return false;  }  /**   * Completes a glyph definition   */  public static boolean pdf_end_glyph(Env env,				     @NotNull PDF pdf)  {    env.stub("pdf_end_glyph");        return false;  }  /**   * Completes a structure element.   */  public static boolean pdf_end_item(Env env,				     @NotNull PDF pdf,				     int id)  {    env.stub("pdf_end_item");        return false;  }  /**   * Completes a layer   */  public static boolean pdf_end_layer(Env env,				      @NotNull PDF pdf)  {    env.stub("pdf_end_layer");        return false;  }  /**   * Completes a page   */  public static boolean pdf_end_page_ext(@NotNull PDF pdf,					 @Optional String optlist)  {    if (pdf == null)      return false;        return pdf.end_page_ext(optlist);  }  /**   * Completes a page   */  public static boolean pdf_end_page(@NotNull PDF pdf)  {    if (pdf == null)      return false;        return pdf.end_page();  }  /**   * Completes a pattern   */  public static boolean pdf_end_pattern(Env env,					@NotNull PDF pdf)  {    env.stub("pdf_end_pattern");    return false;  }  /**   * Completes a template   */  public static boolean pdf_end_template(Env env,					 @NotNull PDF pdf)  {    env.stub("pdf_end_template");    return false;  }  /**   * End the current path.   */  public static boolean pdf_end_path(@NotNull PDF pdf)  {    if (pdf == null)      return false;        return pdf.endpath();  }  /**   * Fill the image with data.   */  public static boolean pdf_fill_imageblock(Env env,					    @NotNull PDF pdf,					    int page,					    String blockname,					    int image,					    @Optional String optlist)  {    env.stub("pdf_fill_imageblock");        return false;  }  /**   * Fill the pdfblock with data.   */  public static boolean pdf_fill_pdfblock(Env env,					  @NotNull PDF pdf,					  int page,					  String blockname,					  int contents,					    @Optional String optlist)  {    env.stub("pdf_fill_pdfblock");        return false;  }  /**   * Fill and stroke the path.   */  public static boolean pdf_fill_stroke(@NotNull PDF pdf)  {    if (pdf == null)      return false;        return pdf.fill_stroke();  }  /**   * Fill the text with data.   */  public static boolean pdf_fill_textblock(Env env,					   @NotNull PDF pdf,					   int page,					   String block,					   String text,					   @Optional String optlist)  {    env.stub("pdf_fill_textblock");    return false;  }  /**   * Fill the path.   */  public static boolean pdf_fill(@NotNull PDF pdf)  {    if (pdf == null)      return false;        return pdf.fill();  }  /**   * Loads a font.   */  public static boolean pdf_findfont(Env env,				     @NotNull PDF pdf,				     String fontname,				     String encoding,				     int embed)  {    env.stub("pdf_findfont");        return false;  }  /**   * Place an image   */  public static boolean pdf_fit_image(@NotNull PDF pdf,				      @NotNull PDFImage image,				      double x,				      double y,				      @Optional String optlist)  {    if (pdf == null)      return false;        return pdf.fit_image(image, x, y, optlist);  }  /**   * Place an embedded pdf   */  public static boolean pdf_fit_pdi_page(Env env,					 @NotNull PDF pdf,					 int page,					 double x,					 double y,					 @Optional String optlist)  {    env.stub("pdf_fit_pdi_page");    return false;  }  /**   * Place a textflow object   */  public static boolean pdf_fit_textflow(Env env,					 @NotNull PDF pdf,					 int textflow,					 double llx,					 double lly,					 double urx,					 double ury,					 @Optional String optlist)  {    env.stub("pdf_fit_textflow");    return false;  }  /**   * Place a line of text.   */  public static boolean pdf_fit_textline(Env env,					 @NotNull PDF pdf,					 String text,					 double x,					 double y,					 @Optional String optlist)  {    env.stub("pdf_fit_textline");    return false;  }  /**   * Returns the name of the last failing function.   */  public static String pdf_get_apiname(Env env,					@NotNull PDF pdf)  {    env.stub("pdf_get_apiname");    return "";  }  /**   * Returns the buffer with the data.   */  public static Value pdf_get_buffer(Env env,				     @NotNull PDF pdf)  {    if (pdf == null)      return BooleanValue.FALSE;        return pdf.get_buffer(env);  }  /**   * Returns the last error message   */  public static String pdf_get_errmsg(PDF pdf)  {    if (pdf != null)      return pdf.get_errmsg();    else      return "";  }  /**   * Returns the last error number   */  public static int pdf_get_errnum(PDF pdf)  {    if (pdf != null)      return pdf.get_errnum();    else      return 0;  }  /**   * Returns the height of an image.   */  public static double pdf_get_image_height(@NotNull PDFImage image)  {    if (image != null)      return image.get_height();    else      return 0;  }  /**   * Returns the width of an image.   */  public static double pdf_get_image_width(@NotNull PDFImage image)  {    if (image != null)      return image.get_width();    else      return 0;  }    /**   * Returns the result as a string.   */  /*  public static Value pdf_get_buffer(Env env, @NotNull PDF pdf)  {    if (pdf != null)      return pdf.get_buffer(env);    else      return BooleanValue.FALSE;  }  */    /**   * Returns the named parameter.   */  public static String pdf_get_parameter(@NotNull PDF pdf,					String key,					@Optional double modifier)  {    if (pdf != null)      return pdf.get_parameter(key, modifier);    else      return "";  }    /**   * Returns the named pdi parameter.   */  public static String pdf_get_pdi_parameter(Env env,					     @NotNull PDF pdf,					     String key,					     int doc,					     int page,					     int reserved)  {    env.stub("pdf_get_pdi_parameter");        return "";  }    /**   * Returns the named pdi value.   */  public static double pdf_get_pdi_value(Env env,					     @NotNull PDF pdf,					     String key,					     int doc,					     int page,					     int reserved)  {    env.stub("pdf_get_pdi_value");        return 0;  }    /**   * Returns the named parameter.   */  public static double pdf_get_value(@NotNull PDF pdf,				     String key,				     @Optional double modifier)  {    if (pdf != null)      return pdf.get_value(key, modifier);    else      return 0;  }    /**   * Returns the textflow state   */  public static double pdf_info_textflow(Env env,					 @NotNull PDF pdf,					 int textflow,					 String key)  {    env.stub("pdf_info_textflow");    return 0;  }    /**   * Resets the graphic state   */  public static boolean pdf_initgraphics(Env env,					 @NotNull PDF pdf)  {    if (pdf != null)      return pdf.initgraphics(env);    else      return false;  }    /**   * Draw a line from the current position.   */  public static boolean pdf_lineto(@NotNull PDF pdf,				   double x,				   double y)  {    if (pdf == null)      return false;        return pdf.lineto(x, y);  }    /**   * Search for a font.   */  public static PDFFont pdf_load_font(@NotNull PDF pdf,				      String fontname,				      String encoding,				      @Optional String optlist)  {    try {      if (pdf == null)	return null;          return pdf.load_font(fontname, encoding, optlist);    } catch (IOException e) {      throw new QuercusModuleException(e);    }  }    /**   * Search for an icc profile   */  public static boolean pdf_load_iccprofile(Env env,					    @NotNull PDF pdf,					    String profileName,					    @Optional String optlist)  {    env.stub("pdf_load_iccprofile");    return false;  }    /**   * Loads an image   */  public static PDFImage pdf_load_image(@NotNull PDF pdf,					String imageType,					Path path,					@Optional String optlist)  {    try {      if (pdf == null)	return null;          return pdf.load_image(imageType, path, optlist);    } catch (IOException e) {      throw new QuercusModuleException(e);    }  }    /**   * Finds a spot color   */  public static boolean pdf_makespotcolor(Env env,					  @NotNull PDF pdf,					  String spotname)  {    env.stub("pdf_makespotcolor");    return false;  }    /**   * Sets the current graphics point.   */  public static boolean pdf_moveto(@NotNull PDF pdf,				   double x,				   double y)  {    if (pdf == null)      return false;        return pdf.moveto(x, y);  }  /**   * Creates a new PDF object.   */  public static PDF pdf_new(Env env)  {    return new PDF(env);  }  /**   * Opens a file.   */  public static boolean pdf_open_file(@NotNull PDF pdf,				      String filename)  {    return pdf_begin_document(pdf, filename, "");  }  /**   * Opens an image.   */  public static PDFImage pdf_open_image_file(@NotNull PDF pdf,					     String imagetype,					     Path filename,					     String stringparam,					     int intparam)  {    return pdf_load_image(pdf, imagetype, filename, "");  }  /**   * Opens an image.   */  public static boolean pdf_open_image_data(Env env,					     @NotNull PDF pdf,					     String imagetype,					     String source,					     String data,					     long length,					     long width,					     long height,					     int components,					     int bpc,					     String params)  {    env.stub("pdf_open_image_data");        return false;  }  /**

⌨️ 快捷键说明

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