Not all of the functions in the
libharu API are currently implemented in the C$PDF library routine. If you attempt to call an op-code for a function that is not
implemented, you receive the following error:
Invalid or missing parameter to C$PDF
The following op-codes and their parameters are currently supported; cross-reference them with the
libharu API documentation for full details on calling each function:
Note: op-codes without a return value, simply return a SIGNED-INT or PIC S9(9) COMP-5 data item indicating success (zero) or failure
(non-zero) of the call.
- HPDF-3DANNOTEXDATA-SET3DMEASUREMENT
- Parameters:
1
|
ExData handle
|
2
|
Measure handle
|
- HPDF-3DANNOTEXDATA-SETPROJECTIONANNOTATION
- Parameters:
1
|
Measure handle
|
2
|
Annotation handle
|
- HPDF-3DC3DMEASURE-SETTEXT
- Parameters:
1
|
Measure handle
|
2
|
text to set
|
3
|
Encoder handle
|
- HPDF-3DC3DMEASURE-SETTEXTBOXSIZE
- Parameters:
1
|
Measure handle
|
2
|
X value
|
3
|
Y value
|
- HPDF-3DMEASURE-SETCOLOR
- Parameters:
1
|
Measure handle
|
2
|
An HPDF-RGBCOLOR group item (see
cpdf.def)
|
- HPDF-3DMEASURE-SETNAME
- Parameters:
1
|
Measure handle
|
2
|
Name value (PIC X(n))
|
- HPDF-3DMEASURE-SETTEXTSIZE
- Parameters:
1
|
Measure handle
|
2
|
Text size (PIC S9(6)v999 COMP-5)
|
- HPDF-3DVIEW-ADD3DC3MEASURE
- Parameters:
1
|
View handle
|
2
|
Measure handle
|
- HPDF-ADDPAGE
- Parameters: None
- Returns: HPDF-DOC handle
- HPDF-ADDPAGELABEL
- Parameters:
1
|
Document handle
|
2
|
First page number
|
3
|
Page style
|
4
|
First page number to use
|
5
|
Prefix for page label
|
- HPDF-ANNOT-SET3DVIEW
- Parameters:
1
|
MMGR handle
|
2
|
Annotation handle
|
3
|
Annotation handle
|
4
|
View handle
|
- HPDF-ANNOT-SETCMYKCOLOR
- Parameters:
1
|
Annotation handle
|
2
|
HPDF-CMYKCOLOR group item
|
- HPDF-ANNOT-SETNOCOLOR
- Parameters:
- HPDF-ANNOTATION-SETBORDERSTYLE
- Parameters:
1
|
Annotation handle
|
2
|
Subtype
|
3
|
Width
|
4
|
Dash-On
|
5
|
Dash-Off
|
6
|
Dash-Phase
|
- HPDF-ATTACHFILE
- Parameters:
1
|
Document handle
|
2
|
Name of file to attach to the document
|
- HPDF-CHECKERROR
- Parameters:
- HPDF-CREATE3DANNOT
- Parameters:
1
|
Page handle
|
2
|
HPDF-RECTANGLE group item (see
cpdf.def)
|
3
|
Toolbar visible?
|
4
|
Navigation panel visible?
|
5
|
U3D handle
|
6
|
Image handle
|
- HPDF-CREATE3DANNOTEXDATA
- Parameters:
- Returns: ExData handle
- HPDF-CREATE3DC3DMEASURE
- Parameters:
1
|
Page handle
|
2
|
HPDF-POINT-3D group item (see
cpdf.def)
|
3
|
HPDF-POINT-3D group item (see
cpdf.def)
|
- HPDF-CREATE3DVIEW
- Parameters:
1
|
Page handle
|
2
|
U3D handle
|
3
|
Annotation handle
|
4
|
Name
|
- Returns: 3D View handle
- HPDF-CREATEEXTGSTATE
- Parameters:
- Returns: An ExtGState handle.
- HPDF-CREATEOUTLINE
- Parameters:
1
|
HPDF-DOC handle
|
2
|
Parent (may be null)
|
3
|
Title
|
4
|
Encoder handle (may be null or omitted)
|
- Returns: outline handle
- HPDF-DESTINATION-SETFIT
- Parameters:
- HPDF-DESTINATION-SETFITB
- Parameters:
- HPDF-DESTINATION-SETFITBH
- Parameters:
1
|
Destination handle
|
2
|
Top value
|
- HPDF-DESTINATION-SETFITBV
- Parameters:
1
|
Destination handle
|
2
|
Left value
|
- HPDF-DESTINATION-SETFITH
- Parameters:
1
|
Destination handle
|
2
|
Top value
|
- HPDF-DESTINATION-SETFITR
- Parameters:
1
|
Destination handle
|
2
|
Left value
|
3
|
Bottom value
|
4
|
Right value
|
5
|
Top value
|
- HPDF-DESTINATION-SETFITV
- Parameters:
1
|
Destination handle
|
2
|
Left value
|
- HPDF-DESTINATION-SETXYZ
- Parameters:
1
|
Destination handle
|
2
|
Left
|
3
|
Top
|
4
|
Zoom
|
- HPDF-ENCODER-GETBYTETYPE
- Parameters:
1
|
Encoder handle
|
2
|
Text to test
|
3
|
(optional) Index to the character in the text. Defaults to 0.
|
- HPDF-ENCODER-GETTYPE
- Parameters:
- HPDF-ENCODER-GETUNICODE
- Parameters:
1
|
Encoder handle
|
2
|
2-byte Unicode numeric value
|
- Returns: Translated Unicode value.
- HPDF-ENCODER-GETWRITINGMODE
- Parameters:
- HPDF-EXTGSTATE-SETALPHAFILL
- Parameters:
1
|
ExtGState handle
|
2
|
Alpha fill value
|
- HPDF-EXTGSTATE-SETALPHASTROKE
- Parameters:
1
|
ExtGState handle
|
2
|
Alpha stroke value
|
- HPDF-EXTGSTATE-SETBLENDMODE
- Parameters:
1
|
ExtGState handle
|
2
|
Blend mode value
|
- HPDF-FILEWRITER-NEW
- Parameters:
1
|
Document handle
|
2
|
Output file name
|
- Returns: Stream handle (which must be freed using HPDF-STREAM-FREE).
- HPDF-FONT-GETASCENT
- Parameters:
- HPDF-FONT-GETBBOX
- Parameters:
1
|
Font handle
|
2
|
HPDF-RECTANGLE group item (see
cpdf.def)
|
- HPDF-FONT-GETCAPHEIGHT
- Parameters:
- HPDF-GETCONTENTS
- Parameters:
1
|
Document handle
|
2
|
(Output) Contents of document
|
3
|
(Optional) Input - length of parameter 2; Output - number of bytes written to parameter 2
|
- HPDF-GETCURRENTPAGE
- Parameters:
- Returns: Current page handle
- HPDF-FONT-GETDESCENT
- Parameters:
- HPDF-GETERRORDETAIL
- Parameters:
- Returns: Error detail
- HPDF-FONT-GETENCODINGNAME
- Parameters:
1
|
Font handle
|
2
|
(Output) Encoding name
|
- HPDF-FONT-GETFONTNAME
- Parameters:
1
|
Font handle
|
2
|
(Output) Font name
|
- HPDF-GETINFOATTR
- Parameters:
1
|
Document handle
|
2
|
Type of info to get
|
3
|
(Output) Info value
|
- HPDF-GETPAGEBYINDEX
- Parameters:
1
|
Document handle
|
2
|
Index of page to get
|
- HPDF-GETPAGELAYOUT
- Parameters:
- HPDF-GETPAGEMMGR
- Parameters:
- Returns: MMGR handle
- HPDF-GETPAGEMODE
- Parameters:
- HPDF-GETSTRREAMSIZE
- Parameters:
- Returns: Stream size (in bytes)
- HPDF-GETTTFONTDEFFROMFILE
- Parameters:
1
|
Document handle
|
2
|
TT Font file name
|
3
|
Embed font in document?
|
- HPDF-FONT-GETUNICODEWIDTH
- Parameters:
1
|
Font handle
|
2
|
Unicode string (that must be terminated with low-values)
|
- HPDF-GETVERSION
- Parameters:
1
|
(Output) Return version string
|
- HPDF-GETVIEWERPREFERENCE
- Parameters:
- HPDF-FONT-MEASURETEXT
- Parameters:
1
|
Font handle
|
2
|
Text to measure
|
3
|
Length of text (If NULL, use size of text)
|
4
|
Width of area
|
5
|
Size of font
|
6
|
Character spacing
|
7
|
Word spacing
|
8
|
Word wrap
|
9
|
(Output) Real width of the text
|
- HPDF-FONT-TEXTWIDTH
- Parameters:
1
|
Font handle
|
2
|
Text to measure
|
3
|
(Output) An HPDF-FONT-TEXTWIDTH group (see
cpdf.def)
|
- HPDF-FONT-GETXHEIGHT
- Parameters:
- HPDF-FREE
- Parameters:
- HPDF-FREEDOCALL
- Parameters:
- HPDF-FREEDOC
- Parameters:
- HPDF-FREETEXTANNOT-SET2POINTCALLOUTLINE
- Parameters:
1
|
Annotation handle
|
2
|
HPDF-POINT group item (see
cpdf.def)
|
3
|
HPDF-POINT group item (see
cpdf.def)
|
4
|
HPDF-POINT group item (see
cpdf.def)
|
- HPDF-FREETEXTANNOT-SETDEFAULTSTYLE
- Parameters:
1
|
Annotation handle
|
2
|
Style (PIC X(N))
|
- HPDF-FREETEXTANNOT-SETLINEENDINGSSTYLE
- Parameters:
1
|
Annotation handle
|
2
|
First line ending style
|
3
|
Second line ending style
|
- HPDF-GETCURRENTENCODER
- Parameters:
- Returns: current encoder handle
- HPDF-GETENCODER
- Parameters:
1
|
HPDF-DOC handle
|
2
|
Encoder name
|
- Returns: encoder handle
- HPDF-GETERROR
- Parameters:
1
|
HPDF-DOC handle
|
2
|
Error detail (output, optional)
|
- Returns: error code
- HPDF-GETFONT
- Parameters:
1
|
HPDF-DOC handle
|
2
|
Font name
|
|
Encoding name (optional)
|
- Returns: font handle (not compatible with ACUCOBOL-GT graphical font handles)
- HPDF-HASDOC
- Parameters:
- HPDF-ICC-LOADICCFROMMEM
- Parameters:
1
|
Document handle
|
2
|
MMGR handle
|
3
|
Stream handle
|
4
|
XREF handle
|
5
|
Component number
|
- Returns: Output intent handle
- HPDF-IMAGE-ADDSMASK
- Parameters:
1
|
Image handle
|
2
|
Image mask handle
|
- HPDF-IMAGE-GETBITSPERCOMPONENT
- Parameters:
- When HPDF-IMAGE-GETHEIGHT succeeds, it returns the number of bits. Otherwise, it returns 0.
- HPDF-IMAGE-GETCOLORSPACE
- Parameters:
1
|
Image handle
|
2
|
Color space name
PIC X(10) or larger
|
- Returns: Color space name.
- HPDF-IMAGE-GETHEIGHT
- Parameters:
- HPDF-IMAGE-GETSIZE
- Parameters:
1
|
Image handle
|
2
|
Size of image
Note: This parameter must be of the definition:
01 hpdf-point.
03 hpdf-width s9(6)v999 comp-5.
03 hpdf-height s9(6)v999 comp-5.
|
- We recommend that you use HPDF-IMAGE-GETSIZE2 instead, as it performs the same function but has the additional capability
of returning a libharu error code (and not simply a non-zero integer on failure), if required.
- HPDF-IMAGE-GETSIZE2
- Parameters:
1
|
Image handle
|
2
|
Size of image
Note: This parameter must be of the definition:
01 hpdf-point.
03 hpdf-width s9(6)v999 comp-5.
03 hpdf-height s9(6)v999 comp-5.
|
- Returns: libharu error code (if applicable)
- HPDF-IMAGE-GETWIDTH
- Parameters:
- Returns: Width of image
- HPDF-IMAGE-LOADRAW1BITIMAGEFROMMEM
- Parameters:
- HPDF-IMAGE-SETCOLORMASK
- Parameters:
1
|
Image handle
|
2
|
The lower limit of Red
|
3
|
The upper limit of Red
|
4
|
The lower limit of Green
|
5
|
The upper limit of Green
|
6
|
The lower limit of Blue
|
|
The upper limit of Blue
|
- HPDF-IMAGE-SETMASKIMAGE
- Parameters:
1
|
Image handle
|
2
|
Image mask handle
|
- Retuns: A libharu error code (if applicable)
- HPDF-INSERTPAGE
- Parameters:
1
|
HPDF-DOC handle
|
2
|
HPDF-PAGE handle
|
- Returns: new HPDF-PAGE handle
- HPDF-LINEANNOT-SETCAPTION
- Parameters:
1
|
Annotation handle
|
2
|
Show Caption flag
|
3
|
Caption position value
|
4
|
Horizontal offset
|
5
|
Vertical offset
|
- HPDF-LINEANNOT-SETLEADER
- Parameters:
1
|
Annotation handle
|
2
|
Leader length
|
3
|
Leader extent length
|
4
|
Leader offset length
|
- HPDF-LINEANNOT-SETPOSITION
- Parameters:
1
|
Annotation handle
|
2
|
HPDF-POINT group item for start point (see
cpdf.def)
|
3
|
Start style
|
4
|
HPDF-POINT group item for end point (see
cpdf.def)
|
5
|
End style
|
- HPDF-LINEANNOT-SETAJAVASCRIPT
- Parameters:
1
|
Annotation handle
|
2
|
Javascript handle
|
- HPDF-LINKANNOT-SETBORDERSTYLE
- Parameters:
1
|
Annotation handle
|
2
|
Width
|
3
|
Dash-On
|
4
|
Dash-Off
|
- HPDF-LINKANNOT-SETHIGHLIGHTMODE
- Parameters:
1
|
Annotation handle
|
2
|
Mode
|
- HPDF-LOADICCPROFILEFROMFILE
- Parameters:
1
|
Document handle
|
2
|
Profile filename
|
3
|
Component number
|
- Returns: Output Intent handle
- HPDF-LOADJPEGIMAGEFROMFILE
- Parameters:
1
|
HPDF-DOC handle
|
2
|
Filename
|
- HPDF-LOADJPEGIMAGEFROMMEM
- Parameters:
1
|
HPDF-DOC handle
|
2
|
Pointer to image
|
3
|
Size
|
- HPDF-LOADPNGIMAGEFROMMEM
- Parameters:
1
|
HPDF-DOC handle
|
2
|
Pointer to image
|
3
|
Size
|
- HPDF-LOADPNGIMAGEFROMFILE
- Parameters:
1
|
HPDF-DOC handle
|
2
|
PNG filename
|
- Returns: image handle (not compatible with ACUCOBOL-GT image handles)
- HPDF-LOADPNGIMAGEFROMFILE2
- Parameters:
1
|
HPDF-DOC handle
|
2
|
PNG filename
|
- Returns: image handle (not compatible with ACUCOBOL-GT image handles)
- HPDF-LOADDRAWIMAGEFROMMEM
- Parameters:
1
|
HPDF-DOC handle
|
2
|
Pointer to image
|
3
|
Width
|
4
|
Height
|
5
|
Color space
|
6
|
Bits per component
|
- HPDF-LOADRAWIMAGEFROMFILE
- Parameters:
1
|
HPDF-DOC handle
|
2
|
Pointer to image
|
3
|
Width
|
4
|
Height
|
5
|
Color space
|
- HPDF-LOADTTFONTFROMFILE
- Parameters:
1
|
HPDF-DOC handle
|
2
|
TTF filename
|
3
|
TTF embedding
|
- HPDF-LOADTTFONTFROMFILE2
- Parameters:
1
|
HPDF-DOC handle
|
2
|
TTC filename
|
3
|
TTC index
|
4
|
TTC embedding
|
5
|
Font name (output)
|
- HPDF-LOADTYPE1FONTFROMFILE
- Parameters:
1
|
HPDF-DOC handle
|
2
|
AFM filename
|
3
|
PFM filename
|
4
|
Font name (output)
|
- HPDF-LOADU3DFROMFILE
- Parameters:
1
|
Document handle
|
2
|
U3D image filename
|
- HPDF-LOADU3DFROMMEM
- Parameters:
1
|
Document handle
|
2
|
U3D image in memory
|
3
|
(Optional) Size of the memory image
|
- Returns: Image handle
- HPDF-MARKUPANNOT-SETCLOUDEFFECT
- Parameters:
1
|
Annotation handle
|
2
|
Cloud effect type
|
- HPDF-MARKUPANNOT-SETCREATIONDATE
- Parameters:
1
|
Annotation handle
|
2
|
HPDF-Date group item (see
cpdf.def)
|
- HPDF-MARKUPANNOT-SETINTENT
- Parameters:
1
|
Annotation handle
|
2
|
Intent type
|
- HPDF-MARKUPANNOT-SETINTERIORCMYKCOLOR
- Parameters:
1
|
Annotation handle
|
2
|
HPDF-CMYKCOLOR group item (see
cpdf.def)
|
- HPDF-MARKUPANNOT-SETINTERIORGRAYCOLOR
- Parameters:
1
|
Annotation handle
|
2
|
Grayscale value
|
- HPDF-MARKUPANNOT-SETINTERIORRGBCOLOR
- Parameters:
1
|
Annotation handle
|
2
|
HPDF-RGBCOLOR group item (see
cpdf.def)
|
- HPDF-MARKUPANNOT-INTERIORTRANSPARENT
- Parameters:
- HPDF-MARKUPANNOT-SETPOPUP
- Parameters:
- HPDF-MARKUPANNOT-SETRECTDIFF
- Parameters:
1
|
Annotation handle
|
2
|
HPDF-RECTANGLE group item (see
cpdf.def)
|
- HPDF-MARKUPANNOT-SETSUBJECT
- Parameters:
1
|
Annotation handle
|
2
|
Subject PIC x(n))
|
- HPDF-MARKUPANNOT-SETTITLE
- Parameters:
1
|
Annotation handle
|
2
|
Title
|
- HPDF-MARKUPANNOT-SETTRANSPARENCY
- Parameters:
1
|
Annotation handle
|
2
|
Transparency value
|
- HPDF-NEW
- Parameters: No parameters
- Returns: HPDF-DOC handle
- HPDF-NEWDOC
- Parameters:
- HPDF-OUTLINE-SETDESTINATION
- Parameters:
1
|
HPDF-OUTLINE handle
|
2
|
Destination handle
|
- HPDF-OUTLINE-SETOPENED
- Parameters:
1
|
HPDF-OUTLINE handle
|
2
|
Opened flag
|
- HPDF-PAGE-ARC
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
X value of center point
|
3
|
Y value of center point
|
4
|
Radius of circle
|
5
|
Start angle
|
6
|
End angle
|
- HPDF-PAGE-BEGINTEXT
- Parameters:
- HPDF-PAGE-CIRCLE
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
X co-ordinates of circle center
|
3
|
Y co-ordinates of circle center
|
4
|
Radius
|
- Returns: HPDF_OK on success. Otherwise, returns error code and error-handler is invoked.
- HPDF-PAGE-CLIP
- Parameters:
- HPDF-PAGE-CREATECIRCLEANNOT
- Parameters:
1
|
Page handle
|
2
|
HPDF-RECTANGLE group item (see
cpdf.def)
|
3
|
Text
|
4
|
Encoder handle
|
- Returns: Annotation handle
- HPDF-PAGE-CREATEDESTINATION
- Parameters:
- Returns: HDPF-DESTINATION handle
- HPDF-PAGE-CREATEFREETEXTANNOT
- Parameters:
1
|
Page handle
|
2
|
HPDF-RECTANGLE group item (see
cpdf.def)
|
3
|
Free text
|
4
|
Encoder handle
|
- Returns: Annotation handle
- HPDF-PAGE-CREATEHIGHLIGHTANNOT
- Parameters:
1
|
Page handle
|
2
|
HPDF-RECTANGLE group item (see
cpdf.def)
|
3
|
Text
|
4
|
Encoder handle
|
- Returns: Annotation handle
- HPDF-PAGE-CREATELINEANNOT
- Parameters:
1
|
Page handle
|
2
|
Text
|
3
|
Encoder handle
|
- Returns: Annotation handle
- HPDF-PAGE-CREATELINKANNOT
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
HPDF-REC item
|
3
|
Destination handle
|
- Returns: Annotation handle
- HPDF-PAGE-CREATEPD33DMEASURE
- Parameters:
1
|
Page handle
|
2
|
HPDF-POINT-3D group item (see
cpdf.def)
|
3
|
HPDF-POINT-3D group item (see
cpdf.def)
|
4
|
HPDF-POINT-3D group item (see
cpdf.def)
|
5
|
HPDF-POINT-3D group item (see
cpdf.def)
|
6
|
HPDF-POINT-3D group item (see
cpdf.def)
|
7
|
HPDF-POINT-3D group item (see
cpdf.def)
|
8
|
Value
|
9
|
Units (PIC X(n))
|
- Returns: 3DMeasure handle
- HPDF-PAGE-CREATEPOPUPANNOT
- Parameters:
1
|
Page handle
|
2
|
HPDF-RECTANGLE group item (see
cpdf.def)
|
3
|
Annotation handle
|
- Returns: Annotation handle
- HPDF-PAGE-CREATEPROJECTIONANNOT
- Parameters:
1
|
Page handle
|
2
|
HPDF-RECTANGLE group item (see
cpdf.def)
|
3
|
Text
|
4
|
Encoder handle
|
- Returns: Annotation handle
- HPDF-PAGE-CREATESQUAREANNOT
- Parameters:
1
|
Page handle
|
2
|
HPDF-RECTANGLE group item (see
cpdf.def)
|
3
|
Text
|
4
|
Encoder handle
|
- Returns: Annotation handle
- HPDF-PAGE-CREATESQUIGLLYANNOT
- Parameters:
1
|
Page handle
|
2
|
HPDF-RECTANGLE group item (see
cpdf.def)
|
3
|
Text
|
4
|
Encoder handle
|
- Returns: Annotation handle
- HPDF-PAGE-CREATESTAMPANNOT
- Parameters:
1
|
Page handle
|
2
|
HPDF-RECTANGLE group item (see
cpdf.def)
|
3
|
Text
|
4
|
Encoder handle
|
- Returns: Annotation handle
- HPDF-PAGE-CREATESTRIKEOUTANNOT
- Parameters:
1
|
Page handle
|
2
|
HPDF-RECTANGLE group item (see
cpdf.def)
|
3
|
Text
|
4
|
Encoder handle
|
- Returns: Annotation handle
- HPDF-PAGE-CREATETEXTANNOT
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
HPDF-RECT item
|
3
|
Text
|
4
|
Encoder handle (optional)
|
- Returns: Annotation handle
- HPDF-PAGE-CREATETEXTMARKUPANNOT
- Parameters:
1
|
Page handle
|
2
|
HPDF-RECTANGLE group item (see
cpdf.def)
|
3
|
Text
|
4
|
Encoder handle
|
- Returns: Annotation handle
- HPDF-PAGE-CREATEUNDERLINEANNOT
- Parameters:
1
|
Page handle
|
2
|
HPDF-RECTANGLE group item (see
cpdf.def)
|
3
|
Text
|
4
|
Encoder handle
|
- Returns: Annotation handle
- HPDF-PAGE-CREATEURILINKANNOT
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
Rectangle that bounds the link
|
3
|
The URI
|
- HPDF-PAGE-CREATEWIDGETANNOT
- Parameters:
1
|
Page handle
|
2
|
HPDF-RECTANGLE group item (see
cpdf.def)
|
- Returns: Annotation handle
- HPDF-PAGE-CREATEWIDGETANNOT-WHITEONLYWHITEPRINT
- Parameters:
1
|
Document handle
|
2
|
Page handle
|
3
|
HPDF-RECTANGLE group item (see
cpdf.def)
|
- Returns: Annotation handle
- HPDF-PAGE-CREATEXOBJECTASWHITERECT
- Parameters:
1
|
Document handle
|
2
|
Page handle
|
3
|
HPDF-RECTANGLE group item (see
cpdf.def)
|
- Returns: Annotation handle
- HPDF-PAGE-CREATEXOBJECTFROMIMAGE
- Parameters:
1
|
Document handle
|
2
|
Page handle
|
3
|
HPDF-RECTANGLE group item (see
cpdf.def)
|
4
|
Image handle
|
5
|
Zoom
|
- HPDF-PAGE-CURVETO
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
X1
|
3
|
Y1
|
4
|
X2
|
5
|
Y2
|
6
|
X3
|
7
|
Y3
|
- Returns: HPDF_OK on success. Otherwise, returns error code and error-handler is invoked.
- HPDF-PAGE-CURVETO2
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
X1
|
3
|
Y1
|
4
|
X2
|
5
|
Y2
|
- Returns: HPDF_OK on success. Otherwise, returns error code and error-handler is invoked.
- HPDF-PAGE-CURVETO3
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
X1
|
3
|
Y1
|
4
|
X2
|
5
|
Y2
|
- Returns: HPDF_OK on success. Otherwise, returns error code and error-handler is invoked.
- HPDF-PAGE-ELLIPSE
- Parameters:
1
|
Page handle
|
2
|
X value
|
3
|
Y value
|
4
|
Xray value
|
5
|
Yray value
|
- HPDF-PAGE-ENDPATH
- Parameters:
- HPDF-PAGE-ENDTEXT
- Parameters:
- HPDF-PAGE-EOCLIP
- Parameters:
- HPDF-PAGE-EOFILL
- Parameters:
- HPDF-PAGE-EOFILLSTROKE
- Parameters:
- HPDF-PAGE-GETCHARSPACE
- Parameters:
- Returns: The character space value
- HPDF-PAGE-GETCMYKFILL
- Parameters:
1
|
Page handle
|
2
|
(Output) HPDF-CMYKCOLOR group item (see
cpdf.def)
|
- HPDF-PAGE-GETCMYKSTROKE
- Parameters:
1
|
Page handle
|
2
|
(Output) HPDF-CMYKCOLOR group item (see
cpdf.def)
|
- HPDF-PAGE-GETCURRENTFONT
- Parameters:
- Returns: Current font handle
- HPDF-PAGE-GETDASH
- Parameters:
1
|
Page handle
|
2
|
(Output) HPDF-DASHMODE group item (see
cpdf.def)
|
- HPDF-PAGE-GETFILLINGCOLORSPACE
- Parameters:
- HPDF-PAGE-GETFLAT
- Parameters:
- Returns: The flat value
- HPDF-PAGE-GETGRAYSTROKE
- Parameters:
- Returns: The gray fill value
- HPDF-PAGE-GETSTATEDEPTH
- Parameters:
- Returns: Current g-state depth
- HPDF-PAGE-GETHORIZONTALSCALLING
- Parameters:
- Returns: Current scaling value
- HPDF-SETEXTGSTATE
- Parameters:
1
|
Document handle
|
2
|
ExtGState handle
|
- Returns: An ExtGState handle.
- HPDF-PAGE-SETEXTGSTATE
- Parameters:
1
|
Document handle
|
2
|
ExtGState handle
|
- HPDF-PAGE-FILL
- Parameters:
- HPDF-PAGE-FILLSTROKE
- Parameters:
- HPDF-PAGE-GETCURRENTPOS
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
HPDF-POINT, defined as:
01 hpdf-point.
03 hpdf-width s9(6)v999 comp-5.
03 hpdf-height s9(6)v999 comp-5.
|
- HPDF-PAGE-GETCURRENTTEXTPOS
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
HPDF-Point, described as:
01 HPDF-Point.
03 HPDF-Point-X PIC S9(6)v999 COMP-5.
03 HPDF-Point-Y PIC S9(6)v999 COMP-5.
|
- Returns: If succeeds, it returns the handle of the page's current font. Otherwise it returns NULL.
- HPDF-PAGE-GETLINECAP
- Parameters:
- Returns: Current line cap value
- HPDF-PAGE-GETLINEJOIN
- Parameters:
- Returns: Current line join value
- HPDF-PAGE-GETLINEWIDTH
- Parameters:
- Returns: Current line width value
- HPDF-PAGE-GETMITERLINE
- Parameters:
- Returns: Current miter limit value
- HPDF-PAGE-GETRGBFILL
- Parameters:
1
|
Page handle
|
2
|
(Output) HPDF-RGBCOLOR group item (see
cpdf.def)
|
- HPDF-PAGE-GETRGBSTROKE
- Parameters:
1
|
Page handle
|
2
|
(Output) HPDF-RGBCOLOR group item (see
cpdf.def)
|
- HPDF-PAGE-GETSTROKINGCOLORSPACE
- Parameters:
- HPDF-PAGE-GETTEXTLEADING
- Parameters:
- HPDF-PAGE-GETTEXTMATRIX
- Parameters:
1
|
Page handle
|
2
|
(Output) HPDF-TEXTMATRIX group item (see
cpdf.def)
|
- Returns: Current scaling value
- HPDF-PAGE-GETTEXTRENDERINGMODE
- Parameters:
- Returns: Current text rendering mode value
- HPDF-PAGE-GETTEXTRISE
- Parameters:
- Returns: Current text rise value
- HPDF-PAGE-GETTRANSMATRIX
- Parameters:
1
|
Page handle
|
2
|
(Output) HPDF-TEXTMATRIX group item (see
cpdf.def)
|
- HPDF-PAGE-GETWORDSPACE
- Parameters:
- Returns: Current word space value
- HPDF-PAGE-GETGMODE
- Parameters:
- Returns: graphics mode
- HPDF-PAGE-GETHEIGHT
- Parameters:
- Returns: Page height *1000
- HPDF-PAGE-GETWIDTH
- Parameters:
- Returns: Page width *1000
- HPDF-PAGE-GRESTORE
- Parameters:
- HPDF-PAGE-GSAVE
- Parameters:
- HPDF-PAGE-INSERTSHAREDCONTENTSTREAM
- Parameters:
1
|
Page handle
|
2
|
Content stream handle
|
- HPDF-PAGE-LINETO
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
X coordinate
|
3
|
Y coordinate
|
- HPDF-PAGE-MOVETEXTPOS
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
X coordinate
|
3
|
Y coordinateinate
|
- HPDF-PAGE-MOVETO
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
X coordinateinate
|
3
|
Y coordinate
|
- HPDF-PAGE-MOVETONEXTLINE
- Parameters:
- HPDF-PAGE-MOVETEXTPOS2
- Parameters:
1
|
Page handle
|
2
|
X value
|
3
|
Y value
|
- HPDF-PAGE-NEW-CONTENT-STREAM
- Parameters:
- Returns: Content stream handle
- HPDF-PAGE-SETCHARSPACE
- Parameters:
1
|
Page handle
|
2
|
Character space value
|
- HPDF-PAGE-SETCMYKFILL
- Parameters:
1
|
Page handle
|
2
|
Cyan value
|
3
|
Magenta value
|
4
|
Yellow value
|
5
|
Black value
|
- HPDF-PAGE-SETCMYKSTROKE
- Parameters:
1
|
Page handle
|
2
|
Cyan value
|
3
|
Magenta value
|
4
|
Yellow value
|
5
|
Black value
|
- HPDF-PAGE-SETFLAT
- Parameters:
1
|
Page handle
|
2
|
Flat value
|
- HPDF-PAGE-SETHAORIZONTALSCALLING
- Parameters:
1
|
Page handle
|
2
|
Horizontal scaling value
|
- HPDF-PAGE-SETMITERLIMIT
- Parameters:
1
|
Page handle
|
2
|
Miter limit value
|
- HPDF-PAGE-SETROTATE
- Parameters:
1
|
Page handle
|
2
|
Rotate value
|
- HPDF-PAGE-SETTEXTRENDERINGMODE
- Parameters:
1
|
Page handle
|
2
|
Rendering mode
|
- HPDF-PAGE-SETTEXTRISE
- Parameters:
1
|
Page handle
|
2
|
Text rise value
|
- HPDF-PAGE-SETWORDSPACE
- Parameters:
1
|
Page handle
|
2
|
Word space value
|
- HPDF-PAGE-SETZOOM
- Parameters:
1
|
Page handle
|
2
|
Zoom factor
|
- HPDF-PAGE-SETFLAT
- Parameters:
- HPDF-PAGE-SHOWTEXTNEXTLINEEX
- Parameters:
1
|
Page handle
|
2
|
Character space value
|
3
|
Word space value
|
4
|
Text to show
|
- HPDF-PAGE-RECTANGLE
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
X coordinate
|
3
|
Y coordinate
|
4
|
Width
|
5
|
Height
|
- HPDF-PAGE-SETDASH
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
Number of dash pattern parameters (0-8)
|
3
|
Dash pattern parameters
|
4
|
Phase (optional)
|
- HPDF-PAGE-SETFONTANDSIZE
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
HPDF-FONT handle
|
3
|
Font size
|
- HPDF-PAGE-SETGRAYFILL
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
Gray fill percent
|
- HPDF-PAGE-SETGRAYSTROKE
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
Gray stroke percent
|
- HPDF-PAGE-SETLINECAP
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
Line cap indicator
|
- HPDF-PAGE-SETLINEJOIN
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
Line join indicator
|
- HPDF-PAGE-SETLINEWIDTH
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
Line width
|
- HPDF-PAGE-SETPAGEMODE
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
Page mode:
- 0 - no special page mode
- 1 - outline mode
- 2 - thumbs mode
- 3 - full screen mode
|
- HPDF-PAGE-SETRGBFILL
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
Red value
|
3
|
Green value
|
4
|
Blue value
|
- HPDF-PAGE-SETRGBSTROKE
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
Red value
|
3
|
Green value
|
4
|
Blue value
|
- HPDF-PAGE-SETSIZE
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
Page size indicator
|
3
|
Direction
|
- HPDF-PAGE-SETSLIDESHOW
- Parameters:
1
|
Page handle
|
2
|
Transition style
|
3
|
Display time
|
4
|
Transition time
|
- HPDF-PAGE-SETTEXTLEADING
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
Text leading value
|
- HPDF-PAGE-SETTEXTMATRIX
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
Horizontal rotation
|
3
|
Vertical rotation
|
4
|
X offset adjustment
|
5
|
Y offset adjustment
|
6
|
Page x coordinateinate
|
7
|
Page y coordinateinate
|
- Returns: HPDF_OK on success. Otherwise, returns error code and error-handler is invoked.
- HPDF-PAGE-SHOWTEXT
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
Text
|
3
|
Text length in characters (optional)
|
- HPDF-PAGE-SHOWTEXTNEXTLINE
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
Text
|
- HPDF-PAGE-STROKE
- Parameters:
- HPDF-PAGE-TEXTOUT
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
X
|
3
|
Y
|
4
|
Text
|
5
|
Text length in characters (optional)
|
- HPDF-PAGE-TEXTRECT
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
X coordinateinate of the left of the rectangle
|
3
|
Y coordinateinate of the top of the rectangle
|
4
|
X coordinateinate of the right of the rectangle
|
5
|
Y coordinateinate of the bottom of the rectangle
|
6
|
Text to display
|
7
|
Alignment: left, right, center, or justified)
|
8
|
Length shown (optional)
|
- Returns: HPDF_OK on success. Otherwise, returns error code and error-handler is invoked.
- HPDF-PAGE-TEXTWIDTH
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
Text
|
3
|
Text length in characters (optional)
|
- HPDF-PAGE-MEASURETEXT
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
Text
|
3
|
Width
|
4
|
Word wrap flag
|
5
|
Actual width (optional)
|
- HPDF-PAGE-TEXTOUT
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
X
|
3
|
Y
|
4
|
Text
|
5
|
Text length in characters (optional)
|
- HPDF-PAGE-TEXTWIDTH
- Parameters:
1
|
HPDF-PAGE handle
|
2
|
Text
|
3
|
Text length in characters (optional)
|
- HPDF-POPUPANNOT-SETOPENED
- Parameters:
1
|
Annotation handle
|
2
|
Opened
|
- HPDF-PROJECTIONANNOT-SETEXDATA
- Parameters:
1
|
Annotation handle
|
2
|
ExData handle
|
- HPDF-READFROMSTREAM
- Parameters:
1
|
Document handle
|
2
|
Stream value
|
3
|
Length returned
|
- HPDF-RESETERROR
- Parameters:
- HPDF-RESETSTREAM
- Parameters:
- HPDF-SAVETOSTREAM
- Parameters:
- HPDF-SAVETOFILE
- Parameters:
1
|
HPDF-DOC handle
|
2
|
Save filename (may use @[DISPLAY] syntax for thin client)
|
- HPDF-SETCOMPRESSIONMODE
- Parameters:
1
|
HPDF-DOC handle
|
2
|
Compression mode
|
- HPDF-SETCURRENTENCODER
- Parameters:
1
|
HPDF-DOC handle
|
2
|
Encoder name
|
- HPDF-SETENCRYPTIONMODE
- Parameters:
1
|
HPDF-DOC handle
|
2
|
Encryption mode (see
cpdf.def for options)
|
3
|
Key length
|
- HPDF-SETINFOATTR
- Parameters:
1
|
HPDF-DOC handle
|
2
|
Info attribute type
|
3
|
Info attribute value
|
- HPDF-SETINFODATEATTR
- Parameters:
1
|
HPDF-DOC handle
|
2
|
Date attribute indicator
|
3
|
HPDF-DATE
|
- HPDF-SETPAGELAYOUT
- Parameters:
1
|
Document handle
|
2
|
Page layout value
|
- HPDF-SETPAGESCONFIGURATION
- Parameters:
1
|
HPDF-DOC handle
|
2
|
Page per pages
|
- HPDF-SETPASSWORD
- Parameters:
1
|
HPDF-DOC handle
|
2
|
Owner password
|
3
|
User password (optional)
|
- HPDF-SETPERMISSION
- Parameters:
1
|
HPDF-DOC handle
|
2
|
Permission type
|
- HPDF-SETVIEWERPREFERENCE
- Parameters:
1
|
HPDF-DOC handle
|
2
|
HPDF-Viewer preference value
|
- HPDF-STREAM-FREE
- Parameters:
- HPDF-STREAM-WRITETOSTREAM
- Parameters:
1
|
Input stream handle
|
2
|
Output stream handle
|
3
|
Number of bytes to write (optional)
|
- HPDF-TEXTANNOT-SETICON
- Parameters:
1
|
Annotation handle
|
2
|
Icon indicator
|
- HPDF-TEXTANNOT-SETOPENED
- Parameters:
1
|
Annotation handle
|
2
|
Open mode
|
- HPDF-TEXTMARKUPANNOT-SETQUADPOINTS
- Parameters:
1
|
Annotation handle
|
2
|
HPDF-POINT
|
3
|
HPDF-POINT
|
4
|
HPDF-POINT
|
5
|
HPDF-POINT
|
- HPDF-USECNSENCODINGS
- Parameters:
- HPDF-USECNSFONTS
- Parameters:
- HPDF-USECNTENCODINGS
- Parameters:
- HPDF-USECNTFONTS
- Parameters:
- HPDF-USEJPENCODINGS
- Parameters:
- HPDF-USEJPFONTS
- Parameters:
- HPDF-USEKRENCODINGS
- Parameters:
- HPDF-USEKRFONTS
- Parameters:
- HPDF-USEUTFENCODINGS
- Parameters: