Using the ImportedPage method (NOT ImportedPageData or ImportedPageArea) I would like to increase the width of a page by 1/2 inch, shifting the body copy to the right. (We are having some issues with the ImportedPageData method grouping the data as one object - at least as far as PitStop Professional is concerned)
Page Shifting
Re: Page Shifting
Support · Sep 18, 2006Hello,
Yes, you can increase the width of an existing page and move the contents to the right by using the ExtendedPageDimensions class for an ImportedPage. Below is the sample code block that does exactly what you described:
Document document = new Document();
Page page = new ImportedPage( @"C:\PDFs\DocumentA.pdf",2);
document.Pages.Add( page );
PageDimensions pageDimensions = page.Dimensions;
pageDimensions.Edge.Left -= 200;
pageDimensions.Edge.Right += 200;
ExtendedPageDimensions extendedPageDimensions = new ExtendedPageDimensions( pageDimensions.Edge, pageDimensions.Body );
page.Dimensions = extendedPageDimensions;
document.DrawToWeb();
Thanks,
ceTe Software Support Team