Am Friday 25 March 2011 schrieb skywind mailing lists: > Hi, > > I have got two remarks / questions concerning the above mentioned methods > > 1) > Although the CollectGarbage and RenumberObjects are public methods there > does not seem to be a public method of derived classes returning a > non-const trailer pointer. Therefore, is it the intention to cast - as an > example - PdfMemoryDocument to PdfDocument to use them? Why do you need a cast to PdfDocument? Every method from PdfDocument is callable on a PdfMemDocument.
> > 2) > CollectGarbage and RenumberObjects seem to be unusable also because they > are not modifying the content of the trailer pointer (although the pointee > of the trailer is modifyable). But a modification is required as > RenumberObjects invalidates the references of objects in the trailer (the > references will be renumbered but the trailer still contains the old > numbers). Because of the fact that CollectGarbage calls internally > RenumberObjects also calling CollectGarbage will lead to wrong/defect > trailer information. Yes, there might be a few issues in this code, it not used very much at the moment. Still, it should be very easy to fix this with some testing. > > I think that CollectGarbage and RenumberObjects are unusable / buggy?! > > Hartwig > > > > --------------------------------------------------------------------------- > --- Enable your software for Intel(R) Active Management Technology to meet > the growing manageability and security demands of your customers. > Businesses are taking advantage of Intel(R) vPro (TM) technology - will > your software be a part of the solution? Download the Intel(R) > Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Podofo-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/podofo-users -- Dominik Seichter - [email protected] - http://domseichter.blogspot.com KRename - http://www.krename.net - Powerful batch renamer for KDE KBarcode - http://www.kbarcode.net - Barcode and label printing PoDoFo - http://podofo.sf.net - PDF generation and parsing library
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________ Podofo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/podofo-users
