Haru Free PDF Library
hpdf_doc.h File Reference
#include "hpdf_catalog.h"
#include "hpdf_image.h"
#include "hpdf_pages.h"
#include "hpdf_outline.h"
#include "hpdf_ext_gstate.h"
Include dependency graph for hpdf_doc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _HPDF_Doc_Rec
 

Macros

#define HPDF_SIG_BYTES   0x41504446L
 
#define HPDF_VER_DEFAULT   HPDF_VER_12
 

Typedefs

typedef struct _HPDF_Doc_Rec HPDF_Doc_Rec
 
typedef struct _HPDF_Doc_RecHPDF_Doc
 

Functions

HPDF_Encoder HPDF_Doc_FindEncoder (HPDF_Doc pdf, const char *encoding_name)
 
HPDF_FontDef HPDF_Doc_FindFontDef (HPDF_Doc pdf, const char *font_name)
 
HPDF_Font HPDF_Doc_FindFont (HPDF_Doc pdf, const char *font_name, const char *encoding_name)
 
HPDF_BOOL HPDF_Doc_Validate (HPDF_Doc pdf)
 
HPDF_Pages HPDF_Doc_GetCurrentPages (HPDF_Doc pdf)
 
HPDF_Pages HPDF_Doc_AddPagesTo (HPDF_Doc pdf, HPDF_Pages parent)
 
HPDF_STATUS HPDF_Doc_SetCurrentPages (HPDF_Doc pdf, HPDF_Pages pages)
 
HPDF_STATUS HPDF_Doc_SetCurrentPage (HPDF_Doc pdf, HPDF_Page page)
 
HPDF_FontDef HPDF_GetFontDef (HPDF_Doc pdf, const char *font_name)
 
HPDF_STATUS HPDF_Doc_RegisterFontDef (HPDF_Doc pdf, HPDF_FontDef fontdef)
 
HPDF_STATUS HPDF_Doc_RegisterEncoder (HPDF_Doc pdf, HPDF_Encoder encoder)
 
HPDF_STATUS HPDF_Doc_SetEncryptOn (HPDF_Doc pdf)
 
HPDF_STATUS HPDF_Doc_SetEncryptOff (HPDF_Doc pdf)
 
HPDF_STATUS HPDF_Doc_PrepareEncryption (HPDF_Doc pdf)
 

Macro Definition Documentation

◆ HPDF_SIG_BYTES

#define HPDF_SIG_BYTES   0x41504446L

◆ HPDF_VER_DEFAULT

#define HPDF_VER_DEFAULT   HPDF_VER_12

Typedef Documentation

◆ HPDF_Doc

typedef struct _HPDF_Doc_Rec* HPDF_Doc

◆ HPDF_Doc_Rec

typedef struct _HPDF_Doc_Rec HPDF_Doc_Rec

Function Documentation

◆ HPDF_Doc_AddPagesTo()

HPDF_Pages HPDF_Doc_AddPagesTo ( HPDF_Doc  pdf,
HPDF_Pages  parent 
)

◆ HPDF_Doc_FindEncoder()

HPDF_Encoder HPDF_Doc_FindEncoder ( HPDF_Doc  pdf,
const char *  encoding_name 
)

◆ HPDF_Doc_FindFont()

HPDF_Font HPDF_Doc_FindFont ( HPDF_Doc  pdf,
const char *  font_name,
const char *  encoding_name 
)

◆ HPDF_Doc_FindFontDef()

HPDF_FontDef HPDF_Doc_FindFontDef ( HPDF_Doc  pdf,
const char *  font_name 
)

◆ HPDF_Doc_GetCurrentPages()

HPDF_Pages HPDF_Doc_GetCurrentPages ( HPDF_Doc  pdf)

◆ HPDF_Doc_PrepareEncryption()

HPDF_STATUS HPDF_Doc_PrepareEncryption ( HPDF_Doc  pdf)

◆ HPDF_Doc_RegisterEncoder()

HPDF_STATUS HPDF_Doc_RegisterEncoder ( HPDF_Doc  pdf,
HPDF_Encoder  encoder 
)

◆ HPDF_Doc_RegisterFontDef()

HPDF_STATUS HPDF_Doc_RegisterFontDef ( HPDF_Doc  pdf,
HPDF_FontDef  fontdef 
)

◆ HPDF_Doc_SetCurrentPage()

HPDF_STATUS HPDF_Doc_SetCurrentPage ( HPDF_Doc  pdf,
HPDF_Page  page 
)

◆ HPDF_Doc_SetCurrentPages()

HPDF_STATUS HPDF_Doc_SetCurrentPages ( HPDF_Doc  pdf,
HPDF_Pages  pages 
)

◆ HPDF_Doc_SetEncryptOff()

HPDF_STATUS HPDF_Doc_SetEncryptOff ( HPDF_Doc  pdf)

◆ HPDF_Doc_SetEncryptOn()

HPDF_STATUS HPDF_Doc_SetEncryptOn ( HPDF_Doc  pdf)

◆ HPDF_Doc_Validate()

HPDF_BOOL HPDF_Doc_Validate ( HPDF_Doc  pdf)

◆ HPDF_GetFontDef()

HPDF_FontDef HPDF_GetFontDef ( HPDF_Doc  pdf,
const char *  font_name 
)