Unplanned
Last Updated: 13 Jan 2017 15:24 by Stefan
ADMIN
Boby
Created on: 28 Jun 2016 12:57
Category: PdfProcessing
Type: Feature Request
1
PdfProcessing: Implement Clone for elements in RadFixedDocument
The method should create deep copy of  the current page.
1 comment
Stefan
Posted on: 29 Jun 2016 05:02
temporary hack version:
public FixedDocumentElementBase Clone()
        {
            RadFixedPage newPage = new RadFixedPage
            {
                Size = Size,
                Rotation = Rotation
            };
            foreach (var c in Content)
            {
                c.SetParent(newPage);
                newPage.Content.Add(c);
            }
            // not sure about this.
            foreach (var annotation in Annotations)
            {
                annotation.SetParent(newPage);
                newPage.Annotations.Add(annotation);
            }
            return newPage;
        }