DynaPDF Manual - Page 147

Previous Page 146   Index   Next Page 148

Function Reference
Page 147 of 860
The above file produces the output in PDF below. Note that the dictionary was formatted for better
readability. No additional spaces or line separators are written to a real PDF file.
/DPM
<<
/ACME_CustStatus(Prospective)
/CIP4_Root
<<
/CIP4_Summary
<<
/CIP4_PageCount 6
/CIP4_Checked true
>>
/CIP4_Production
<<
/CIP4_CopyCount 1
/CIP4_Part
<<
/CIP4_ProductType(Brochure)
>>
>>
/CIP4_Recipient
<<
/CIP4_Contact
<<
/CIP4_Address
<<
/CIP4_City(Phoenix)
/CIP4_CivicNumber(96)
/CIP4_Country(USA)
/CIP4_PostalCode(81215)
/CIP4_Region(AZ)
/CIP4_StreetName(South Ave)
/CIP4_TestArray1[1 2 3 4 true false]
/CIP4_TestArray2
<<
/Array[5 6 7 8(Test1)/Test2]
>>
>>
/CIP4_Person
<<
/CIP4_FirstName(Mary)
/CIP4_LastName(Smith)
>>
>>
/CIP4_UniqueID(ID_1)
>>
>>
>>
char* GetFileBuf(const char* FileName, SI32 &BufSize)
{
BufSize = 0;
FILE* f = fopen(FileName, "rb");
if (!f) return NULL;
fseek(f, 0, SEEK_END);
BufSize = ftell(f);
fseek(f, 0, SEEK_SET);
char* retval = (char*)malloc(BufSize +1);
if (!retval)
{
fclose(f);
return NULL;
}
fread(retval, 1, BufSize, f);
retval[BufSize] = 0;
fclose(f);
 

Previous topic: How to create DPM?

Next topic: AddFieldToFormAction, AddFieldToHideAction