Thanks for the prompt reply,
We are trying to componentize pdfs by adding custom properties which sit along with the standard properties (Author, subject, etc). These fields will hold the information about the resource which needs to be included in the document, on a particular page, e.g.
Cust_Img -> C:\Images\MyImage.jpg,1,200,350
Cust_Img is the custom property
1 is the page number
200 is the X co-ordinate
350 is the Y co-ordinate
If I open the document containing the custom properties with Adobe Acrobat 9 Pro, I can see them on the Custom tab
I can also add new custom properties from this tab.
I can also read the custom properties using the pCOS library of PDFLib
using the following code
/* Open the input PDF */
indoc = p.open_pdi_document(inname, "");
// Get the count of all the information available from the SUMMARY tab
int count = (int)p.pcos_get_number(indoc, "length:/Info");
for (int x = 0; x < count; x++)
{
// Get the name of the information key
string gtmp = p.pcos_get_string(indoc, "/Info[" + x + "].key");
// Get the value for the key which in this case is the page number
string val = p.pcos_get_string(indoc, "/Info[" + x + "]");
}
We want to use DynamicPDF over PDFLib because of its great .Net libraries. But only this feature is holding us back as its very important for us.