pdf viewer control for asp.net page? - c#

I want to show PDF Files in my asp.net(C#) web page.I found lot of pdf viewer for .net web page.But i want to do something more than that. I meant, i have retrieved bookmarks in the PDF files programatically using C# and then displayed in the TreeView.So, Whenever user click any Node, then i want to select(highlight) the appropriate ranges of the PDF file that is displayed in the PDF Viewer.
For example, see my attached picture...
Please lead me to get out of this problem...
Thanks & Regards,
P.SARAVANAN

Maybe you could get some ideas from this article: http://www.codeproject.com/Articles/41933/ASP-NET-PDF-Viewer-User-Control-Without-Acrobat-Re

Related

Save Form as PDF/Email to User C#/ASP

I don't really know where to start with this project. I've done a bit of research on here and haven't found exactly what I need. Essentially, I have a form that a user will navigate to, fill out several texts boxes/radio buttons. I have a submit button at the bottom that submits the data into my SQL database. I'm working in Visual Basic (C#/ASP).
After submission, I would like to include an option to save the webform as a PDF and an option, if possible, to email a copy of that webform to another user/group. I'm thinking the easiest way to do that would be to just include the save as pdf option and then the user can go to their personal email and do it that way.
Is there any basic "Save Webform as PDF" code template or any tips you all can give me? Feel free to post links to other questions/forums as I tried to read as much as I could over the past few days.
As always, thanks for any help.
Here is a page that shows how to create a PDF from textbox data using iTextSharp.
https://forums.asp.net/t/1906686.aspx?convert+aspx+page+into+pdf+and+send+the+pdf+as+attachment
This page shows how to send a PDF through email.
https://www.codeproject.com/Questions/459105/Convert-web-page-to-pdf-and-send-it-as-attachment
Good Luck!
Here are a few .NET libraries that will convert HTML or WebPages to PDF
PDFSharp: http://www.pdfsharp.net/?AspxAutoDetectCookieSupport=1
Free .NET PDF Library: https://marketplace.visualstudio.com/items?itemName=E-iceblueCoLtd.FreeNETPDFLibrary
iText 7: https://github.com/itext/itext7-dotnet
You could produce a receipt page and then give the user the option to convert that page to pdf for their records using one of these libraries.

Best way to display pdf document in asp.net application

I'm looking for the best way to display pdf document on a website. Surely I need to convert it to jpeg or gif for the browser to handle it. I read few posts but most refer to GhostScript and its pdf2image. But that solution calls for starting a process that would save a copy of pdf doc to the file system and then would have to be loaded back into memory for displaying. Frankly I find it a bit clumsy. For those of you who have done it, what library you used and if you could attach a link to some examples, I'd greatly appreciate it.
I'm developick a web application that helps manage manufacturing process and is accessed fron android tablets. Company has a stockpile of documentation in pdf files that is to be delivered to production managers. I'd love the solution to be akin Crystal Report Viewer contron but I I understand that I have to stick to pdf to image conversion. Please give me some advise here.
My advice is don't over think this.
You can simply add a link to the PDF file, which will open on a new tab.
You can take a look at http://mozilla.github.io/pdf.js/ which will allow you to render a PDF on the client side.
Or if you decide to go with a Ghostscript, you can take a look at http://ghostscriptnet.codeplex.com
By all accounts the PDF Focus .NET library seems to be the best solution. A wrd of advice is to add a cleanup method to the page unload to delete all temporary files that were used to feed source into image controls when displaying pictures on a website.

viewing rtf or pdf on a site built using mvc 4 Ipad capable

I am looking for a simple way to view NOT edit either rich text formated files or pdf files on a website that will display well on an ipad. Basically I have a directory of word and power point documents I need to display. I can easily convert them to rtf or pdf or save them up to a database as varchar(max), whatever works best for displaying on site. I can handle the processing of the documents but how do I display them on the site. Thanks in advance.
You can use google document viewer fairly easily within your website.
<iframe src="http://docs.google.com/viewer?url=urltoyourdoc&embedded=true" width="600" height="780" style="border: none;"></iframe>
you can find more details here
https://docs.google.com/viewer

iTextSharp or XSL-FO to create a PDF dynamically with fillable forms?

This is my first stackoverflow question.
After days of research, I am still lost on how this can be done, if its even possible.
I am trying to create a PDF document using either iTextSharp or XSL-FO (FO.NET is what I am using currently). Creating the documnet is no problem. I need this documnet to have fields that the user can still fill in.
I am aware of the ability to create a PDF form using acrobat, then using iTextSharp to fill in those fields. This can then be saved and the user can open the document and edit it.
The problem with this is, anytime the PDF "template" needs to be changed, someone has to edit the PDF document, then change the backend logic to handle the new field.
I am looking for a 100% dynamic solution.
Ideally I would use XSL and FO to create this document without the need for an exisiting PDF document. I have found no way to create a fillable form using FO.NET, or even iTextSharp, without already having an exisiting PDF "template".
Thanks in advance.
I believe both the RenderX XEP and Antenna House FO processors support PDF Forms. They aren't free and additional output modules may be required for PDF Forms.

generate a pdf file an asp.net(ajax) c#

I have a web page in which user has to enter many details.
I want to fetch the records that are being entered by the user and generate a pdf file, and also preview it in a browser.
I also want to save the pdf into the database.
Can anyone help me to understand how this process should start?? I mean how should I proceed?
I am using Visual Studio 2008 and mysql. I have adobe reader installed on my system. What else do I need?
Can I get the tutorials or code samples which will help me.
thank you
Adobe Reader is just what it says, a Reader application, and will not help with generating a PDF. I recommend you to have a look at iTextSharp
You'll need a third party library for the pdf generation, such as Report.net or ITextSharp.
The problem I see with browser preview, is that I don't know of a good way of doing it. If you just want to show them the data that goes in to the PDF, then just displaying that on a web page is easy enough. The problem is previewing the actual PDF. That will require the user to have some sort of PDF reader installed, and it will also require that their browser opens the PDF automatically and doesn't try to save it instead. It also has the problem of how the user will "get back" to your website once they're done with the previewing.

Categories

Resources