|
|
Message was deleted by a User. | Reason: Not specified
|
|
|
Code:
float width_in_inches = page.Width/72;
float height_in_inches = page.Height/72;
|
|
|
That works great, thanks. But now i have a new problem that I didn't see coming. Some of my PDF are at the A4 format and other are way longer. I don't need for my A4 PDF to be on the left top corner of the pdfViewer. (It's ugly) Is there a function to get the size of my page?) My code would look a bit like that fake code. I'm gonna check if it works... Code:if(pdfViewer.CurrentPage.Width() > A4.format)
{
this.pdfViewer.PageHAlign = 0;
this.pdfViewer.PageVAlign = 0;
pdfViewer.Padding = new Thickness(0, 0, 0, 0);
}
IT WORKS !!!!! THANKS...
|
|
|
Try to set Padding and PageMargin to zero and PageAlignment to Left and Top
|
|
|
Hello, I'm trying to make sure that my PDFs are open at the position 0,0 of the pdfViewer. I'm using these lines but it doesn't works: Code:
this.pdfViewer.LoadDocument(filePath, this.done);
this.pdfViewer.Zoom = 0.75F;
this.pdfViewer.ScrollToPoint(this.pdfViewer.CurrentIndex, new Point(0, 0));
Do you have a solution ?
|
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