PoDoFo  0.9.5
Namespaces | Macros | Enumerations | Functions | Variables
PdfDefines.h File Reference
#include "PdfCompilerCompat.h"
#include <wchar.h>
#include <map>
#include <string>
#include <vector>
#include <set>
#include "PdfError.h"
#include "PdfMemoryManagement.h"
#include "podofoapi.h"

Namespaces

 PoDoFo
 

Macros

#define PODOFO_MAKE_VERSION_REAL(M, m, p)   ( (M<<16)+(m<<8)+(p) )
 
#define PODOFO_MAKE_VERSION_STR_REAL(M, m, p)   M ## . ## m ## . ## p
 
#define ePdfRenderingIntent_AbsoluteColorimetric   "AbsoluteColorimetric"
 
#define ePdfBlendMode_Normal   "Normal"
 

Enumerations

enum  PoDoFo::EPdfVersion {
  PoDoFo::ePdfVersion_1_0 = 0, PoDoFo::ePdfVersion_1_1, PoDoFo::ePdfVersion_1_2, PoDoFo::ePdfVersion_1_3,
  PoDoFo::ePdfVersion_1_4, PoDoFo::ePdfVersion_1_5, PoDoFo::ePdfVersion_1_6, PoDoFo::ePdfVersion_1_7
}
 
enum  PoDoFo::EPdfWriteMode { PoDoFo::ePdfWriteMode_Compact = 0x01, PoDoFo::ePdfWriteMode_Clean = 0x02 }
 
enum  PoDoFo::EPdfFilter {
  PoDoFo::ePdfFilter_None = -1, PoDoFo::ePdfFilter_ASCIIHexDecode, PoDoFo::ePdfFilter_ASCII85Decode , PoDoFo::ePdfFilter_FlateDecode,
  PoDoFo::ePdfFilter_RunLengthDecode
}
 
enum  PoDoFo::EPdfFontType
 
enum  PoDoFo::EPdfColorSpace {
  PoDoFo::ePdfColorSpace_DeviceGray, PoDoFo::ePdfColorSpace_DeviceRGB, PoDoFo::ePdfColorSpace_DeviceCMYK, PoDoFo::ePdfColorSpace_Separation,
  PoDoFo::ePdfColorSpace_CieLab, PoDoFo::ePdfColorSpace_Indexed
}
 
enum  PoDoFo::EPdfTextRenderingMode {
  PoDoFo::ePdfTextRenderingMode_Fill = 0, PoDoFo::ePdfTextRenderingMode_Stroke, PoDoFo::ePdfTextRenderingMode_FillAndStroke, PoDoFo::ePdfTextRenderingMode_Invisible,
  PoDoFo::ePdfTextRenderingMode_FillToClipPath, PoDoFo::ePdfTextRenderingMode_StrokeToClipPath, PoDoFo::ePdfTextRenderingMode_FillAndStrokeToClipPath, PoDoFo::ePdfTextRenderingMode_ToClipPath
}
 
enum  PoDoFo::EPdfStrokeStyle
 
enum  PoDoFo::EPdfTilingPatternType
 
enum  PoDoFo::EPdfLineCapStyle
 
enum  PoDoFo::EPdfLineJoinStyle
 
enum  PoDoFo::EPdfVerticalAlignment
 
enum  PoDoFo::EPdfAlignment
 
enum  PoDoFo::EPdfPageSize {
  PoDoFo::ePdfPageSize_A0, PoDoFo::ePdfPageSize_A1, PoDoFo::ePdfPageSize_A2, PoDoFo::ePdfPageSize_A3,
  PoDoFo::ePdfPageSize_A4, PoDoFo::ePdfPageSize_A5, PoDoFo::ePdfPageSize_A6, PoDoFo::ePdfPageSize_Letter,
  PoDoFo::ePdfPageSize_Legal, PoDoFo::ePdfPageSize_Tabloid
}
 
enum  PoDoFo::EPdfPageMode
 
enum  PoDoFo::EPdfPageLayout
 

Functions

template<typename T >
const T PoDoFo::PDF_MAX (const T a, const T b)
 
template<typename T >
const T PoDoFo::PDF_MIN (const T a, const T b)
 

Variables

const EPdfVersion PoDoFo::ePdfVersion_Default = ePdfVersion_1_3
 
 ePdfDataType_Bool
 
 ePdfDataType_Number
 
 ePdfDataType_Real
 
 ePdfDataType_String
 
 ePdfDataType_HexString
 
 ePdfDataType_Name
 
 ePdfDataType_Array
 
 ePdfDataType_Dictionary
 
 ePdfDataType_Null
 
 ePdfDataType_Reference
 
 ePdfDataType_RawData
 
const int PoDoFo::s_nNumWhiteSpaces = 6
 PDF Reference, Section 3.1.1, Table 3.1, White-space characters.
 

Detailed Description

This file should be included as the FIRST file in every header of PoDoFo lib. It includes all standard files, defines some useful macros, some datatypes and all important enumeration types. On supporting platforms it will be precompiled to speed compilation.

Macro Definition Documentation

◆ ePdfBlendMode_Normal

#define ePdfBlendMode_Normal   "Normal"

List of defined transparency blending modes

◆ ePdfRenderingIntent_AbsoluteColorimetric

#define ePdfRenderingIntent_AbsoluteColorimetric   "AbsoluteColorimetric"

List of defined Rendering intents

◆ PODOFO_MAKE_VERSION_REAL

#define PODOFO_MAKE_VERSION_REAL (   M,
  m,
 
)    ( (M<<16)+(m<<8)+(p) )

PoDoFo version - 24-bit integer representation. Version is 0xMMmmpp where M is major, m is minor and p is patch eg 0.7.0 is represented as 0x000700 eg 0.7.99 is represented as 0x000763

Note that the PoDoFo version is available in parts as individual 8-bit integer literals in PODOFO_VERSION_MAJOR, PODOFO_VERSION_MINOR and PODOFO_VERSION_PATCH .

◆ PODOFO_MAKE_VERSION_STR_REAL

#define PODOFO_MAKE_VERSION_STR_REAL (   M,
  m,
 
)    M ## . ## m ## . ## p

PoDoFo version represented as a string literal, eg '0.7.99'

Variable Documentation

◆ ePdfDataType_Array

ePdfDataType_Array

An array of other PDF data types.

◆ ePdfDataType_Bool

ePdfDataType_Bool

Boolean datatype: Accepts the values "true" and "false"

◆ ePdfDataType_Dictionary

ePdfDataType_Dictionary

A dictionary associates keys with values. A key can have another dictionary as value.

◆ ePdfDataType_HexString

ePdfDataType_HexString

HexString datatype in PDF file. Hex encoded strings have the form <AF00BE> in PDF files.

See also
PdfString

◆ ePdfDataType_Name

ePdfDataType_Name

Name datatype. Names are used as keys in dictionary to reference values.

See also
PdfName

◆ ePdfDataType_Null

ePdfDataType_Null

The null datatype is always null.

◆ ePdfDataType_Number

ePdfDataType_Number

Number datatype for integer values

◆ ePdfDataType_RawData

ePdfDataType_RawData

Raw PDF data

◆ ePdfDataType_Real

ePdfDataType_Real

Real datatype for floating point numbers

◆ ePdfDataType_Reference

ePdfDataType_Reference

The reference datatype contains references to PDF objects in the PDF file of the form 4 0 R.

See also
PdfObject

◆ ePdfDataType_String

ePdfDataType_String

String datatype in PDF file. Strings have the form (Hallo World!) in PDF files.

See also
PdfString