I want to integrate GDPicture in my web application.
Then, with this toolkit, I want to show a pdf file (located in C:\Test\Testing Document.pdf) which will be incorporated in my application. So the file should not be opened in an another window, this may be a displayed in a div within a page.
I want to do this using Visual Studio 2010 (I am using C#.).
For this I have started coding like this:
At first, I have added the reference from (C:\Program Files (x86)\GdPicture.NET 8\Redist\Framework 4.0\GdPicture.NET.dll)
Then,
using GdPicture;
GdPictureImaging gd = new GdPictureImaging();
int MainForm=0;
int ImageID=0;
IntPtr Template;
int NewLeft=0;
int NewTop=0;
int NewWidth=200;
int NewHeight=300;
double Accuracy=0;
LicenseManager oLicenseManager = new LicenseManager();
oLicenseManager.RegisterKEY("XXXXXXXXXX");
MainForm = gd.CreateGdPictureImageFromFile("C:\\Test\\Testing Document.pdf");
ImageID = gd.CreateGdPictureImageFromFile("C:\\Test\\Testing Document.pdf");
Template = gd.CreateAnchorTemplate(MainForm, 20, 25, 35, 50);
gd.FindAnchor(ImageID, Template, OMRMode.FavorSpeed, 10, 15, 70, 100,ref NewLeft,ref NewTop,ref NewWidth,ref NewHeight,ref Accuracy);
gd.ReleaseGdPictureImage(ImageID);
Also I have tried this one:
GdPicturePDF gdp = new GdPicturePDF();
gdp.LoadFromFile("C:\\Test\\Testing Document.pdf", true);
But I don't know where I have done the mistake or how to proceed next.
Can anyone help me regarding this issue.
Thanks in advance.
- Debasish
