wb_琄肷upubNvȃNX
HPDF_Doc;
HPDF_Page;
...

wb_琄肷NXƃ\bh̍\

HPDF_Doc;
  void newDoc()
  void freeDoc()
  boolean hasDoc()
  void freeDocAll()
  void saveToStream()
  byte[] getContents() // original arg (HPDF_Doc pdf, HPDF_BYTE *buf, HPDF_UINT32 *size)
  long getStreamSize()
  byte[] readFromStream() // original arg (HPDF_Doc pdf, HPDF_BYTE *buf, HPDF_UINT32 *size)
  void resetStream()
  void saveToFile(String fileName)
  // void getError()
  // void getErrorDetail()
  // void resetError()
  // void checkError()
  void setPagesConfiguration(int pagePerPages)
  HPdfPage getPageByIndex(int index)
  
  HPdfPageLayout getPageLayout()
  void setPageLayout(HPdfPageLayout layout)
  HPdfPageMode getPageMode()
  void setPageMode(HPdfPageMode mode)
  EnumSet<HPdfViewerPreference> getViewerPreference()
  void setViewerPreference(HPdfViewerPreference value)
  void setOpenAction(HPdfDestination openAction)
  
  HPdfPage getCurrentPage()
  HPdfPage addPage()
  HPdfPage insertPage(HPdfPage page)
  
  HPdfFont getFont(String fontName, String encodingName)
  String loadType1FontFromFile(String afmFileName, String dataFileName) // original returns const char*
  HPdfFontDef getTTFontDefFromFile(String fileName, boolean embedding)
  String loadTTFontFromFile(String fileName, boolean embedding) // original returns const char*
  String loadTTFontFromFile2(String fileName, int index, boolean embedding) // original returns const char*
  
  void addPageLabel(int pageNum, HPdfPageNumStyle style, int firstPage, String prefix)
  
  void useJPFonts()
  void useKRFonts()
  void useCNSFonts()
  void useCNTFonts()
  
  HPdfOutline createOutLine(HPdfOutline parent, String title, HPdfEncoder encoder)
  
  HPdfEncoder getEncoder(String encodingName)
  HPdfEncoder getCurrentEncoder()
  void setCurrentEncoder(String encodingName)
  
  void useJPEncodings()
  void useKREncodings()
  void useCNSEncodings()
  void useCNTEncodings()
  void useUTFEncodings()
  
  HPdfImage loadPngImageFromMem(byte[] buffer, int size)
  HPdfImage loadPngImageFromFile(String filename)
  HPdfImage loadPngImageFromFile2(String filename)
  HPdfImage loadJpegImageFromFile(String filename)
  HPdfImage loadJpegImageFromMem(byte[] buffer, int size)
  HPdfImage loadU3DFromFile(String filename)
  HPdfImage loadRaw1BitImageFromMem(byte[] buffer, int width, int height, int lineWidth, boolean blackIs1, boolean topIsFirst)
  HPdfImage loadRawImageFromFile(String filename, int width, int height, HPdfColorSpace colorSpace)
  HPdfImage loadRawImageFromMem(byte[] buffer, int width, int height, HPdfColorSpace colorSpace, int bitsPerComponent)
  
  void setInfoAttr(HPdfInfoType type, String value)
  String getInfoAttr(HPdfInfoType type)
  void setInfoDateAttr(HPdfInfoType type, HPdfDate value)
  
  void setPassword(String ownerPasswd, String userPasswd)
  void setPermission(PdfPermission permission)
  void setEncryptionMode(HPdfEncryptMode mode, int keyLen)
  
  void setCompressionMode(int mode)
  
  void attachFile(String file)
  
  HPdfExtGState createExtGState()
  
  HPdfOutputIntent loadIccFromMem(HPdfStream iccData, HPdfXref xref, int numComponent)
  HPdfOutputIntent loadIccProfileFromFile(String iccFileName, int numcomponent)
  
