I am a making web app in Asp.net c# where i need to generate pdf,doc and ppt.
For PDF generation i have used Itext sharp and it works fine, now i need to create ppt and doc. I dont know from where to start.
I tried this http://www.dotnetspider.com/forum/157867-Create-power-point-slide-charts-using-c-net.aspx
but its not working
pls provide any usefull resource or any other way to do achieve this ?
Depending on what you need to do in with PowerPoint files, you may want to consider SoftArtisans PowerPointWriter features, which can populate a template with data and images. It has some built-in behavior to automatically copy slides, tables, and lists to handle different amounts of data.
In one of the other answers, the tutorial covered how to replace text, how to replace an image, how to copy a slide, and how to delete a slide. Here is some information on how to do this with PowerPointWriter for reference:
Importing text: Hello World with PowerPointWriter
Importing images: importing image reference, photo gallery code sample
Copy slide: Slides.CopySlide API reference, CopySlide code sample
Deleting slide: Slides.Delete API reference
Disclaimer: I work for SoftArtisans.
Related
How do I make a PDF with C# application?
I would like to make an application which creates a PDF document, but it could be Excel too.
I wish to make a file which contains tables and header.
You could use ITextSharp to create your PDF file.
And this post to help you with Excel.
Take a look at PDFFlow library for generation of PDF in C#. It has features that you need: tables, multi-page spread tables, repeating areas (headers, footers, left, right), table repeating headers... and even more unique features (like automatic page creation, multi-level list, word-like tabulation, barcodes/QR codes, etc...) and easy fluent syntax:
var DocumentBuilder.New()
.AddSection()
.AddParagraph("Hello World!").SetFontColor(Color.Red)
.ToSection()
.AddImageToSection("Smile.png")
.AddTable()
.AddColumnToTable("Column1").AddColumnToTable("Column2")
.AddRow().AddCellToRow("Row1, Cell1").AddCell("Row1, Cell 2")
.ToTable()
.AddRow().AddCellToRow("Row2, Cell1").AddCell("Row2, Cell 2")
.ToDocument()
.Build("Result.pdf");
This is first pages of my business document with multi-page spread table and repeating headers, which I created using this library:
There are examples with source code and explanation, I found them very useful: examples.
Hope, this will help.
I got quite complicated ready pdf file. It has got barcode and fancy looking table.
I have to create based on it application which will generate pdfs that will look the same but contain different records in the table and different barcode.
Is it possible to copy existing pdf and just change content of barcode and table ?
What would be the best approach to create the same looking pdf but with different content ?
Whank You very much for help
If the barcode and table are static I would open it in photoshop or illustrator delete everything I dont want, Then save it as a pdf again. Then follow this guide iText - add content to existing PDF file and use it as a template to put my custom content in.
If the table and bar code are dynamically generated (each one is different) and you need to crop out content on the fly I would pull some hacky crap and draw white squares over all the content I want gone. then proceed to use it as a template.
Just my 2 cents given the information provided.
I'm currently working on a project that requires OneNote automation. Now I need to copy images from a page to another. I've found out some APIs on the Microsoft site like GetPageContent, UpdatePageContent to do this. Currently I am manually copy the one:Image Data into the new page. It works but to retrieve all the binary images takes quite a time. Is there any easier approach to achieve this? I've tried to use the Callback ID but it seems that a copied image gives a different ID so I can't just copy that.
I'm using Onenote 2013.
Regards,
ShiroYacha
There isn't a way to refer to the image that exists on another page when inserting an image to a page. What you are doing by copying the one:Image data is the only available approach for this.
I have an ASP.NET C# web application where users can upload their PowerPoint presentations(ppt files). I want programmatically (with C#), to call a power point presentation and be able to present it from a webpage. Is it possible? And how can I do this?
You can use Interop to save the uploaded Powerpoint presentation as a series of graphics (e.g. PNG). Within Powerpoint, that would be File / Save As / *.png. You can accomplish the same programatically. Running interop code from ASP.Net is not a good idea. You can run a windows service that watches for uploaded ppt files and converts them to a corresponding series of images.
This would not preserve transitions and animations, but would otherwise work fine.
You can then use a slideshow gallery to display the various images (e.g. using Flash or JavaScript... there are many solutions available on the web).
Alternatively if you can ensure that the end user has at least the free Powerpoint viewer installed, you can return the ppt file to them with the appropriate mime type set, and the viewer will display it.
Change the Powerpoint presentation into series of graphic using interop assembly as Eric said
To make slideshow gallery you can follow below link which illustrated it very well with coding. You have to use javascript to accomplish it.
Visit http://www.c-sharpcorner.com/uploadfile/anjudidi/making-an-image-slideshow-in-Asp-Net/
The below link also show how to create slide show but it is taking graphics from database.
http://www.aspdotnet-suresh.com/2011/12/jquery-lightbox-image-slideshow-gallary.html
I need the 100% .NET library to edit PDF Info like Author, Title, Creator, Subject and Keywords. All PDF libraries I tried are unable to do this without completely resaving the hole PDF documents. So for huge files (>35MB) it takes too much time. I need only to update several text fields (see above) and I don't need to resave the entire document for this.
Is there any lib that can do it like image libraries change IPTC/EXIF fields (without changing the original image)?
Thanks for any help,
Murat
iTextSharp (hosted here) ?