[PDFNet] PDFNET Viewer for ASP.NET

I used PDFView & PDFViewSimple samples and they are very great but I
want to know if I can convert these samples to ASP.NET applications.
Please, provide me with a sample code for viewing pdf files in an
ASP.NET application.
--
You received this message because you are subscribed to the "PDFTron PDFNet SDK" group. To post to this group, send email to support@pdftron.com
To unsubscribe from this group, send email to pdfnet-sdk-unsubscribe@googlegroups.com. For more information, please visit us at http://www.pdftron.com

Subscription settings: http://groups.google.com/group/pdfnet-sdk/subscribe?hl=en

PDF viewer from PDFNet SDK (http:/www.pdftron.com/pdfnet) can be used
in various deployment scenarios. For example:

- As stand-alone PDF Viewer application (.NET, JAVA, C++/Win32/MFC/QT/
wxWidgets or Windows/Linux/Mac, etc). This type of application is
similar in concept to PDFView sample project (http://www.pdftron.com/
net/samplecode.html#PDFView).

- As .NET or ActiveX control embedded in the web browser. In this case
you would use PDFView class to implement a custom user control that
would be loaded within the browser (IE). To implement .NET control you
would use 'PDFNet for .NET'; to implement custom ActiveX control you
would use 'PDFNet for C++'. The following are some links related
hosting of .NET controls in IE (hosting of ActiveX controls is well
documented in MSDN):

http://windowsclient.net/articles/iesourcing.aspx
http://www.15seconds.com/issue/030610.htm

http://blogs.msdn.com/andrewdownum/archive/2006/01/10/ControlInBrowserIntroduction.aspx

In this scenario the control can be also deployed via "one click
deployment".

- As a web-based AJAX application (or Silverlight or Flash). In this
case the web application would serve rendered images (PNG or JPEG) of
PDF documents and the application would consist from JavaScript and
server based logic (e.g. similar to googlemaps).

In this case you could use PDFDraw class to rasterize PDF page that
can be served as JPEG or PNG in the browser. As a starting point you
may want to take a look at PDFDraw sample project (www.pdftron.com/
pdfnet/samplecode.html#PDFDraw). Converting a PDF page to JEPG is as
simple as the following code:

PDFNet.Initialize();
using (PDFDoc doc = new PDFDoc("my.pdf")) {
using (PDFDraw draw = new PDFDraw(92)) {
  doc.InitSecurityHandler();
  draw.Export(doc.PageBegin().Current(),"my.png");
}
}

Other PDF information (such as Bookmarks, annotations, etc) can be
similarly extracted using corresponding PDFNet classes for
presentation in AJAX controls.
--
You received this message because you are subscribed to the "PDFTron PDFNet SDK" group. To post to this group, send email to support@pdftron.com
To unsubscribe from this group, send email to pdfnet-sdk-unsubscribe@googlegroups.com. For more information, please visit us at http://www.pdftron.com

Subscription settings: http://groups.google.com/group/pdfnet-sdk/subscribe?hl=en