|
|
thank you very much for the code Paul. It helped a lot.
|
|
|
Hi. Well... you can try such a trick. Code:
var page = pdfViewer1.CurrentPage;
var ptLeftBottom = pdfViewer1.PageToClient(page.PageIndex, new Point(0, 0));
var ptRightUp = pdfViewer1.PageToClient(page.PageIndex, new PointF(page.Width, page.Height));
int width = Math.Abs(ptRightUp.X - ptLeftBottom.X);
int height = Math.Abs(ptRightUp.Y - ptLeftBottom.Y);
|
|
|
Hi,
I have loaded the document in the pdfviewer.
Now, I need to get the size of the current page when I zoom in and zoom out. Is there a way to access the width and height properties?
I have tried this.pdfViewer1.CurrentPage.Document.Pages[0].Height and Width but these properties are not changing when I zoom in and zoom out.
Thanks in advance for help.
|
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close