C# Class HPdf.HPdfDoc

Inheritance: IDisposable
Show file Open project: ChristophGuillermet/WHITECAT_opensource Class Usage Examples

Public Methods

Method Description
AddPage ( ) : HPdfPage
AddPageLabel ( uint page_num, HPdfPageNumStyle style, uint first_page, string prefix ) : void
CreateExtGState ( ) : HPdfExtGState
CreateOutline ( HPdfOutline parent, string title, HPdfEncoder encoder ) : HPdfOutline
ErrorProc ( uint error_no, uint detail_no, IntPtr user_data ) : void
FreeDoc ( ) : void
FreeDocAll ( ) : void
GetCurrentEncoder ( ) : HPdfEncoder
GetCurrentPage ( ) : HPdfPage
GetEncoder ( string encoding_name ) : HPdfEncoder
GetError ( ) : uint
GetErrorDetail ( ) : uint
GetFont ( string font_name, string encoding_name ) : HPdfFont
GetInfoAttr ( HPdfInfoType type ) : string
GetPageByIndex ( uint index ) : HPdfPage
GetPageLayout ( ) : HPdfPageLayout
GetPageMode ( ) : HPdfPageMode
GetViewerPreference ( ) : uint
HPdfDoc ( ) : System
HPdfGetVersion ( ) : string
HasDoc ( ) : bool
IDisposable ( ) : void
InsertPage ( HPdfPage page ) : HPdfPage
LoadJpegImageFromFile ( string filename ) : HPdfImage
LoadPngImageFromFile ( string filename ) : HPdfImage
LoadPngImageFromFile2 ( string filename ) : HPdfImage
LoadRawImageFromFile ( string filename, uint width, uint height, HPdfColorSpace color_space ) : HPdfImage
LoadRawImageFromMem ( byte data, int width, int height, HPdfColorSpace color_space, uint bits_per_component ) : HPdfImage
LoadTTFontFromFile ( string file_name, bool embedding ) : string
LoadTTFontFromFile2 ( string file_name, uint index, bool embedding ) : string
LoadType1FontFromFile ( string afmfilename, string pfmfilename ) : string
NewDoc ( ) : void
ResetError ( ) : void
SaveToFile ( string file_name ) : void
SetCompressionMode ( uint mode ) : void
SetCurrentEncoder ( string encoding_name ) : void
SetEncryptionMode ( HPdfEncryptMode mode, uint key_len ) : void
SetInfoAttr ( HPdfInfoType type, string value ) : void
SetInfoDateAttr ( HPdfInfoType type, HPdfDate value ) : void
SetOpenAction ( HPdfDestination open_action ) : void
SetPageLayout ( HPdfPageLayout layout ) : void
SetPageMode ( HPdfPageMode mode ) : void
SetPagesConfiguration ( uint page_per_pages ) : void
SetPassword ( string owner_passwd, string user_passwd ) : void
SetPermission ( uint permission ) : void
SetViewerPreference ( uint value ) : void
UseCNSEncodings ( ) : uint
UseCNSFonts ( ) : uint
UseCNTEncodings ( ) : uint
UseCNTFonts ( ) : uint
UseJPEncodings ( ) : uint
UseJPFonts ( ) : uint
UseKREncodings ( ) : uint
UseKRFonts ( ) : uint

Private Methods

