Hello,
Can you please give me more details about comparison of these two functions:
1.SimpleNamedDestination.GetNamedDestination()
2.PdfReader - GetNamedDestination()
I have noticed that they don't return the same set od rows, the second one
retuns more than the first one - so I have looked into source code and can
see that in the case when there is no page on the Destination (for example
it is set as null), SimpleNamedDestination ignores that record and don'r
return it.

from source code:
//...

try {

s.*Append(pages[(arr*.*GetAsIndirectObject(*0)).*Number]);
*

s.*Append(*' ').*Append(arr[*1].*ToString()*.*Substring(*1));

for (int k = 2; k < arr.*Size; *++*k)
*

s.*Append(*' ').*Append(arr[k]*.*ToString());
*

n2[name] = s.*ToString();
*

}

catch {}

//...

Why the 2nd function (i.e.Pdfreader class - getNamedDestination()) returns
all of them then, and the 1st (i.e.SimpleNamedDest.) not?
Also, I don't understand how there are Destinations that have null as the
first array element where page number should be - I have found that there is
for example element with string from destination array like "null /XYZ 100
842 null" - I think that this destination with page null is not valid and
can be ignored, or maybe am I wrong?

Just to mention that all ot these objects exist under /NAMES dictionary of
the root catalog of my example pdf, and then under /DESTS dictinary - I have
looked also into PDF32000_2008.pdf and found that only valid definition is
with existing page parameter, null cannot be valid first element like "null
/XYZ 100 842 null", so I am not clear with how then can be found in \DESTS
that are under \NAMES dictionary?

One more thing - I have tried also with PdfReader function
RemoveUnusedObjects, but nothing changes, so it's not that then

Can you please help me to come to a conclusion about these two functions? I
hole I managed to explain myself well

Kind Regards,
Sarah
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to