Is it normal that pdfdoc.GetTrailer().IsFree() returns true?

24 વાર જોવામાં આવી
વાંચ્યા વિનાના પહેલા સંદેશ પર જાઓ

Support

વાંચ્યા વગરની,
21 ઑગસ્ટ, 2013 02:43:21 PM21/8/13
થી pdfne...@googlegroups.com

Q:

 
If I do a .IsFree on the the Obj returned by doc.GetTrailer object it seems to always report true??? But if i ignore that and do an .IsDict it also answers true, and I can work with a getDictIterator

 

I'm not quite sure if this is what you are saying with the second line  in this quote:

 
    "You can use GetType() or obl.Is???() member functions to find out type-information at run time, however most of the time the type can be inferred from the PDF specification.
      Therefore when you call doc.GetTrailer() you can assume that returned object is a dictionary. If there is any ambiguity use Is???() methods."  from here http://www.pdftron.com/pdfnet/html/classpdftron_1_1SDF_1_1Obj.html
 
---------
A:
 

This is correct behavior, since Trailer is not part of the cross-reference table. Some view it as the first entry in the xref table (which is always marked as free).

બધાને જવાબ આપો
લેખકને જવાબ આપો
ફૉરવર્ડ કરો
0 નવો સંદેશ