Help Choosing Which Products I need

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

timcarter
User
Posts: 8
Joined: Tue Dec 08, 2009 11:06 am

Help Choosing Which Products I need

Post by timcarter »

Hi, I'm working on a PDF creator/viewer/annotator and am a bit confused as to what I need. Let me tell you what I'm going to be doing.

- Image Acquisition
- We already have the Atalasoft DotImage suite of tools, so we could use either their stuff or your scan library for this.

- PDF Viewing. We need a fully functional viewer, context menus, viewing options (Single, Continuous, Facing etc), text selection, search, annotation.

I know that you have two mechanisms for viewing PDFs, the Simple dll, and the ActiveX. The Simple dll looks like that's the ticket, but I can't see how to set things like view options etc, or add annotations. I've seen other commercial annotators use the Simple dll for annotation and viewing, just wondering how they do it.

The app is heavily styled, so whatever I use it has to be free of styling and branding - does this mean the ActiveX viewer is a no go? I'd rather use the Simple DLL if possible for the better licensing.

We're developing a C# / WinForms app, think Nitro PDF :), so any help on getting started would be appreciated.

Cheers,

Tim
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: Help Choosing Which Products I need

Post by Corwin - Tracker Sup »

Hi Tim,

Simple Dll is used only for rendering PDF page to DC (bitmap), so all you get is bitmap. There are no possibilities for editing, annotation and text selection.
Viewer AX has most of the functions of the End User Viewer and it can be fully controlled by code, so you can make your own UI, without using integrated toolbars and controls. I may suggest you to see examples which come with the Viewer AX SDK just to see how it looks. If you still have any specific questions - then - please do come back.
timcarter
User
Posts: 8
Joined: Tue Dec 08, 2009 11:06 am

Re: Help Choosing Which Products I need

Post by timcarter »

I've tried to register the ActiveX, but it fails:

The module "PDFXCviewAx.dll" was loaded but the call to DllRegisterServer failed with error code 0x80070005.

Many thanks,

Tim
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: Help Choosing Which Products I need

Post by Corwin - Tracker Sup »

Actually, after installation PDFXCviewAx.dll is already registered in the system, so you do not need to register it manually.

To use Viewer AX in your VS you need to register Viewer ActiveX component in VS IDE first. To do this open Toolbox in Visual Studio, then right click on it, select "Choose Items...". In "Choose Toolbox Items" dialog go to "COM Components" tab and select "PDF-XChange Viewer ActiveX Control" then press OK.
timcarter
User
Posts: 8
Joined: Tue Dec 08, 2009 11:06 am

Re: Help Choosing Which Products I need

Post by timcarter »

Hi, I've checked the COM Components tab and it's not there. I closed down Visual Studio and reinstalled the ViewerSDK and it's still not there. I tried browsing to the PDFXCviewAx.dll file manually and adding it, but it said self registration failed.

Thanks,

Tim
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: Help Choosing Which Products I need

Post by Corwin - Tracker Sup »

Can you specify what version of Windows you are using? Also what installer of Viewer SDK you have used?
I hope that you were using an Administrator profile while doing all the registration operations for the Viewer or its installation.

Thanks.
timcarter
User
Posts: 8
Joined: Tue Dec 08, 2009 11:06 am

Re: Help Choosing Which Products I need

Post by timcarter »

I'm using Windows 7 x64 with Visual Studio 2008 SP1.

The installer successfully elevated priviledges when running.

Thanks,

Tim
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: Help Choosing Which Products I need

Post by Corwin - Tracker Sup »

Hi Tim,
Looks like we have some problems with installation files for Viewer SDK under Windows 7 x64. :( This will be fixed in short time.

For now you can manually replace wrong PDFXCviewAx.dll in "Tracker Software\PDF-XChange Viewer SDK\Bin\" directory by PDFXCviewAx.dll file attached to this post (or you can get it from End user version in "\Tracker Software\PDF Viewer\Win32\" directory). Then you need to register this dll. After that all examples should work well.

Sorry for the inconvenience. We are working to resolve this problem quickly.
You do not have the required permissions to view the files attached to this post.
timcarter
User
Posts: 8
Joined: Tue Dec 08, 2009 11:06 am

Re: Help Choosing Which Products I need

Post by timcarter »

Hi, it's still failing to register.

Tim
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: Help Choosing Which Products I need

Post by Corwin - Tracker Sup »

Try to do following steps:
in "C:\Windows\SysWOW64" folder right click on Cmd.exe and choose "Run As Administrator". In opened console write
regsvr32 "C:\Program Files\Tracker Software\PDF-XChange Viewer SDK\Bin\PDFXCviewAx.dll"
(Of course you should specify your path to PDFXCviewAx.dll file).
HTH.
timcarter
User
Posts: 8
Joined: Tue Dec 08, 2009 11:06 am

Re: Help Choosing Which Products I need

Post by timcarter »

<Head slap/> I wasn't running the command window as admin.

It registered OK, I think I'm in a funny state as the samples only work when targetting x86, but you're fixing this so I'm not troubled by it. Thanks for your help!

I have some other issues, but they're unrelated so I'll start a new thread.

Tim
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: Help Choosing Which Products I need

Post by Corwin - Tracker Sup »

I'm glad that registration problem was resolved.. :)