Open Save and Edit + Preview TIFF in asp.net GdViewer

Example requests & Code samples for GdPicture Toolkits.
Post Reply
pankaj5k
Posts: 9
Joined: Fri Dec 28, 2012 4:40 pm

Open Save and Edit + Preview TIFF in asp.net GdViewer

Post by pankaj5k » Fri Dec 28, 2012 5:07 pm

Hi,

I have to build a website using asp.net 4.5 that requires editing features of TIFF,PDF files.

basically i want to be able to select files from a list. the file should open in an editor with preview and we have edit controls such as Brightness,Contrast,Sharpness,Deskew, Despeckle etc.

I have seen the annotation asp.net sample and tried to create a implementation.

How do i load a file that resides in a directory in asp.net into the GDViewer. also, a major issue is the lack of client side documentation for activex controls. i am trying to look at the annotation sample and figure out but i dont know what is what and why is it not working.

i tried implementing as this

Code: Select all

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        #GdViewer1 {
            height: 516px;
            width: 397px;
        }
    </style>
    <script type="text/javascript">

        window.onload = function () {
          
            var f=document.getElementById("GdViewer1");
            f.DisplayFromHTTP_2("http://localhost:26191/InputTIFF/test.tif", "", "");
        }

    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <object id="GdViewer1" type="application/x-oleobject" classid="CLSID:9E512B80-09C9-46A6-8CB5-3BE89A8BDEC0">
                <param name="BackColor" value="#e5e5e5" />
                <param name="ZoomMode" value="2" />
                Please enable ActiveX to see this GdPicture Object       
            </object>
        </div>
    </form>
</body>
</html>
Please note that the License Manager Trail License key is set in the code behind. It would still work for ActiveX controls right?

The TIFF files are located in the inputTIFF directory and this needs to open.

Also, supposing that i am able to fetch the file and show it and i make buttons to increase brigtness and decrease brigtness and i click on them which client side functions would i use? and how would the changes persist on the save location.?

This is the approach i have used. If i am missing any control or method that i should employ please giude me.Can this be done via code behind?

Please provide me a sample code if possible and please set up some javscript documentation for Active Controls.

Regards,

Pankaj Singh

pankaj5k
Posts: 9
Joined: Fri Dec 28, 2012 4:40 pm

Re: Open Save and Edit + Preview TIFF in asp.net GdViewer

Post by pankaj5k » Wed Jan 02, 2013 2:37 pm

can anyone please help me or point me in the right direction?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest