function DetachFormObjectChild(FormIndex, ChildIndex: Integer): FPDF_PAGEOBJECT;
DetachFormObjectChild retire l’enfant à ChildIndex de l’objet de formulaire à FormIndex et renvoie son handle d’objet de page natif
L’appelant possède le handle renvoyé jusqu’à ce qu’il soit inséré dans la page avec InsertObjectAtIndex ou détruit ; des index hors limites ou des objets non formulaire lèvent EPdfError
FormObjectChildren pour énumérer d’abord les index d’enfants validesChild := Pdf1.DetachFormObjectChild(FormIdx, ChildIdx);
if Child <> nil then
Pdf1.InsertObjectAtIndex(Pdf1.ObjectCount, Child);