I need some help doing the layout for a PDF page using iTextSharp. If you are willing to help me, this is what I am looking for:
Information in red is info I will have to fetch from a db and put in.
Unfortunately I do not know the ins and outs of iTextSharp, mainly just the basics and I don't have the time at the moment to browse through the eBook they provide. I am busy finishing off other sections of this project and this would be a nice add on if anyone could help.
Related
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.
In ASP .NET is there a way to create a winform (or something of the sort) as a pdf viewer rather than using the browser?
I need to restrict print, url to pdf and right click to save as image or anything else. If I can do this through the browser, where can I find some sample code?
I understand there are hacks to get that PDF downloaded and PRINT SCREEN is another option as well as any image capture program. This is in a INTRANET site so these things I am aware of and not worried about. We just need to make it difficult for non tech employees.
The PDF's hold important reporting information that we do not want print and leave in there office anymore.
Anyone have sample code to achieve this or any tutorial or any leads to the direction I need to take to achieve this?
FYI, site in 3.5 and Webforms...upgrade to 4 or 4.5 has not been approved yet.
Thanks in advance
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.
I have been asked to design a web based document imaging solution in C#. So far I have found only expensive SDK modules like Accusoft's ImagXpress and the like. MODI looked promising but seems more OCR centric which might be above and beyond the scope.
Is there a solution in .Net that would allow me to code in the document scanning, manipulation / viewing with the PDF format without buying expensive SDK's? I am hoping for a point in the right direction to research.
Simple Scope:
Scan document to PDF format
View/save document
Any help is greatly appreciated.
Thanks in advance!
You could use Silverlight to acquire a raster image, then use a PDF generation library either in Silverlight or Asp.net (server-side) to generate the PDF.
I am developing application wich produce a report with graph. I read about free C# libraries to create PDF but I can't see any completely FREE geenrator to use in application that I want to sell. Can you give me one?
Other problem is to generate a simple chart. What are the tools to create such a graph? I need to put it into pdf document after generating it.
Thx for help!
PDF reporting could be done using nfop. I know someone who has done PDF with that, but I do not know more.
Regarding the charting: you could use Microsoft Chart controls, render to an image and include an image in the PDF.