Foxit Corporation Forums  

Go Back   Foxit Corporation Forums > Portable Document Format (PDF) Tools > SDK ( DLL or ActiveX)

SDK ( DLL or ActiveX) Integrate PDF functions into your application easily. The SDK shares the same technology that powers Foxit Reader.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 7th, 2008, 01:07 AM
Vindic Vindic is offline
Junior Member
 
Join Date: Mar 2008
Posts: 8
Vindic is an unknown quantity at this point
Default Few question about the ActiveX control

Morning,
I'm a French developer and in order to add a PDF Player to a program that i work on, I use your Foxit ActiveX. It's a really good product with good explanation document but I've some question in order to respect my book of specifications :

1/ Is it possible to hide and disabled the Scrollbar in the left of the PDF page ?
2/ Is there a function to Get the Size of the Opened PDF document ?
3/ And finally I have some problems with the SetLayoutMode function. In your documentation you say it takes two parameters the first is the display mode and the second the numbers of display columns. So if I write SetLayoutMode(0,1), in agreement with your Users Manual I'll see a single page in my display rectangle. But I always see the top of the next page...
4/ I also want to get the number of page of the opened document.
5/ In testing your VC examples of your software I remark that your software loose virtual memory when you Open/Close/Open/Close... file you don't return to the original memory use. I ask if you have any explanation for this problem.

Thank you for your attention, and I the company that I work for could work with you.

Last edited by Vindic; March 7th, 2008 at 08:07 AM.
Reply With Quote
  #2  
Old March 9th, 2008, 06:44 PM
jinming_wang jinming_wang is offline
Junior Member
 
Join Date: Sep 2007
Posts: 40
jinming_wang is an unknown quantity at this point
Default

Hi,hide/disabled the Scrollbar is not the feature of ActiveX, and currently there is no function to get the size of the opened PDF document in our standard version of ActiveX.If you are interested in these functions, you may need a customized ActiveX.About the funcion SetLayoutMode,it is strange that we had never met the problem before.Are you sure that the poblem exists with every opened PDF document? To get the number of page of the opened document ,you could call the function GetPageCount in VC. About the memory leak problem,we have not confirmed it yet.Once confirmed, we will reply to you.
Reply With Quote
  #3  
Old March 10th, 2008, 01:25 AM
Vindic Vindic is offline
Junior Member
 
Join Date: Mar 2008
Posts: 8
Vindic is an unknown quantity at this point
Default

Before all, I've to thank you for your quick and clear reply.

With your advice I modify my program and I could solve some of my problems.

1/ SetLayoutMode work correctly.
2/ I can hide the ActiveX ScrollBar if I display the ActiveX into a reduct rectangle.

Now my program will be perfect if :
1/ I could Get Height and Width of my opened document.
2/ I could resolve this memory leak problem. This 2nd problem is the greatest because if we cannot resolve this one, we could'nt use your ActiveX. After, some test I can see that the Memory leak happened when I open/destroy the ActiveX control many time (approximately loose of 200Ko in virtual memory)
3/ It was a detail but I'll want to know if the background color under the displayed PDF could be configurable.

So I'll be glad if you could answer me with the same speed, Thanks.

PS : If that can help you to answer at my memory Leak problem I'd effect a memory leak detection in Visual Studio and he display this :
oleinit.cpp{82} client block at 0x00336F58, subtype c0, 68 bytes long.
A CmdTarget object at $00336f58, 68 bytes long.
{48} client block at 0x00334DF8,subtype c0, 64 bytes long.
A CDynLinkLibrary at $00334DF8, 64 bytes long.

Last edited by Vindic; March 10th, 2008 at 09:03 AM.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 07:06 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2005-2008 Foxit Corporation. All rights reserved.