Hi
I am facing problem while setting the dimension of the page. If I am setting dimension of the page to(750,1100)then the font size becomes smaller.
Here are few queries:
1)What is the default dimension of the page ?
2)How can I zoom the page programatically ?
Page Dimension problem
Re: Page Dimension problem
Support · Oct 3, 2012Hello,
Setting page dimensions to the Page of the PDF document do not change font size of added contents within the PDF. It will just set the width and height for the page of the PDF.
1.The default page size which our API sets is Letter with width 612 and height 792 using units in points. You can use the Page class constructor to set the desired page size and also you can refer the overloaded constructors of Page class here
. Also you can refer documentation on document coordinates which our API uses here
.
2.You can set the Zoomlevel to the PDF using PageZoom enumerator of our API. Below is the sample code for it.
Document document = new Document();
Page page = new Page(750,1100);
document.Pages.Add(page);
TextArea textArea = new TextArea("This is to test", 100, 100, 100, 50);
page.Elements.Add(textArea);
document.InitialPageZoom = PageZoom.FitWidth;
document.Draw(@"C:\\MyDocument.pdf");
Thanks,
ceTe Software Support Team.