#include <ResDict.hh>
Collaboration diagram for pdf::page::CResDict:

the resources dictionary contains a list of resources.
|
|
add a font to the list. it will call RegName() to generate a name for it.
00129 {
00130 assert( font != 0 ) ;
00131 m_fonts.Add( font ) ;
00132 }
|
|
|
write all the font indirect reference list into a dictionary, and write all the fonts into referenced objects.
00164 {
00165 using namespace core ;
00166 CDictionary *dict = new CDictionary ;
00167
00168 const std::string names[] = { "PDF", "Text" } ;
00169 dict->AddPair( CName( "ProcSet" ), new CArray( names, names + 2 ) ) ;
00170
00171 if ( !m_fonts.Empty( ) )
00172 dict->AddPair( CName( "Font" ), m_fonts.Write( file ) ) ;
00173 if ( !m_xobjs.Empty( ) )
00174 dict->AddPair( CName( "XObject" ), m_xobjs.Write( file ) ) ;
00175
00176 return dict ;
00177 }
|
1.2.16