Use activex viewer like simple viewer dll

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

ikuning
User
Posts: 13
Joined: Fri Oct 23, 2009 9:19 am

Use activex viewer like simple viewer dll

Post by ikuning »

Ist ist possible to use the rendering of the activex viewer like the simple viewer dll, which means display only one page of the doument, navigate with the scrollbar only in the current page, set the origin of the page to the top, left corner of the window and navigate through the pages using a method of the activex-control?

We would like to display a layer over the pdf viewer and would need to get always the same placements above the conrol and displayed page...
Walter-Tracker Supp
User
Posts: 381
Joined: Mon Jun 13, 2011 5:10 pm

Re: Use activex viewer like simple viewer dll

Post by Walter-Tracker Supp »

ikuning wrote:Ist ist possible to use the rendering of the activex viewer like the simple viewer dll, which means display only one page of the doument, navigate with the scrollbar only in the current page, set the origin of the page to the top, left corner of the window and navigate through the pages using a method of the activex-control?

We would like to display a layer over the pdf viewer and would need to get always the same placements above the conrol and displayed page...
You can turn off all the user interface elements and just display the PDF pages, if that's what you mean.

See the FullDemo example applications (included with the installer) for most of the details on how to do this. That example has switches in one of the dialogs to turn off all the UI elements. If you need more information on the specific methods and properties please let us know.

-Walter
Walter-Tracker Supp
User
Posts: 381
Joined: Mon Jun 13, 2011 5:10 pm

Re: Use activex viewer like simple viewer dll

Post by Walter-Tracker Supp »

Just a little bit more detail: UI items have an attribute called "Visible" that you can set, with something similar to the following command:

SetProperty("View.Bars["File"].Visible", DataIn("False"), 0);

See DlgView.cpp method CdlgView::OnLvnItemchangedList() for the C++ examples of this.

-Walter
ikuning
User
Posts: 13
Joined: Fri Oct 23, 2009 9:19 am

Re: Use activex viewer like simple viewer dll

Post by ikuning »

I have seen how to turn off toolbars and menus. What I need is to set the position of the rendered page inside the control to top/left and view one page of a document in the control like the simple viewer, not scroll through the entire document. I want to navigate through the document pages in the activex like the simple viewer.

I have attached some screenshots.

In TrackerActiveX.png I need to position the document to top/left. The page it always displayed centered. The scrollbar navigates throgh the doument, I need to navigate inside the current page.

In TrackerSimpleViewer.png you can display one page, the scollbar relates to the page, not the entire document. This is what I need so far. But the page is also not rendered on top/left.

In TrackerWantedView.png I have made a mockup what I would need (in the activex-version). Render on page top/left, Navigate through the document in the application, not the control.
You do not have the required permissions to view the files attached to this post.
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: Use activex viewer like simple viewer dll

Post by Vasyl - PDF-XChange »

Hi, ikuning.

Currently you can remove advanced gaps around the page, but you cannot turn off the centering of page on the pages view, and you cannot change the default behavior of scroll bars (it always works for all pages, not for current page only). So:

Code: Select all

pdfViewer.SetDocumentProperty(docID, "Pages.Layout", "Single");
pdfViewer.SetProperty("PageDisplay.ShowGaps", "false");
HTH
PDF-XChange Co. LTD (Project Developer)

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