Hi,
Using Dynamic PDF Merger, I merged two pdf doccuments. THey both have different orientation - One is Portrait and another one is Landscape.
I put page number at top of the each page through code. Page number is coming correctly.
In landscape mode the page number also appears landscaped - how can I get it in the same place as portrait?
I want to put the page number always in left top position even though the page is in landscape. (Note: In landscape document, the page number coming at Right top position.)
Code below is what i am using,
MergeDocument document = new MergeDocument();
string projecttext = "Letter text for project";
PageNumberingLabel pagenumber = new PageNumberingLabel(string.Format("- %%SP%% - {0}", projecttext), 10, 30, 500, 11, TimesRoman.TimesRoman, 12, TextAlign.Left);
pagenumber.PageOffset = -1;
Template doctemplate = new Template();
doctemplate.Elements.Add(pagenumber);
document.Template = doctemplate;
Also how can we add a border/box to the page number?
Thanks for the help.
Page Number Orientation
Re: Page Number Orientation
Support · May 27, 2009Hello,
It looks like that the landscape pages has rotate property set in it. This is the reason for seeing the label on right corner of the landscape page. In order to compensate this rotation you will have to readjust the X and Y coordinates so that the page numbering label comes in the left corner for that page.
You can know if the page is landscape or portrait by comparing the height and width of the page. You can get the height and width using the Height and Width properties of the page dimensions.
If the page is landscape then readjust the X, Y of the page numbering label such a way that it comes in left corner.
Thanks,
ceTe Software Support Team.