Set FitPage with VB.net embebed Viewer

This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-Tools SDK of Library DLL functions(only) - Please use the PDF-XChange Drivers API SDK Forum for assistance with all PDF Print Driver related topics or PDF-XChange Viewer SDK if appropriate.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

Post Reply
Giovani Rodrigues
User
Posts: 1
Joined: Tue Oct 14, 2014 5:46 pm

Set FitPage with VB.net embebed Viewer

Post by Giovani Rodrigues »

Hello.

I want to know if is possible to set FitPage in runtime with VB.net?

I was using adobe free pdf reader for my application, but i couldn't unload file, so i had to destroy the component and create it again everytime.

Today I steped in PDF X-Change Viewer and it's work fine for me, but i wasn't able to fit to page in runtime!

I'm using PDF X-Change Viewer Simple Activex. Could i do fit to page with it?

Thanks
Giovani Rodrigues
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2353
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Set FitPage with VB.net embebed Viewer

Post by Vasyl-Tracker Dev Team »

Hi, Giovani.

Use:

pdfControl.SetDocumentProperty(docId, "Pages.Zoom", -1, 0);
or
pdfControl.SetDocumentProperty(docId, "Pages.Zoom", "FitPage", 0);

HTH
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Post Reply