Method Description
HPDF_AddPage ( IntPtr pdf ) : IntPtr
HPDF_AddPageLabel ( IntPtr pdf, uint page_num, HPdfPageNumStyle style, uint first_page, string prefix ) : uint
HPDF_CreateExtGState ( IntPtr pdf ) : IntPtr
HPDF_CreateOutline ( IntPtr pdf, IntPtr parent, string title, IntPtr encoder ) : IntPtr
HPDF_Free ( IntPtr pdf ) : void
HPDF_FreeDoc ( IntPtr pdf ) : uint
HPDF_FreeDocAll ( IntPtr pdf ) : uint
HPDF_GetCurrentEncoder ( IntPtr pdf ) : IntPtr
HPDF_GetCurrentPage ( IntPtr pdf ) : IntPtr
HPDF_GetEncoder ( IntPtr pdf, string encoding_name ) : IntPtr
HPDF_GetError ( IntPtr pdf ) : uint
HPDF_GetErrorDetail ( IntPtr pdf ) : uint
HPDF_GetFont ( IntPtr pdf, string font_name, string encoding_name ) : IntPtr
HPDF_GetInfoAttr ( IntPtr pdf, HPdfInfoType type ) : string
HPDF_GetPageByIndex ( IntPtr pdf, uint index ) : IntPtr
HPDF_GetPageLayout ( IntPtr pdf ) : HPdfPageLayout
HPDF_GetPageMode ( IntPtr pdf ) : HPdfPageMode
HPDF_GetVersion ( ) : string
HPDF_GetViewerPreference ( IntPtr pdf ) : uint
HPDF_HasDoc ( IntPtr pdf ) : uint
HPDF_InsertPage ( IntPtr pdf, IntPtr page ) : IntPtr
HPDF_LoadJpegImageFromFile ( IntPtr pdf, string filename ) : IntPtr
HPDF_LoadPngImageFromFile ( IntPtr pdf, string filename ) : IntPtr
HPDF_LoadPngImageFromFile2 ( IntPtr pdf, string filename ) : IntPtr
HPDF_LoadRawImageFromFile ( IntPtr pdf, string filename, uint width, uint height, HPdfColorSpace color_space ) : IntPtr
HPDF_LoadRawImageFromMem ( IntPtr pdf, byte data, int width, int height, HPdfColorSpace color_space, uint bits_per_component ) : IntPtr
HPDF_LoadTTFontFromFile ( IntPtr pdf, string file_name, int embedding ) : string
HPDF_LoadTTFontFromFile2 ( IntPtr pdf, string file_name, uint index, int embedding ) : string
HPDF_LoadType1FontFromFile ( IntPtr pdf, string afmfilename, string pfmfilename ) : string
HPDF_New ( HPDF_ErrorHandler user_error_fn, IntPtr user_data ) : IntPtr
HPDF_NewDoc ( IntPtr pdf ) : uint
HPDF_ResetError ( IntPtr pdf ) : void
HPDF_SaveToFile ( IntPtr pdf, string file_name ) : uint
HPDF_SetCompressionMode ( IntPtr pdf, uint mode ) : uint
HPDF_SetCurrentEncoder ( IntPtr pdf, string encoding_name ) : uint
HPDF_SetEncryptionMode ( IntPtr pdf, HPdfEncryptMode mode, uint key_len ) : uint
HPDF_SetInfoAttr ( IntPtr pdf, HPdfInfoType type, string value ) : uint
HPDF_SetInfoDateAttr ( IntPtr pdf, HPdfInfoType type, HPdfDate value ) : uint
HPDF_SetOpenAction ( IntPtr pdf, IntPtr open_action ) : uint
HPDF_SetPageLayout ( IntPtr pdf, HPdfPageLayout layout ) : uint
HPDF_SetPageMode ( IntPtr pdf, HPdfPageMode mode ) : uint
HPDF_SetPagesConfiguration ( IntPtr pdf, uint page_per_pages ) : uint
HPDF_SetPassword ( IntPtr pdf, string owner_passwd, string user_passwd ) : uint
HPDF_SetPermission ( IntPtr pdf, uint permission ) : uint
HPDF_SetViewerPreference ( IntPtr pdf, uint value ) : uint
HPDF_UseCNSEncodings ( IntPtr pdf ) : uint
HPDF_UseCNSFonts ( IntPtr pdf ) : uint
HPDF_UseCNTEncodings ( IntPtr pdf ) : uint
HPDF_UseCNTFonts ( IntPtr pdf ) : uint
HPDF_UseJPEncodings ( IntPtr pdf ) : uint
HPDF_UseJPFonts ( IntPtr pdf ) : uint
HPDF_UseKREncodings ( IntPtr pdf ) : uint
HPDF_UseKRFonts ( IntPtr pdf ) : uint

Method Details

AddPage() public method

public AddPage ( ) : HPdfPage
return HPdfPage

AddPageLabel() public method

public AddPageLabel ( uint page_num, HPdfPageNumStyle style, uint first_page, string prefix ) : void
page_num uint
style HPdfPageNumStyle
first_page uint
prefix string
return void

CreateExtGState() public method

public CreateExtGState ( ) : HPdfExtGState
return HPdfExtGState

CreateOutline() public method

public CreateOutline ( HPdfOutline parent, string title, HPdfEncoder encoder ) : HPdfOutline
parent HPdfOutline
title string
encoder HPdfEncoder
return HPdfOutline

ErrorProc() public static method

public static ErrorProc ( uint error_no, uint detail_no, IntPtr user_data ) : void
error_no uint
detail_no uint
user_data System.IntPtr
return void

FreeDoc() public method

public FreeDoc ( ) : void
return void

FreeDocAll() public method

public FreeDocAll ( ) : void
return void

GetCurrentEncoder() public method

public GetCurrentEncoder ( ) : HPdfEncoder
return HPdfEncoder

GetCurrentPage() public method

public GetCurrentPage ( ) : HPdfPage
return HPdfPage

GetEncoder() public method

public GetEncoder ( string encoding_name ) : HPdfEncoder
encoding_name string
return HPdfEncoder

GetError() public method

public GetError ( ) : uint
return uint

GetErrorDetail() public method

public GetErrorDetail ( ) : uint
return uint

GetFont() public method

public GetFont ( string font_name, string encoding_name ) : HPdfFont
font_name string
encoding_name string
return HPdfFont