HPDF_Page;
  void setWidth(float value)
  void setHeight(float value)
  void setSize(HPdfPageSizes size, HPdfDirection direction)
  void setRotate(int angle)
  void setZoom(float zoom)
  
  HPdfDestination createDestination()
  
  HPdfAnnotation create3DAnnot(HPdfRect rect, HPdfU3d u3d)
  HPdfAnnotation createTextAnnot(HPdfRect rect, String text, HPdfEncoder encoder)
  HPdfAnnotation createFreeTextAnnot(HPdfRect rect, String text, HPdfEncoder encoder)
  HPdfAnnotation createLineAnnot(String text, HPdfEncoder encoder)
  HPdfAnnotation createLinkAnnot(HPdfRect rect, HPdfDestination dst)
  HPdfAnnotation createURILinkAnnot(HPdfRect rect, String uri)
  HPdfAnnotation createTextMarkupAnnot(HPdfRect rect, String text, HPdfEncoder encoder, HPdfAnnotType subType)
  HPdfAnnotation createHighlightAnnot(HPdfRect rect, String text, HPdfEncoder encoder)
  HPdfAnnotation createUnderlineAnnot(HPdfRect rect, String text, HPdfEncoder encoder)
  HPdfAnnotation createSquigglyAnnot(HPdfRect rect, String text, HPdfEncoder encoder)
  HPdfAnnotation createStrikeOutAnnot(HPdfRect rect, String text, HPdfEncoder encoder)
  HPdfAnnotation createPopupAnnot(HPdfRect rect, HPdfAnnotation parent)
  HPdfAnnotation createStampAnnot(HPdfRect rect, HPdfStampAnnotName name, String text, HPdfEncoder encoder)
  HPdfAnnotation createProjectionAnnot(HPdfRect rect, String text, HPdfEncoder encoder)
  HPdfAnnotation createSquareAnnot(HPdfRect rect, String text, HPdfEncoder encoder)
  HPdfAnnotation createCircleAnnot(HPdfRect rect, String text, HPdfEncoder encoder)
  
  HPdf3DMeasure create3DC3DMeasure(HPdfPoint3D firstanchorpoint, HPdfPoint3D textanchorpoint)
  HPdf3DMeasure createPD33DMeasure(HPdfPoint3D annotationPlaneNormal, HPdfPoint3D firstAnchorPoint, HPdfPoint3D secondAnchorPoint)
  
  HPdfExData create3DAnnotExData()
  
  HPdfDict create3DView(HPdfU3D u3d, HPdfAnnotaion annot3d, String name)
  
  float textWidth(String text) // byte[]?
  int measureText(String text, float width, boolean wordwrap, float[] real_width) // first arg byte[] preferred? original last arg is HPDF_REAL*
  
  float getWidth()
  float getHeight()
  int getGMode()
  HPdfPoint getCurrentPos()
  // void getCurrentPos2(HPdfPoint *pos) // [out] arg is e*il to Java.
  HPdfPoint getCurrentTextPos()
  // void getCurrentTextPos2(HPdfPoint *pos) // [out] arg is e*il to Java.
  
  HPdfFont getCurrentFont()
  float getCurrentFontSize()
  HPdfTransMatrix getTransMatrix()
  float getLineWidth()
  HPdfLineCap getLineCap()
  HPdfLineJoin getLineJoin()
  float getMiterLimit()
  HPdfDashMode getDash()
  float getFlat()
  float getCharSpace()
  float getWordSpace()
  float getHorizontalScalling()
  float getTextLeading()
  HPdfTextRenderingMode getTextRenderingMode()
  // float getTextRaise() // orignal comment: 'This function is obsolete. Use HPDF_Page_GetTextRise.'
  float getTextRise()
  HPdfRGBColor getRGBFill()
  HPdfRGBColor getRGBStroke()
  HPdfCYMKColor getCYMKFill()
  HPdfCYMKColor getCYMKStroke()
  float getGrayFill()
  float getGrayStroke()
  HPdfColorSpace getStrokingColorSpace()
  HPdfColorSpace getFillingColorSpace()
  HPdfTransMatrix getTextMatrix()
  int getGStateDepth()
  
  void setLineWidth(float lineWidth)
  void setLineCap(LineCap lineCap)
  void setLineJoin(LineJoin lineJoin)
  void setMiterLimit(float miterLimit)
  //void setDash(int[] dashPtn, int numParam, int phase)
  void setDash(int[] dashPtn, int phase)
  
  void setFlat(float flatness)
  
  void setExtGState(HPdfExtGState extGstate)
  
  void gSave()
  void gRestore()
  void concat(float a, float b, float c, float d, float x, float y);
  
  void moveTo(float x, float y)
  void lineTo(float x, float y)
  
  void curveTo(float x1, float y1, float x2, float y2, float x3, float y3)
  void curveTo2(float x2, float y2, float x3, float y3)
  void curveTo3(float x1, float y1, float x3, float y3)
  
  void closePath()
  void rectangle(float x, float y, float width, float height)
  
  void stroke()
  void closePathStroke()
  
  void fill()
  void eofill()
  void fillStroke()
  void eofillStroke()
  void closePathFillStroke()
  void closePathEofillStroke()
  
  void endPath()
  
  void clip()
  void eoclip()
  
  void beginText()
  void endText()
  void setCharSpace(float value)
  void setWordSpace(float value)
  void setHorizontalScalling(float value)
  void setTextLeading(float value)
  void setFontAndSize(HPdfFont font, float size)
  void setTextRenderingMode(HPdfTextRenderingMode mode)
  void setTextRise(float value)
  // void setTextRaise(float value) // orignal comment: 'This function is obsolete. Use HPDF_Page_SetTextRise.'
  
  void moveTextPos(float x, float y)
  void moveTextPos2(float x, float y)
  void setTextMatrix(float a, float b, float c, float d, float x, float y)
  void moveToNextLine()
  
  void showText(String text)
  void showTextNextLine(String text)
  void showTextNextLineEx(float wordSpace, float charSpace, String text)
  
  void setGrayFill(float gray)
  void setGrayStroke(float gray)
  void setRGBFill(float r, float g, float b)
  void setRGBStroke(float r, float g, float b)
  void setCYMKFill(float c, float y, float m, float k)
  void setCYMKStroke(float c, float y, float m, float k)
  
  void executeXObject(HPdfXObject obj)
  
  void drawImage(HPdfImage image, float x, float y, float width, float height)
  void circle(float x, float y, float ray)
  void ellipse(float x, float y, float xray, float yray)
  void arc(float x, float y, float ray, float ang1, float ang2)
  
  void textOut(float xpos, float ypos, String text)
  void textRect(float left, float top, float right, float bottom, String text, HPdfTextAlign align, int[] len) // original last arg is HPDF_UINT*
  
  void setSlideShow(HPdfTransitionStyle type, float dispTime, float transTime)

  
HPDF_Pages;
HPDF_Stream;
HPDF_Image;
  void addSMask(HPdfImage smask)
  HPdfPoint getSize()
  // void getSize2(HPdfPoint *size) // [out] arg is e*il to Java.
  int getWidth()
  int getHeight()
  int getBitsPerComponent()
  String getBitsPerComponent()
  String getColorSpace()
  void setColorMask(int rmin, int rmax, int gmin, int gmax, int bmin, int bmax)
  void setMaskImage(HPdfImage maskImage)

HPDF_Font;
  String getFontName()
  String getEncodingName()
  int getUnicodeWidth(HPdfUnicode code)
  HPdfBox getBBox()
  int getAscent()
  int getDescent()
  int getXHeight()
  int getCapHeight()
  HPdfTextWidth textWidth(String text, int len) // first arg byte[] preferred?
  int measureText(String text, int len, float width, float fontSize, float charSpace, float wordSpace, boolean wordwrap, float[] realWidth) // first arg byte[] preferred? original last arg is HPDF_REAL*
  
HPDF_Outline;
  void setOpened(boolean opened)
  void setDestination(HPdfDestination dst)
  
HPDF_Encoder;
  HPdfEncoderType getType()
  HPdfByteType getByteType(byte[] text, int index) // original args HPDF_Encoder encoder, const char *text, UPDF_UINT index
  char getUnicode(int code)
  HPdfWritingMode getWritingMode()

HPDF_3DMeasure;
  void setName(String name)
  void setColor(HPdfRGBCoor color)
  void setTextSize(float textSize)
  void setTextBoxSize(int x, int y)
  void setText(String text, HPdfEncoder encoder)
  void setProjectionAnotation(HPdfAnnotation projectionanotation)

HPDF_ExData;
  (HPdf3DAnnotExData)
    void set3DMeasurement(HPdf3DMeasure measure)

HPDF_Destination;
  void setXYZ(float left, float top, float zoom)
  void setFit()
  void setFitH(float top)
  void setFitV(float left)
  void setFitR(float left, float bottom, float right, float top)
  void setFitB()
  void setFitBH(float top)
  void setFitBV(float left)

HPDF_XObject;
HPDF_Annotation;
  void setRGBColor(HPdfRGBColor color)
  void setCYMKColor(HPdfCYMKColor color)
  void setGrayColor(float color)
  void setNoColor()
  
  void set3DView(HPdfAnnotation annot3d, HPdfDict view)
  
  void setBorderStyle(HPdfBSSubtype subtype, float width, int dashOn, int dashOff, int dashPhase)

  (HPdfLinkAnnotation)
    void setHighlightMode(HighlightMode mode)
    void setBorderStyle(float width, int dashOn, int dashOff)
  (HPdfTextAnnotation)
    void setIcon(HPdfAnnotIcon icon)
    void setOpened(boolean opened)
  (HPdfMarkupAnnotation)
    void setTitle(String name)
    void setSubject(String name)
    void setCreationDate(HPdfDate value)
    void setTransparency(float value)
    void setIntent(HPdfAnnotIntent intent)
    void setPopup(HPdfAnnotaion popup)
    void setRectDiff(HPdfRect rect)
    void setCloudEffect(int cloudIntensity)
    void setInteriorRGBColor(HPdfRGBColor color)
    void setInteriorCYMKColor(HPdfCYMKColor color)
    void setInteriorGrayColor(float color)
    void setInteriorTransparent()
  (HPdfTextMarkupAnnotation)
    void setQuadPoints(HPdfPoint lb, HPdfPoint rb, HPdfPoint rt, HPdfPoint lt)
  (HPdfPopupAnnotation)
    void setOpened(boolean opened)
  (HPdfFreeTextAnnotation)
    void setLineEndingStyle(HPdfLineAnnotEndingStyle startStyle, HPdfLineAnnotEndingStyle endStyle)
    void set3PointCalloutline(HPdfPoint startPoint, HPdfPoint kneePoint, HPdfPoint endPoint)
    void setDefaultStyle(String style)
  (HPdfLineAnnotation)
    void setPosition(HPdfPoint startPoint, HPdfLineAnnotEndingStyle startStyle, HPdfPoint endPoint, HPdfLineAnnotEndingStyle endStyle)
    void setLeader(int leaderLen, int leaderExtLen, int leaderOffsetLen)
    void setCaption(boolean showCaption, HPdfLineAnnotCapPosition position, int horzOffset, int vertOffset)
  (HPdfProjectionAnnotation)
    void setExData(HPdfExData exdata)

HPDF_ExtGState;
  void setAlphaStroke(float value)
  void setAlphaFill(float value)
  void setBlendMode(BlendMode mode)

HPDF_FontDef;
HPDF_U3D;
HPDF_JavaScript;
HPDF_Error;
HPDF_MMgr;
HPDF_Dict;
  (HPdf3DView)
    void add3DC3DMeasure(HPdf3DMeasure measure)

HPDF_EmbeddedFile;
HPDF_OutputIntent;
HPDF_Xref;

// structures
HPdfPoint;
  float x
  float y

HPdfRect;
  float left
  float bottom
  float right
  float top

HPdfPoint3D;
  float x
  float y
  float z

HPdfBox; // is alias for HPdfRect

HPdfDate;
  int year
  int month
  int day
  int hour
  int minutes
  int seconds
  byte ind
  int offHour
  int offMinutes

HPdfTextWidth;
  int numchars
  int numwords // original comment: 'don't use this value (it may be change in the feature)./use numspace as alternated.'
  int width
  int numspace

HPdfDashMode;
  int[] ptn //length :8
  int numPtn
  int phase

HPdfTransMatrix;
  float a
  float b
  float c
  float d
  float x
  float y

HPdfRGBColor;
  float r
  float g
  float b

HPdfCYMKColor;
  float c
  float y
  float m
  float k



// enums

HPdfInfoType;
HPdfPdfaType;
HPdfPdfVer;
HPdfEncryptMode;
HPdfColorSpace;
HPdfLineCap;
HPdfLineJoin;
HPdfTextRenderingMode;
HPdfWritingMode;
HPdfPageLayout;
HPdfPageMode;
HPdfPageNumStyle;
HPdfDestinationType;
HPdfAnnotType;
HPdfAnnotFlgs;
HPdfAnnotHighlightMode;
HPdfAnnotIcon;
HPdfAnootIntent;
HPdfLineAnnotEndingStyle;
HPdfLineAnnotCapPosition;
HPdfStampAnnotName;
HPdfBSSubtype;
HPdfBlendMode;
HPdfTransitionStyle;
HPdfPageSizes;
HPdfPageDirection;
HPdfEncoderType;
HPdfByteType;
HPdfTextAlignment;
HPdfNameDictKey;
