52968

Convert Word document [Multi Page] into JPEG File in C#

Question:

I want to convert the contents of word file [3 or 4 page document] into JPEG file in C#.

I have tried using clipboard option, but it is converting only the first page. Please help me.

Answer1:

i think that <a href="http://pages.cs.wisc.edu/~ghost/" rel="nofollow">ghostscript</a> can output jpeg

so the process would be:

<ul><li>first configure a postscript printer (print to file as the printer port)</li> <li>print the msword document to a postscript file</li> <li>process that file with GhostScript, you have many output options here</li> </ul>

you can code the whole thing in C# <a href="http://www.mattephraim.com/blog/2009/07/08/introducing-ghostscriptsharp/" rel="nofollow">here is a wrapper for ghostscript in c#</a> ... and you could use COM interop to work with msword

this solution isn't the best for a public webserver though, as it would require msword to be installed

i have worked with excel before in this way (through COM interop on a webserver) to extract data ... but that was on an internal company webserver

Recommend

  • Python Turtle Module- Saving an image
  • PHP code not creating new line in rtf template
  • ERROR: Fails to Open device when using ESC/OPOS from VB6
  • PDF printer that can be controlled by .NET (exporting from Maptitude)
  • How can I add form feed character into text that I am creating with XSLT?
  • How do you generate small, high-density linear barcodes that scan reliably?
  • Converting IDML to HTML5 thru script
  • Inkscape .91 with latex
  • Converting/writing a BufferedImage to postscript
  • Pandoc inline .class and .id elements
  • JAX-RS file downloads, multiple content types
  • HTML to XML conversion with C++
  • Print PDF Created in iTextSharp and then Return Control to Browser
  • Print Report directly on JasperReports Server
  • Compressing a PDF document generated by coldfusion
  • How to determine printer's postscript support using Win32 API?
  • Convert DOC to PDF [closed]
  • Find the associated program to open a file using Java
  • PDF: How to Optimize Filesize & Convert to PNG (embedded fonts problem)
  • Linking Ghostscript to pypdfocr in Windows Platform
  • CORS with socket.io
  • How do I retrieve the user information of a user authenticated with Apache's mod_ldap?
  • Prevent Tomcat from caching request during starup
  • How do I configure context broker accept post requests from my remote sensor?
  • Access Android Market through SSH tunnel
  • How can I sort a a table with VBA with given text condition?
  • How to run “Deployd” on port 80 instead of port 5000 in webserver.
  • swift auto completion not working in Xcode6-Beta
  • Deserializing XML into class C#
  • Function pointer “assignment from incompatible pointer type” only when using vararg ellipsis
  • align graphs with different xlab
  • Return words with double consecutive letters
  • Understanding cpu registers
  • How do I configure my settings file to work with unit tests?
  • python draw pie shapes with colour filled
  • How to get NHibernate ISession to cache entity not retrieved by primary key
  • Reading document lines to the user (python)
  • How to Embed XSL into XML
  • Python/Django TangoWithDjango Models and Databases
  • How do I use LINQ to get all the Items that have a particular SubItem?