What's wrong with the below code - why is the resulting page newDoc's empty:
Code: Select all
//pseduo
IPXC_Content pContent = CoreDoc.Pages[0].GetContent(CAccessMode_FullClone);
//not sure if needed, but no changes in resulting page:
//IPXC_Content pContentClone = pContent.Clone(false)
CoreDoc.Pages[0].Get_Box(PBox_MediaBox, stMediaBox)
newDoc = IPXC_Inst.NewDocument
newDoc.Pages.AddEmptyPages(0, 1, stMediaBox, nil, pUndoData);
newDoc.Pages[0].PlaceContent(pContent[Clone], PlaceContent_After);
newDoc.WriteToFile(...)
The pContent (content from 1st page of CoreDoc) does have items (so not empty).
What am I missing?
-žarko