We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to set autofit width and autofit height programmatically?

Thread ID:

Created:

Updated:

Platform:

Replies:

108915 May 20,2013 04:40 PM May 19,2014 06:49 AM WPF 3
loading
Tags: PdfViewer
Alexander
Asked On May 20, 2013 04:40 PM

Hello.

I use PdfViewControl and custom toolbar. I need to set autofit width and autofit height in my buttons event handlers. But, PdfViewControl contains no any methods or properties to do it. I found PdfDocumentView control, it has ZoomMode property. But firstly, it works incorrectly, and second, I must use PdfViewControl, because I need FindText method.

Can you show me the logic of your toolbar buttons for autofit width and autofit height? On your toolbar, it works correctly.

Thanks.

Meikanda Nayanar [Syncfusion]
Replied On May 26, 2013 11:58 PM

Hi Alexander,

Thank you for your interest in Syncfusion products.

At present we do not provide support for setting zoom mode for PdfViewer control. Could you please report “The ZoomMode property of PdfDocumentView is not working properly” through Direct Trac Developer Support System (https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents because you can take the advantage of the expertise of a dedicated support engineer and a guaranteed response time and we hope you will take advantage of this system as well. If you have already reported, please ignore this.

Please let us know if you have nay questions.

Thanks,

Meikandan


Isaac Hake
Replied On March 20, 2014 03:45 PM

Is there still no way around this issue? Did you ever figure this out Alexander?

Uthistran S [Syncfusion]
Replied On May 19, 2014 06:49 AM

Hi Isaac/Alexander,

We have added support for setting ZoomMode in PdfViewerControl itself as in PdfDocumentView in our latest Essential Studio release and we have attached a simple sample on this.

Attachment: Sample-1047853779.zip

Run this sample, click the Fit- Width button in the left, you can see that the document is now viewed in Fit-Width Mode.

Please, let us know if you need any further assistance.

Thanks,

Uthistran S.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;