C# Класс HPdf.HPdfDoc

Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

AddPage() публичный Метод

public AddPage ( ) : HPdfPage
Результат HPdfPage

AddPageLabel() публичный Метод

public AddPageLabel ( uint page_num, HPdfPageNumStyle style, uint first_page, string prefix ) : void
page_num uint
style HPdfPageNumStyle
first_page uint
prefix string
Результат void

CreateExtGState() публичный Метод

public CreateExtGState ( ) : HPdfExtGState
Результат HPdfExtGState

CreateOutline() публичный Метод

public CreateOutline ( HPdfOutline parent, string title, HPdfEncoder encoder ) : HPdfOutline
parent HPdfOutline
title string
encoder HPdfEncoder
Результат HPdfOutline

ErrorProc() публичный статический Метод

public static ErrorProc ( uint error_no, uint detail_no, IntPtr user_data ) : void
error_no uint
detail_no uint
user_data System.IntPtr
Результат void

FreeDoc() публичный Метод

public FreeDoc ( ) : void
Результат void

FreeDocAll() публичный Метод

public FreeDocAll ( ) : void
Результат void

GetCurrentEncoder() публичный Метод

public GetCurrentEncoder ( ) : HPdfEncoder
Результат HPdfEncoder

GetCurrentPage() публичный Метод

public GetCurrentPage ( ) : HPdfPage
Результат HPdfPage

GetEncoder() публичный Метод

public GetEncoder ( string encoding_name ) : HPdfEncoder
encoding_name string
Результат HPdfEncoder

GetError() публичный Метод

public GetError ( ) : uint
Результат uint

GetErrorDetail() публичный Метод

public GetErrorDetail ( ) : uint
Результат uint

GetFont() публичный Метод

public GetFont ( string font_name, string encoding_name ) : HPdfFont
font_name string
encoding_name string
Результат HPdfFont

GetInfoAttr() публичный Метод

public GetInfoAttr ( HPdfInfoType type ) : string
type HPdfInfoType
Результат string

GetPageByIndex() публичный Метод

public GetPageByIndex ( uint index ) : HPdfPage
index uint
Результат HPdfPage

GetPageLayout() публичный Метод

public GetPageLayout ( ) : HPdfPageLayout
Результат HPdfPageLayout

GetPageMode() публичный Метод

public GetPageMode ( ) : HPdfPageMode
Результат HPdfPageMode

GetViewerPreference() публичный Метод

public GetViewerPreference ( ) : uint
Результат uint

HPdfDoc() публичный Метод

public HPdfDoc ( ) : System
Результат System

HPdfGetVersion() публичный статический Метод

public static HPdfGetVersion ( ) : string
Результат string

HasDoc() публичный Метод

public HasDoc ( ) : bool
Результат bool

IDisposable() публичный Метод

public IDisposable ( ) : void
Результат void

InsertPage() публичный Метод

public InsertPage ( HPdfPage page ) : HPdfPage
page HPdfPage
Результат HPdfPage

LoadJpegImageFromFile() публичный Метод

public LoadJpegImageFromFile ( string filename ) : HPdfImage
filename string
Результат HPdfImage

LoadPngImageFromFile() публичный Метод

public LoadPngImageFromFile ( string filename ) : HPdfImage
filename string
Результат HPdfImage

LoadPngImageFromFile2() публичный Метод

public LoadPngImageFromFile2 ( string filename ) : HPdfImage
filename string
Результат HPdfImage

LoadRawImageFromFile() публичный Метод

public LoadRawImageFromFile ( string filename, uint width, uint height, HPdfColorSpace color_space ) : HPdfImage
filename string
width uint
height uint
color_space HPdfColorSpace
Результат HPdfImage

LoadRawImageFromMem() публичный Метод

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
Результат HPdfImage

LoadTTFontFromFile() публичный Метод

public LoadTTFontFromFile ( string file_name, bool embedding ) : string
file_name string
embedding bool
Результат string

LoadTTFontFromFile2() публичный Метод

public LoadTTFontFromFile2 ( string file_name, uint index, bool embedding ) : string
file_name string
index uint
embedding bool
Результат string

LoadType1FontFromFile() публичный Метод

public LoadType1FontFromFile ( string afmfilename, string pfmfilename ) : string
afmfilename string
pfmfilename string
Результат string

NewDoc() публичный Метод

public NewDoc ( ) : void
Результат void

ResetError() публичный Метод

public ResetError ( ) : void
Результат void

SaveToFile() публичный Метод

public SaveToFile ( string file_name ) : void
file_name string
Результат void

SetCompressionMode() публичный Метод

public SetCompressionMode ( uint mode ) : void
mode uint
Результат void

SetCurrentEncoder() публичный Метод

public SetCurrentEncoder ( string encoding_name ) : void
encoding_name string
Результат void

SetEncryptionMode() публичный Метод

public SetEncryptionMode ( HPdfEncryptMode mode, uint key_len ) : void
mode HPdfEncryptMode
key_len uint
Результат void

SetInfoAttr() публичный Метод

public SetInfoAttr ( HPdfInfoType type, string value ) : void
type HPdfInfoType
value string
Результат void

SetInfoDateAttr() публичный Метод

public SetInfoDateAttr ( HPdfInfoType type, HPdfDate value ) : void
type HPdfInfoType
value HPdfDate
Результат void

SetOpenAction() публичный Метод

public SetOpenAction ( HPdfDestination open_action ) : void
open_action HPdfDestination
Результат void

SetPageLayout() публичный Метод

public SetPageLayout ( HPdfPageLayout layout ) : void
layout HPdfPageLayout
Результат void

SetPageMode() публичный Метод

public SetPageMode ( HPdfPageMode mode ) : void
mode HPdfPageMode
Результат void

SetPagesConfiguration() публичный Метод

public SetPagesConfiguration ( uint page_per_pages ) : void
page_per_pages uint
Результат void

SetPassword() публичный Метод

public SetPassword ( string owner_passwd, string user_passwd ) : void
owner_passwd string
user_passwd string
Результат void

SetPermission() публичный Метод

public SetPermission ( uint permission ) : void
permission uint
Результат void

SetViewerPreference() публичный Метод

public SetViewerPreference ( uint value ) : void
value uint
Результат void

UseCNSEncodings() публичный Метод

public UseCNSEncodings ( ) : uint
Результат uint

UseCNSFonts() публичный Метод

public UseCNSFonts ( ) : uint
Результат uint

UseCNTEncodings() публичный Метод

public UseCNTEncodings ( ) : uint
Результат uint

UseCNTFonts() публичный Метод

public UseCNTFonts ( ) : uint
Результат uint

UseJPEncodings() публичный Метод

public UseJPEncodings ( ) : uint
Результат uint

UseJPFonts() публичный Метод

public UseJPFonts ( ) : uint
Результат uint

UseKREncodings() публичный Метод

public UseKREncodings ( ) : uint
Результат uint

UseKRFonts() публичный Метод

public UseKRFonts ( ) : uint
Результат uint