0

I'm looking at options for rendering PDFs on the server to avoid the user having to download them (they're big docs) and/or have a PDF reader installed and configured (audience is not tech savvy). The Google Viewer and Scribd are nice examples, but I'm not interested in making the PDFs available on the web (for Google) or storing them on another party's servers (Scribd).

My favorites right now are FlexPaper and PDFWebViewer.NET but I wanted to see if I'm missing any other options. Most of the related SO questions on this topic are somewhat dated, so maybe there's something new?

Any other options to check out?

RyanW
  • 5,338
  • 4
  • 46
  • 58
  • What did you end up using? I'm looking for something simular... – Cerveser Jul 19 '12 at 19:50
  • We abandoned it. Nothing commercial comes close to the Google Docs viewer and after a few attempts, and new security requirements we had to change course. FlexPaper was nice, but quality and filesize was not acceptable at the time we were using it. Atalasoft was getting better, but still was half-baked I thought. Doc Viewer (http://open.blogs.nytimes.com/2010/03/27/a-new-view-introducing-doc-viewer-2-0/) is worth a look though. ViewONE (http://www.daeja.com/products/) was best out of the Applet bunch. – RyanW Jul 19 '12 at 22:06
  • Did you ever have bandwidth limitation issues with google docs viewer? If so, did you workaround that? – Jonathan Mui Aug 06 '14 at 18:15

6 Answers6

2

Try Atalasoft ($$)

ram
  • 11,468
  • 16
  • 63
  • 89
1

There's this.

A bit of a mishmash, but it's free and you get to get your hands dirty if you like that sort of thing.

Steve
  • 5,802
  • 12
  • 54
  • 76
1

Rendering PDFs on the server is not a very scalable approach. You can do that for a small workgroup, but for a larger group you'd need a lot of hardware and bandwidth. Returning sections of a pdf is much easier as the format is made for that. I think iTextSharp can help.

Stephan Eggermont
  • 15,847
  • 1
  • 38
  • 65
1

You can use Aspose.Pdf.Kit for .NET to convert the PDF pages to images and then view those images using any image control. You can use it either with Windows Forms or Web Forms. You can also get complete help using Programmer's Guide, Technical Articles, Videos and Demos. You can also ask any technical questions in the forums.

I'm a member of the Aspose.Pdf.Kit team.

Shahzad Latif
  • 1,408
  • 12
  • 29
  • Thanks, I did take another look at Pdf.Kit and you're right it would do the image conversion. But, the key here is getting close to what a PDF reader provides, so I need more than "any" image control, such as the PDFWebViewer offered by Tall Components. – RyanW Jun 23 '10 at 19:13
1

Try RAD PDF ($$)

userx
  • 3,769
  • 1
  • 23
  • 33
0

You may be able to use the ASP.Net ReportViewer control for this purpose. Usually, that control is used for exporting to PDF, but according to this, you can display an existing PDF file in a ReportViewer:

You can render to PDF by calling ReportViewer.LocalReport.Render() and specifying "PDF" for the format. Then this byte stream can be used any way you want in your application.

Here's the code from that discussion. You might find some other useful information there in the comments.

Dim warnings As  Warning() = Nothing
Dim streamids As String() = Nothing
Dim mimeType As String = Nothing
Dim encoding As String = Nothing
Dim extension As String = Nothing
Dim bytes As Byte()

'Get folder on web server from web.config
Dim FolderLocation As String
FolderLocation = System.Configuration.ConfigurationManager.AppSettings("ReportOutputPath")

'First delete existing file
Dim filepath As String = FolderLocation & "PCSummary.PDF"
File.Delete(filepath)

'Then create new pdf file
bytes = ReportViewer1.LocalReport.Render("PDF", Nothing, mimeType, _
    encoding, extension, streamids, warnings)

Dim fs As New FileStream(FolderLocation & "PCSummary.PDF", FileMode.Create)
fs.Write(bytes, 0, bytes.Length)
fs.Close()
DOK
  • 32,337
  • 7
  • 60
  • 92
  • Thanks, but this solution delivers a PDF to the browser right? I already have a PDF and want to deliver something else (images, flash, html, whatever) so a 50 MB PDF file doesn't need to be downloaded by the end-user. – RyanW Jun 22 '10 at 21:03