
; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_GetVersion
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_GetVersion ( )
	Local $result = DllCall( $__hLibHPdfDll, 'str', 'HPDF_GetVersion'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_GetVersion

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_NewEx
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_NewEx (  $user_error_fn, $user_alloc_fn, $user_free_fn, $mem_pool_buf_size )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_Doc, 'HPDF_NewEx' , _ 
			$HPDF_Error_Handler , $user_error_fn , _ 
			$HPDF_Alloc_Func , $user_alloc_fn , _ 
			$HPDF_Free_Func , $user_free_fn , _ 
			$HPDF_UINT , $mem_pool_buf_size  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_NewEx

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_New
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_New (  $user_error_fn )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_Doc, 'HPDF_New' , _ 
			$HPDF_Error_Handler , $user_error_fn  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_New

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_SetErrorHandler
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_SetErrorHandler (  $pdf )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_SetErrorHandler' , _ 
			$HPDF_Doc , $pdf  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_SetErrorHandler

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Free
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Free ( )
	Local $result = DllCall( $__hLibHPdfDll, 'none', 'HPDF_Free'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Free

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_NewDoc
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_NewDoc ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_NewDoc'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_NewDoc

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_FreeDoc
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_FreeDoc ( )
	Local $result = DllCall( $__hLibHPdfDll, 'none', 'HPDF_FreeDoc'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_FreeDoc

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_HasDoc
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_HasDoc ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_BOOL, 'HPDF_HasDoc'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_HasDoc

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_FreeDocAll
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_FreeDocAll ( )
	Local $result = DllCall( $__hLibHPdfDll, 'none', 'HPDF_FreeDocAll'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_FreeDocAll

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_SaveToStream
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_SaveToStream ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_SaveToStream'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_SaveToStream

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_GetStreamSize
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_GetStreamSize ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_UINT32, 'HPDF_GetStreamSize'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_GetStreamSize

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_ReadFromStream
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_ReadFromStream (  $pdf, ByRef $buf )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_ReadFromStream' , _ 
			$HPDF_Doc , $pdf , _ 
			$HPDF_BYTE &'*' , $buf  )
	If @error Then Return SetError(1,@error,0)
	$buf = $result[2]
Return $result[0]
EndFunc ;==>_HPDF_ReadFromStream

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_ResetStream
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_ResetStream ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_ResetStream'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_ResetStream

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_SaveToFile
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_SaveToFile (  $pdf )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_SaveToFile' , _ 
			$HPDF_Doc , $pdf  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_SaveToFile

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_GetError
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_GetError ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_GetError'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_GetError

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_GetErrorDetail
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_GetErrorDetail ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_GetErrorDetail'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_GetErrorDetail

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_ResetError
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_ResetError ( )
	Local $result = DllCall( $__hLibHPdfDll, 'none', 'HPDF_ResetError'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_ResetError

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_SetPagesConfiguration
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_SetPagesConfiguration (  $pdf )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_SetPagesConfiguration' , _ 
			$HPDF_Doc , $pdf  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_SetPagesConfiguration

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_GetPageByIndex
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_GetPageByIndex (  $pdf )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_Page, 'HPDF_GetPageByIndex' , _ 
			$HPDF_Doc , $pdf  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_GetPageByIndex

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_GetPageLayout
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_GetPageLayout ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_PageLayout, 'HPDF_GetPageLayout'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_GetPageLayout

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_SetPageLayout
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_SetPageLayout (  $pdf )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_SetPageLayout' , _ 
			$HPDF_Doc , $pdf  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_SetPageLayout

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_GetPageMode
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_GetPageMode ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_PageMode, 'HPDF_GetPageMode'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_GetPageMode

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_SetPageMode
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_SetPageMode (  $pdf )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_SetPageMode' , _ 
			$HPDF_Doc , $pdf  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_SetPageMode

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_GetViewerPreference
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_GetViewerPreference ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_UINT, 'HPDF_GetViewerPreference'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_GetViewerPreference

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_SetViewerPreference
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_SetViewerPreference (  $pdf )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_SetViewerPreference' , _ 
			$HPDF_Doc , $pdf  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_SetViewerPreference

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_SetOpenAction
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_SetOpenAction (  $pdf )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_SetOpenAction' , _ 
			$HPDF_Doc , $pdf  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_SetOpenAction

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_GetCurrentPage
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_GetCurrentPage ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_Page, 'HPDF_GetCurrentPage'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_GetCurrentPage

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_AddPage
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_AddPage ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_Page, 'HPDF_AddPage'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_AddPage

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_InsertPage
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_InsertPage (  $pdf )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_Page, 'HPDF_InsertPage' , _ 
			$HPDF_Doc , $pdf  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_InsertPage

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_SetWidth
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_SetWidth (  $page )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_SetWidth' , _ 
			$HPDF_Page , $page  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_SetWidth

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_SetHeight
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_SetHeight (  $page )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_SetHeight' , _ 
			$HPDF_Page , $page  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_SetHeight

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_SetSize
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_SetSize (  $page, $size )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_SetSize' , _ 
			$HPDF_Page , $page , _ 
			$HPDF_PageSizes , $size  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_SetSize

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_SetRotate
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_SetRotate (  $page )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_SetRotate' , _ 
			$HPDF_Page , $page  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_SetRotate

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_GetFont
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_GetFont (  $pdf )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_Font, 'HPDF_GetFont' , _ 
			$HPDF_Doc , $pdf  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_GetFont

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_LoadType1FontFromFile
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_LoadType1FontFromFile (  $pdf )
	Local $result = DllCall( $__hLibHPdfDll, 'const char*', 'HPDF_LoadType1FontFromFile' , _ 
			$HPDF_Doc , $pdf  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_LoadType1FontFromFile

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_GetTTFontDefFromFile
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_GetTTFontDefFromFile (  $pdf )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_FontDef, 'HPDF_GetTTFontDefFromFile' , _ 
			$HPDF_Doc , $pdf  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_GetTTFontDefFromFile

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_LoadTTFontFromFile
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_LoadTTFontFromFile (  $pdf )
	Local $result = DllCall( $__hLibHPdfDll, 'const char*', 'HPDF_LoadTTFontFromFile' , _ 
			$HPDF_Doc , $pdf  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_LoadTTFontFromFile

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_LoadTTFontFromFile2
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_LoadTTFontFromFile2 (  $pdf )
	Local $result = DllCall( $__hLibHPdfDll, 'const char*', 'HPDF_LoadTTFontFromFile2' , _ 
			$HPDF_Doc , $pdf  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_LoadTTFontFromFile2

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_AddPageLabel
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_AddPageLabel (  $pdf, $page_num, $style, $first_page )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_AddPageLabel' , _ 
			$HPDF_Doc , $pdf , _ 
			$HPDF_UINT , $page_num , _ 
			$HPDF_PageNumStyle , $style , _ 
			$HPDF_UINT , $first_page  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_AddPageLabel

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_UseJPFonts
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_UseJPFonts ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_UseJPFonts'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_UseJPFonts

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_UseKRFonts
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_UseKRFonts ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_UseKRFonts'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_UseKRFonts

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_UseCNSFonts
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_UseCNSFonts ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_UseCNSFonts'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_UseCNSFonts

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_UseCNTFonts
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_UseCNTFonts ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_UseCNTFonts'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_UseCNTFonts

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_CreateOutline
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_CreateOutline (  $pdf, $parent )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_Outline, 'HPDF_CreateOutline' , _ 
			$HPDF_Doc , $pdf , _ 
			$HPDF_Outline , $parent  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_CreateOutline

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Outline_SetOpened
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Outline_SetOpened (  $outline )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Outline_SetOpened' , _ 
			$HPDF_Outline , $outline  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Outline_SetOpened

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Outline_SetDestination
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Outline_SetDestination (  $outline )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Outline_SetDestination' , _ 
			$HPDF_Outline , $outline  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Outline_SetDestination

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_CreateDestination
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_CreateDestination ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_Destination, 'HPDF_Page_CreateDestination'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_CreateDestination

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Destination_SetXYZ
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Destination_SetXYZ (  $dst, $left, $top )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Destination_SetXYZ' , _ 
			$HPDF_Destination , $dst , _ 
			$HPDF_REAL , $left , _ 
			$HPDF_REAL , $top  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Destination_SetXYZ

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Destination_SetFit
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Destination_SetFit ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Destination_SetFit'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Destination_SetFit

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Destination_SetFitH
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Destination_SetFitH (  $dst )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Destination_SetFitH' , _ 
			$HPDF_Destination , $dst  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Destination_SetFitH

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Destination_SetFitV
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Destination_SetFitV (  $dst )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Destination_SetFitV' , _ 
			$HPDF_Destination , $dst  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Destination_SetFitV

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Destination_SetFitR
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Destination_SetFitR (  $dst, $left, $bottom, $right )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Destination_SetFitR' , _ 
			$HPDF_Destination , $dst , _ 
			$HPDF_REAL , $left , _ 
			$HPDF_REAL , $bottom , _ 
			$HPDF_REAL , $right  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Destination_SetFitR

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Destination_SetFitB
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Destination_SetFitB ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Destination_SetFitB'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Destination_SetFitB

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Destination_SetFitBH
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Destination_SetFitBH (  $dst )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Destination_SetFitBH' , _ 
			$HPDF_Destination , $dst  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Destination_SetFitBH

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Destination_SetFitBV
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Destination_SetFitBV (  $dst )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Destination_SetFitBV' , _ 
			$HPDF_Destination , $dst  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Destination_SetFitBV

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_GetEncoder
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_GetEncoder (  $pdf )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_Encoder, 'HPDF_GetEncoder' , _ 
			$HPDF_Doc , $pdf  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_GetEncoder

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_GetCurrentEncoder
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_GetCurrentEncoder ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_Encoder, 'HPDF_GetCurrentEncoder'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_GetCurrentEncoder

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_SetCurrentEncoder
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_SetCurrentEncoder (  $pdf )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_SetCurrentEncoder' , _ 
			$HPDF_Doc , $pdf  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_SetCurrentEncoder

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Encoder_GetType
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Encoder_GetType ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_EncoderType, 'HPDF_Encoder_GetType'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Encoder_GetType

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Encoder_GetByteType
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Encoder_GetByteType (  $encoder )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_ByteType, 'HPDF_Encoder_GetByteType' , _ 
			$HPDF_Encoder , $encoder  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Encoder_GetByteType

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Encoder_GetUnicode
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Encoder_GetUnicode (  $encoder )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_UNICODE, 'HPDF_Encoder_GetUnicode' , _ 
			$HPDF_Encoder , $encoder  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Encoder_GetUnicode

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Encoder_GetWritingMode
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Encoder_GetWritingMode ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_WritingMode, 'HPDF_Encoder_GetWritingMode'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Encoder_GetWritingMode

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_UseJPEncodings
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_UseJPEncodings ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_UseJPEncodings'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_UseJPEncodings

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_UseKREncodings
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_UseKREncodings ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_UseKREncodings'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_UseKREncodings

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_UseCNSEncodings
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_UseCNSEncodings ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_UseCNSEncodings'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_UseCNSEncodings

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_UseCNTEncodings
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_UseCNTEncodings ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_UseCNTEncodings'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_UseCNTEncodings

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_Create3DAnnot
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_Create3DAnnot (  $page, $rect )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_Annotation, 'HPDF_Page_Create3DAnnot' , _ 
			$HPDF_Page , $page , _ 
			$HPDF_Rect , $rect  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_Create3DAnnot

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_CreateTextAnnot
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_CreateTextAnnot (  $page, $rect )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_Annotation, 'HPDF_Page_CreateTextAnnot' , _ 
			$HPDF_Page , $page , _ 
			$HPDF_Rect , $rect  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_CreateTextAnnot

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_CreateLinkAnnot
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_CreateLinkAnnot (  $page, $rect )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_Annotation, 'HPDF_Page_CreateLinkAnnot' , _ 
			$HPDF_Page , $page , _ 
			$HPDF_Rect , $rect  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_CreateLinkAnnot

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_CreateURILinkAnnot
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_CreateURILinkAnnot (  $page, $rect )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_Annotation, 'HPDF_Page_CreateURILinkAnnot' , _ 
			$HPDF_Page , $page , _ 
			$HPDF_Rect , $rect  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_CreateURILinkAnnot

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_LinkAnnot_SetHighlightMode
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_LinkAnnot_SetHighlightMode (  $annot )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_LinkAnnot_SetHighlightMode' , _ 
			$HPDF_Annotation , $annot  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_LinkAnnot_SetHighlightMode

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_LinkAnnot_SetBorderStyle
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_LinkAnnot_SetBorderStyle (  $annot, $width, $dash_on )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_LinkAnnot_SetBorderStyle' , _ 
			$HPDF_Annotation , $annot , _ 
			$HPDF_REAL , $width , _ 
			$HPDF_UINT16 , $dash_on  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_LinkAnnot_SetBorderStyle

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_TextAnnot_SetIcon
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_TextAnnot_SetIcon (  $annot )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_TextAnnot_SetIcon' , _ 
			$HPDF_Annotation , $annot  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_TextAnnot_SetIcon

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_TextAnnot_SetOpened
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_TextAnnot_SetOpened (  $annot )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_TextAnnot_SetOpened' , _ 
			$HPDF_Annotation , $annot  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_TextAnnot_SetOpened

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_LoadPngImageFromFile
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_LoadPngImageFromFile (  $pdf )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_Image, 'HPDF_LoadPngImageFromFile' , _ 
			$HPDF_Doc , $pdf  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_LoadPngImageFromFile

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_LoadPngImageFromFile2
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_LoadPngImageFromFile2 (  $pdf )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_Image, 'HPDF_LoadPngImageFromFile2' , _ 
			$HPDF_Doc , $pdf  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_LoadPngImageFromFile2

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_LoadJpegImageFromFile
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_LoadJpegImageFromFile (  $pdf )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_Image, 'HPDF_LoadJpegImageFromFile' , _ 
			$HPDF_Doc , $pdf  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_LoadJpegImageFromFile

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_LoadU3DFromFile
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_LoadU3DFromFile (  $pdf )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_Image, 'HPDF_LoadU3DFromFile' , _ 
			$HPDF_Doc , $pdf  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_LoadU3DFromFile

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_LoadRawImageFromFile
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_LoadRawImageFromFile (  $pdf, $HPDF_UINT )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_Image, 'HPDF_LoadRawImageFromFile' , _ 
			$HPDF_Doc , $pdf , _ 
			'width' , $HPDF_UINT  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_LoadRawImageFromFile

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_LoadRawImageFromMem
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_LoadRawImageFromMem (  $pdf, $HPDF_UINT, $HPDF_ColorSpace )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_Image, 'HPDF_LoadRawImageFromMem' , _ 
			$HPDF_Doc , $pdf , _ 
			'width' , $HPDF_UINT , _ 
			'height' , $HPDF_ColorSpace  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_LoadRawImageFromMem

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Image_GetSize
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Image_GetSize ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_Point, 'HPDF_Image_GetSize'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Image_GetSize

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Image_GetSize2
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Image_GetSize2 (  $image )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Image_GetSize2' , _ 
			$HPDF_Image , $image  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Image_GetSize2

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Image_GetWidth
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Image_GetWidth ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_UINT, 'HPDF_Image_GetWidth'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Image_GetWidth

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Image_GetHeight
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Image_GetHeight ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_UINT, 'HPDF_Image_GetHeight'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Image_GetHeight

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Image_GetBitsPerComponent
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Image_GetBitsPerComponent ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_UINT, 'HPDF_Image_GetBitsPerComponent'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Image_GetBitsPerComponent

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Image_GetColorSpace
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Image_GetColorSpace ( )
	Local $result = DllCall( $__hLibHPdfDll, 'const char*', 'HPDF_Image_GetColorSpace'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Image_GetColorSpace

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Image_SetColorMask
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Image_SetColorMask (  $image, $rmin, $rmax, $gmin, $gmax, $bmin )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Image_SetColorMask' , _ 
			$HPDF_Image , $image , _ 
			$HPDF_UINT , $rmin , _ 
			$HPDF_UINT , $rmax , _ 
			$HPDF_UINT , $gmin , _ 
			$HPDF_UINT , $gmax , _ 
			$HPDF_UINT , $bmin  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Image_SetColorMask

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Image_SetMaskImage
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Image_SetMaskImage (  $image )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Image_SetMaskImage' , _ 
			$HPDF_Image , $image  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Image_SetMaskImage

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_SetInfoAttr
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_SetInfoAttr (  $pdf, $type )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_SetInfoAttr' , _ 
			$HPDF_Doc , $pdf , _ 
			$HPDF_InfoType , $type  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_SetInfoAttr

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_GetInfoAttr
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_GetInfoAttr (  $pdf )
	Local $result = DllCall( $__hLibHPdfDll, 'const char*', 'HPDF_GetInfoAttr' , _ 
			$HPDF_Doc , $pdf  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_GetInfoAttr

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_SetInfoDateAttr
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_SetInfoDateAttr (  $pdf, $type )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_SetInfoDateAttr' , _ 
			$HPDF_Doc , $pdf , _ 
			$HPDF_InfoType , $type  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_SetInfoDateAttr

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_SetPassword
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_SetPassword (  $pdf )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_SetPassword' , _ 
			$HPDF_Doc , $pdf  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_SetPassword

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_SetPermission
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_SetPermission (  $pdf )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_SetPermission' , _ 
			$HPDF_Doc , $pdf  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_SetPermission

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_SetEncryptionMode
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_SetEncryptionMode (  $pdf, $mode )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_SetEncryptionMode' , _ 
			$HPDF_Doc , $pdf , _ 
			$HPDF_EncryptMode , $mode  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_SetEncryptionMode

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_SetCompressionMode
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_SetCompressionMode (  $pdf )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_SetCompressionMode' , _ 
			$HPDF_Doc , $pdf  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_SetCompressionMode

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Font_GetFontName
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Font_GetFontName ( )
	Local $result = DllCall( $__hLibHPdfDll, 'const char*', 'HPDF_Font_GetFontName'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Font_GetFontName

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Font_GetEncodingName
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Font_GetEncodingName ( )
	Local $result = DllCall( $__hLibHPdfDll, 'const char*', 'HPDF_Font_GetEncodingName'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Font_GetEncodingName

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Font_GetUnicodeWidth
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Font_GetUnicodeWidth (  $font )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_INT, 'HPDF_Font_GetUnicodeWidth' , _ 
			$HPDF_Font , $font  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Font_GetUnicodeWidth

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Font_GetBBox
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Font_GetBBox ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_Box, 'HPDF_Font_GetBBox'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Font_GetBBox

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Font_GetAscent
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Font_GetAscent ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_INT, 'HPDF_Font_GetAscent'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Font_GetAscent

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Font_GetDescent
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Font_GetDescent ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_INT, 'HPDF_Font_GetDescent'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Font_GetDescent

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Font_GetXHeight
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Font_GetXHeight ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_UINT, 'HPDF_Font_GetXHeight'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Font_GetXHeight

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Font_GetCapHeight
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Font_GetCapHeight ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_UINT, 'HPDF_Font_GetCapHeight'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Font_GetCapHeight

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Font_TextWidth
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Font_TextWidth (  $font )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_TextWidth, 'HPDF_Font_TextWidth' , _ 
			$HPDF_Font , $font  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Font_TextWidth

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Font_MeasureText
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Font_MeasureText (  $font, $HPDF_REAL, $HPDF_REAL, $HPDF_REAL, $HPDF_REAL, $HPDF_BOOL )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_UINT, 'HPDF_Font_MeasureText' , _ 
			$HPDF_Font , $font , _ 
			'len' , $HPDF_REAL , _ 
			'width' , $HPDF_REAL , _ 
			'font_size' , $HPDF_REAL , _ 
			'char_space' , $HPDF_REAL , _ 
			'word_space' , $HPDF_BOOL  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Font_MeasureText

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_CreateExtGState
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_CreateExtGState ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_ExtGState, 'HPDF_CreateExtGState'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_CreateExtGState

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_ExtGState_SetAlphaStroke
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_ExtGState_SetAlphaStroke (  $ext_gstate )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_ExtGState_SetAlphaStroke' , _ 
			$HPDF_ExtGState , $ext_gstate  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_ExtGState_SetAlphaStroke

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_ExtGState_SetAlphaFill
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_ExtGState_SetAlphaFill (  $ext_gstate )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_ExtGState_SetAlphaFill' , _ 
			$HPDF_ExtGState , $ext_gstate  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_ExtGState_SetAlphaFill

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_ExtGState_SetBlendMode
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_ExtGState_SetBlendMode (  $ext_gstate )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_ExtGState_SetBlendMode' , _ 
			$HPDF_ExtGState , $ext_gstate  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_ExtGState_SetBlendMode

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_TextWidth
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_TextWidth (  $page )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_REAL, 'HPDF_Page_TextWidth' , _ 
			$HPDF_Page , $page  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_TextWidth

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_MeasureText
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_MeasureText (  $page, $HPDF_BOOL )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_UINT, 'HPDF_Page_MeasureText' , _ 
			$HPDF_Page , $page , _ 
			'width' , $HPDF_BOOL  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_MeasureText

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetWidth
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetWidth ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_REAL, 'HPDF_Page_GetWidth'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetWidth

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetHeight
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetHeight ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_REAL, 'HPDF_Page_GetHeight'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetHeight

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetGMode
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetGMode ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_UINT16, 'HPDF_Page_GetGMode'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetGMode

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetCurrentPos
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetCurrentPos ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_Point, 'HPDF_Page_GetCurrentPos'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetCurrentPos

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetCurrentPos2
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetCurrentPos2 (  $page )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_GetCurrentPos2' , _ 
			$HPDF_Page , $page  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetCurrentPos2

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetCurrentTextPos
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetCurrentTextPos ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_Point, 'HPDF_Page_GetCurrentTextPos'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetCurrentTextPos

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetCurrentTextPos2
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetCurrentTextPos2 (  $page )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_GetCurrentTextPos2' , _ 
			$HPDF_Page , $page  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetCurrentTextPos2

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetCurrentFont
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetCurrentFont ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_Font, 'HPDF_Page_GetCurrentFont'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetCurrentFont

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetCurrentFontSize
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetCurrentFontSize ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_REAL, 'HPDF_Page_GetCurrentFontSize'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetCurrentFontSize

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetTransMatrix
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetTransMatrix ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_TransMatrix, 'HPDF_Page_GetTransMatrix'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetTransMatrix

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetLineWidth
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetLineWidth ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_REAL, 'HPDF_Page_GetLineWidth'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetLineWidth

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetLineCap
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetLineCap ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_LineCap, 'HPDF_Page_GetLineCap'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetLineCap

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetLineJoin
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetLineJoin ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_LineJoin, 'HPDF_Page_GetLineJoin'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetLineJoin

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetMiterLimit
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetMiterLimit ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_REAL, 'HPDF_Page_GetMiterLimit'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetMiterLimit

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetDash
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetDash ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_DashMode, 'HPDF_Page_GetDash'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetDash

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetFlat
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetFlat ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_REAL, 'HPDF_Page_GetFlat'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetFlat

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetCharSpace
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetCharSpace ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_REAL, 'HPDF_Page_GetCharSpace'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetCharSpace

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetWordSpace
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetWordSpace ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_REAL, 'HPDF_Page_GetWordSpace'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetWordSpace

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetHorizontalScalling
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetHorizontalScalling ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_REAL, 'HPDF_Page_GetHorizontalScalling'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetHorizontalScalling

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetTextLeading
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetTextLeading ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_REAL, 'HPDF_Page_GetTextLeading'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetTextLeading

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetTextRenderingMode
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetTextRenderingMode ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_TextRenderingMode, 'HPDF_Page_GetTextRenderingMode'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetTextRenderingMode

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetTextRaise
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetTextRaise ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_REAL, 'HPDF_Page_GetTextRaise'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetTextRaise

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetTextRise
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetTextRise ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_REAL, 'HPDF_Page_GetTextRise'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetTextRise

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetRGBFill
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetRGBFill ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_RGBColor, 'HPDF_Page_GetRGBFill'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetRGBFill

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetRGBStroke
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetRGBStroke ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_RGBColor, 'HPDF_Page_GetRGBStroke'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetRGBStroke

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetCMYKFill
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetCMYKFill ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_CMYKColor, 'HPDF_Page_GetCMYKFill'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetCMYKFill

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetCMYKStroke
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetCMYKStroke ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_CMYKColor, 'HPDF_Page_GetCMYKStroke'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetCMYKStroke

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetGrayFill
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetGrayFill ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_REAL, 'HPDF_Page_GetGrayFill'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetGrayFill

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetGrayStroke
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetGrayStroke ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_REAL, 'HPDF_Page_GetGrayStroke'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetGrayStroke

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetStrokingColorSpace
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetStrokingColorSpace ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_ColorSpace, 'HPDF_Page_GetStrokingColorSpace'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetStrokingColorSpace

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetFillingColorSpace
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetFillingColorSpace ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_ColorSpace, 'HPDF_Page_GetFillingColorSpace'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetFillingColorSpace

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetTextMatrix
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetTextMatrix ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_TransMatrix, 'HPDF_Page_GetTextMatrix'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetTextMatrix

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GetGStateDepth
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GetGStateDepth ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_UINT, 'HPDF_Page_GetGStateDepth'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GetGStateDepth

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_SetLineWidth
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_SetLineWidth (  $page )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_SetLineWidth' , _ 
			$HPDF_Page , $page  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_SetLineWidth

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_SetLineCap
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_SetLineCap (  $page )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_SetLineCap' , _ 
			$HPDF_Page , $page  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_SetLineCap

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_SetLineJoin
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_SetLineJoin (  $page )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_SetLineJoin' , _ 
			$HPDF_Page , $page  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_SetLineJoin

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_SetMiterLimit
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_SetMiterLimit (  $page )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_SetMiterLimit' , _ 
			$HPDF_Page , $page  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_SetMiterLimit

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_SetDash
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_SetDash (  $page )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_SetDash' , _ 
			$HPDF_Page , $page  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_SetDash

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_SetFlat
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_SetFlat (  $page )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_SetFlat' , _ 
			$HPDF_Page , $page  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_SetFlat

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_SetExtGState
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_SetExtGState (  $page )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_SetExtGState' , _ 
			$HPDF_Page , $page  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_SetExtGState

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GSave
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GSave ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_GSave'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GSave

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_GRestore
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_GRestore ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_GRestore'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_GRestore

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_Concat
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_Concat (  $page, $a, $b, $c, $d, $x )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_Concat' , _ 
			$HPDF_Page , $page , _ 
			$HPDF_REAL , $a , _ 
			$HPDF_REAL , $b , _ 
			$HPDF_REAL , $c , _ 
			$HPDF_REAL , $d , _ 
			$HPDF_REAL , $x  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_Concat

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_MoveTo
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_MoveTo (  $page, $x )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_MoveTo' , _ 
			$HPDF_Page , $page , _ 
			$HPDF_REAL , $x  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_MoveTo

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_LineTo
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_LineTo (  $page, $x )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_LineTo' , _ 
			$HPDF_Page , $page , _ 
			$HPDF_REAL , $x  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_LineTo

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_CurveTo
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_CurveTo (  $page, $x1, $y1, $x2, $y2, $x3 )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_CurveTo' , _ 
			$HPDF_Page , $page , _ 
			$HPDF_REAL , $x1 , _ 
			$HPDF_REAL , $y1 , _ 
			$HPDF_REAL , $x2 , _ 
			$HPDF_REAL , $y2 , _ 
			$HPDF_REAL , $x3  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_CurveTo

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_CurveTo2
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_CurveTo2 (  $page, $x2, $y2, $x3 )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_CurveTo2' , _ 
			$HPDF_Page , $page , _ 
			$HPDF_REAL , $x2 , _ 
			$HPDF_REAL , $y2 , _ 
			$HPDF_REAL , $x3  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_CurveTo2

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_CurveTo3
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_CurveTo3 (  $page, $x1, $y1, $x3 )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_CurveTo3' , _ 
			$HPDF_Page , $page , _ 
			$HPDF_REAL , $x1 , _ 
			$HPDF_REAL , $y1 , _ 
			$HPDF_REAL , $x3  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_CurveTo3

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_ClosePath
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_ClosePath ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_ClosePath'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_ClosePath

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_Rectangle
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_Rectangle (  $page, $x, $y, $width )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_Rectangle' , _ 
			$HPDF_Page , $page , _ 
			$HPDF_REAL , $x , _ 
			$HPDF_REAL , $y , _ 
			$HPDF_REAL , $width  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_Rectangle

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_Stroke
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_Stroke ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_Stroke'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_Stroke

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_ClosePathStroke
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_ClosePathStroke ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_ClosePathStroke'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_ClosePathStroke

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_Fill
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_Fill ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_Fill'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_Fill

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_Eofill
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_Eofill ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_Eofill'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_Eofill

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_FillStroke
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_FillStroke ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_FillStroke'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_FillStroke

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_EofillStroke
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_EofillStroke ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_EofillStroke'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_EofillStroke

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_ClosePathFillStroke
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_ClosePathFillStroke ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_ClosePathFillStroke'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_ClosePathFillStroke

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_ClosePathEofillStroke
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_ClosePathEofillStroke ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_ClosePathEofillStroke'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_ClosePathEofillStroke

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_EndPath
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_EndPath ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_EndPath'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_EndPath

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_Clip
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_Clip ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_Clip'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_Clip

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_Eoclip
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_Eoclip ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_Eoclip'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_Eoclip

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_BeginText
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_BeginText ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_BeginText'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_BeginText

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_EndText
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_EndText ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_EndText'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_EndText

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_SetCharSpace
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_SetCharSpace (  $page )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_SetCharSpace' , _ 
			$HPDF_Page , $page  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_SetCharSpace

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_SetWordSpace
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_SetWordSpace (  $page )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_SetWordSpace' , _ 
			$HPDF_Page , $page  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_SetWordSpace

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_SetHorizontalScalling
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_SetHorizontalScalling (  $page )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_SetHorizontalScalling' , _ 
			$HPDF_Page , $page  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_SetHorizontalScalling

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_SetTextLeading
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_SetTextLeading (  $page )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_SetTextLeading' , _ 
			$HPDF_Page , $page  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_SetTextLeading

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_SetFontAndSize
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_SetFontAndSize (  $page, $font )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_SetFontAndSize' , _ 
			$HPDF_Page , $page , _ 
			$HPDF_Font , $font  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_SetFontAndSize

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_SetTextRenderingMode
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_SetTextRenderingMode (  $page )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_SetTextRenderingMode' , _ 
			$HPDF_Page , $page  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_SetTextRenderingMode

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_SetTextRise
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_SetTextRise (  $page )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_SetTextRise' , _ 
			$HPDF_Page , $page  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_SetTextRise

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_SetTextRaise
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_SetTextRaise (  $page )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_SetTextRaise' , _ 
			$HPDF_Page , $page  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_SetTextRaise

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_MoveTextPos
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_MoveTextPos (  $page, $x )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_MoveTextPos' , _ 
			$HPDF_Page , $page , _ 
			$HPDF_REAL , $x  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_MoveTextPos

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_MoveTextPos2
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_MoveTextPos2 (  $page, $x )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_MoveTextPos2' , _ 
			$HPDF_Page , $page , _ 
			$HPDF_REAL , $x  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_MoveTextPos2

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_SetTextMatrix
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_SetTextMatrix (  $page, $a, $b, $c, $d, $x )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_SetTextMatrix' , _ 
			$HPDF_Page , $page , _ 
			$HPDF_REAL , $a , _ 
			$HPDF_REAL , $b , _ 
			$HPDF_REAL , $c , _ 
			$HPDF_REAL , $d , _ 
			$HPDF_REAL , $x  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_SetTextMatrix

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_MoveToNextLine
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_MoveToNextLine ( )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_MoveToNextLine'  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_MoveToNextLine

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_ShowText
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_ShowText (  $page )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_ShowText' , _ 
			$HPDF_Page , $page  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_ShowText

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_ShowTextNextLine
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_ShowTextNextLine (  $page )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_ShowTextNextLine' , _ 
			$HPDF_Page , $page  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_ShowTextNextLine

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_ShowTextNextLineEx
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_ShowTextNextLineEx (  $page, $word_space, $char_space )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_ShowTextNextLineEx' , _ 
			$HPDF_Page , $page , _ 
			$HPDF_REAL , $word_space , _ 
			$HPDF_REAL , $char_space  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_ShowTextNextLineEx

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_SetGrayFill
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_SetGrayFill (  $page )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_SetGrayFill' , _ 
			$HPDF_Page , $page  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_SetGrayFill

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_SetGrayStroke
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_SetGrayStroke (  $page )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_SetGrayStroke' , _ 
			$HPDF_Page , $page  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_SetGrayStroke

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_SetRGBFill
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_SetRGBFill (  $page, $r, $g )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_SetRGBFill' , _ 
			$HPDF_Page , $page , _ 
			$HPDF_REAL , $r , _ 
			$HPDF_REAL , $g  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_SetRGBFill

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_SetRGBStroke
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_SetRGBStroke (  $page, $r, $g )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_SetRGBStroke' , _ 
			$HPDF_Page , $page , _ 
			$HPDF_REAL , $r , _ 
			$HPDF_REAL , $g  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_SetRGBStroke

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_SetCMYKFill
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_SetCMYKFill (  $page, $c, $m, $y )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_SetCMYKFill' , _ 
			$HPDF_Page , $page , _ 
			$HPDF_REAL , $c , _ 
			$HPDF_REAL , $m , _ 
			$HPDF_REAL , $y  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_SetCMYKFill

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_SetCMYKStroke
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_SetCMYKStroke (  $page, $c, $m, $y )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_SetCMYKStroke' , _ 
			$HPDF_Page , $page , _ 
			$HPDF_REAL , $c , _ 
			$HPDF_REAL , $m , _ 
			$HPDF_REAL , $y  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_SetCMYKStroke

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_ExecuteXObject
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_ExecuteXObject (  $page )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_ExecuteXObject' , _ 
			$HPDF_Page , $page  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_ExecuteXObject

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_DrawImage
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_DrawImage (  $page, $image, $x, $y, $width )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_DrawImage' , _ 
			$HPDF_Page , $page , _ 
			$HPDF_Image , $image , _ 
			$HPDF_REAL , $x , _ 
			$HPDF_REAL , $y , _ 
			$HPDF_REAL , $width  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_DrawImage

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_Circle
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_Circle (  $page, $x, $y )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_Circle' , _ 
			$HPDF_Page , $page , _ 
			$HPDF_REAL , $x , _ 
			$HPDF_REAL , $y  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_Circle

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_Ellipse
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_Ellipse (  $page, $x, $y, $xray )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_Ellipse' , _ 
			$HPDF_Page , $page , _ 
			$HPDF_REAL , $x , _ 
			$HPDF_REAL , $y , _ 
			$HPDF_REAL , $xray  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_Ellipse

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_Arc
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_Arc (  $page, $x, $y, $ray, $ang1 )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_Arc' , _ 
			$HPDF_Page , $page , _ 
			$HPDF_REAL , $x , _ 
			$HPDF_REAL , $y , _ 
			$HPDF_REAL , $ray , _ 
			$HPDF_REAL , $ang1  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_Arc

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_TextOut
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_TextOut (  $page, $xpos, $ypos )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_TextOut' , _ 
			$HPDF_Page , $page , _ 
			$HPDF_REAL , $xpos , _ 
			$HPDF_REAL , $ypos  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_TextOut

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_TextRect
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_TextRect (  $page, $left, $top, $right, $bottom )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_TextRect' , _ 
			$HPDF_Page , $page , _ 
			$HPDF_REAL , $left , _ 
			$HPDF_REAL , $top , _ 
			$HPDF_REAL , $right , _ 
			$HPDF_REAL , $bottom  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_TextRect

; #FUNCTION# ====================================================================================================================
; Name...........: _HPDF_Page_SetSlideShow
; Description ...: 
; Syntax.........: 
; Parameters ....: 
; Return values .: Success      - 
;                  Failure      - 
; Author ........: Prog@ndy
; Modified.......: 
; Remarks .......: 
; Related .......: 
; Link ..........; 
; Example .......; 
; ===============================================================================================================================
Func _HPDF_Page_SetSlideShow (  $page, $type, $disp_time )
	Local $result = DllCall( $__hLibHPdfDll, $HPDF_STATUS, 'HPDF_Page_SetSlideShow' , _ 
			$HPDF_Page , $page , _ 
			$HPDF_TransitionStyle , $type , _ 
			$HPDF_REAL , $disp_time  )
	If @error Then Return SetError(1,@error,0)
Return $result[0]
EndFunc ;==>_HPDF_Page_SetSlideShow