GetInfoAttr() public method

public GetInfoAttr ( HPdfInfoType type ) : string
type HPdfInfoType
return string

GetPageByIndex() public method

public GetPageByIndex ( uint index ) : HPdfPage
index uint
return HPdfPage

GetPageLayout() public method

public GetPageLayout ( ) : HPdfPageLayout
return HPdfPageLayout

GetPageMode() public method

public GetPageMode ( ) : HPdfPageMode
return HPdfPageMode

GetViewerPreference() public method

public GetViewerPreference ( ) : uint
return uint

HPdfDoc() public method

public HPdfDoc ( ) : System
return System

HPdfGetVersion() public static method

public static HPdfGetVersion ( ) : string
return string

HasDoc() public method

public HasDoc ( ) : bool
return bool

IDisposable() public method

public IDisposable ( ) : void
return void

InsertPage() public method

public InsertPage ( HPdfPage page ) : HPdfPage
page HPdfPage
return HPdfPage

LoadJpegImageFromFile() public method

public LoadJpegImageFromFile ( string filename ) : HPdfImage
filename string
return HPdfImage

LoadPngImageFromFile() public method

public LoadPngImageFromFile ( string filename ) : HPdfImage
filename string
return HPdfImage

LoadPngImageFromFile2() public method

public LoadPngImageFromFile2 ( string filename ) : HPdfImage
filename string
return HPdfImage

LoadRawImageFromFile() public method

public LoadRawImageFromFile ( string filename, uint width, uint height, HPdfColorSpace color_space ) : HPdfImage
filename string
width uint
height uint
color_space HPdfColorSpace
return HPdfImage

LoadRawImageFromMem() public method

public LoadRawImageFromMem ( byte data, int width, int height, HPdfColorSpace color_space, uint bits_per_component ) : HPdfImage
data byte
width int
height int
color_space HPdfColorSpace
bits_per_component uint
return HPdfImage

LoadTTFontFromFile() public method

public LoadTTFontFromFile ( string file_name, bool embedding ) : string
file_name string
embedding bool
return string

LoadTTFontFromFile2() public method

public LoadTTFontFromFile2 ( string file_name, uint index, bool embedding ) : string
file_name string
index uint
embedding bool
return string

LoadType1FontFromFile() public method

public LoadType1FontFromFile ( string afmfilename, string pfmfilename ) : string
afmfilename string
pfmfilename string
return string

NewDoc() public method

public NewDoc ( ) : void
return void

ResetError() public method

public ResetError ( ) : void
return void

SaveToFile() public method

public SaveToFile ( string file_name ) : void
file_name string
return void

SetCompressionMode() public method

public SetCompressionMode ( uint mode ) : void
mode uint
return void

SetCurrentEncoder() public method

public SetCurrentEncoder ( string encoding_name ) : void
encoding_name string
return void

SetEncryptionMode() public method

public SetEncryptionMode ( HPdfEncryptMode mode, uint key_len ) : void
mode HPdfEncryptMode
key_len uint
return void

SetInfoAttr() public method

public SetInfoAttr ( HPdfInfoType type, string value ) : void
type HPdfInfoType
value string
return void

SetInfoDateAttr() public method

public SetInfoDateAttr ( HPdfInfoType type, HPdfDate value ) : void
type HPdfInfoType
value HPdfDate
return void

SetOpenAction() public method

public SetOpenAction ( HPdfDestination open_action ) : void
open_action HPdfDestination
return void

SetPageLayout() public method

public SetPageLayout ( HPdfPageLayout layout ) : void
layout HPdfPageLayout
return void

SetPageMode() public method

public SetPageMode ( HPdfPageMode mode ) : void
mode HPdfPageMode
return void

SetPagesConfiguration() public method

public SetPagesConfiguration ( uint page_per_pages ) : void
page_per_pages uint
return void

SetPassword() public method

public SetPassword ( string owner_passwd, string user_passwd ) : void
owner_passwd string
user_passwd string
return void

SetPermission() public method

public SetPermission ( uint permission ) : void
permission uint
return void

SetViewerPreference() public method

public SetViewerPreference ( uint value ) : void
value uint
return void

UseCNSEncodings() public method

public UseCNSEncodings ( ) : uint
return uint

UseCNSFonts() public method

public UseCNSFonts ( ) : uint
return uint

UseCNTEncodings() public method

public UseCNTEncodings ( ) : uint
return uint

UseCNTFonts() public method

public UseCNTFonts ( ) : uint
return uint

UseJPEncodings() public method

public UseJPEncodings ( ) : uint
return uint

UseJPFonts() public method

public UseJPFonts ( ) : uint
return uint

UseKREncodings() public method

public UseKREncodings ( ) : uint
return uint

UseKRFonts() public method

public UseKRFonts ( ) : uint
return uint