473,387 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Is there any method to covert a pdf file into jpg file in c#?

Is there any method to covert a pdf file into jpg file in c#?
Many thanks for your replying.
Jul 19 '07 #1
6 5246
you would likely have to access the "save as jpg" method of the acrobat
object.

"vincent" <vi*****@discussions.microsoft.comwrote in message
news:60**********************************@microsof t.com...
Is there any method to covert a pdf file into jpg file in c#?
Many thanks for your replying.
Jul 19 '07 #2
Is it possible to write a c# code to do that?
Many thanks for replying.

"S Moran" wrote:
you would likely have to access the "save as jpg" method of the acrobat
object.

"vincent" <vi*****@discussions.microsoft.comwrote in message
news:60**********************************@microsof t.com...
Is there any method to covert a pdf file into jpg file in c#?
Many thanks for your replying.

Jul 20 '07 #3
What are you talking about... "acrobat object"???

What is "the acrobat object"

???


"S Moran" <s@moran.comwrote in message
news:O6**************@TK2MSFTNGP04.phx.gbl...
you would likely have to access the "save as jpg" method of the acrobat
object.

"vincent" <vi*****@discussions.microsoft.comwrote in message
news:60**********************************@microsof t.com...
>Is there any method to covert a pdf file into jpg file in c#?
Many thanks for your replying.

Jul 20 '07 #4
I mean, Can I write a c# code to do covert job.
I beleive there is a lot of software to do that.
http://www.google.com/search?hl=en&q...=Google+Search

I am trying to find a solution to do the convert job in c# code.

"Merk" wrote:
What are you talking about... "acrobat object"???

What is "the acrobat object"

???


"S Moran" <s@moran.comwrote in message
news:O6**************@TK2MSFTNGP04.phx.gbl...
you would likely have to access the "save as jpg" method of the acrobat
object.

"vincent" <vi*****@discussions.microsoft.comwrote in message
news:60**********************************@microsof t.com...
Is there any method to covert a pdf file into jpg file in c#?
Many thanks for your replying.


Jul 20 '07 #5
In VS 2005, go to Project | Add Reference..., click on the COM tab, and add
the Adobe Acrobat 8.0 Type Library to your project.

You can try something like this...

Acrobat.AcroPDDoc acrobatPDF = new AcroPDDoc();
acrobatPDF.Open("C:\\temp\\somedoc.pdf");
acrobatPDF.Save(nType, "C:\\temp\\somedoc.jpg");

[Sorry. Can't for the life of me remember what nType should be for JPG, or
even if it's supported]

And no, if you get a bunch of Interop COM Exceptions I can't help you.
That's far too much of a can of worms for me to go near.

The best place to look for help regarding working with the Acrobat API is
the forums at WWW.PDFPlanet.com.

Jul 24 '07 #6
Wow! It is so cool and very helpful.
Thank you for your replying.

"Andrew Hayes" wrote:
In VS 2005, go to Project | Add Reference..., click on the COM tab, and add
the Adobe Acrobat 8.0 Type Library to your project.

You can try something like this...

Acrobat.AcroPDDoc acrobatPDF = new AcroPDDoc();
acrobatPDF.Open("C:\\temp\\somedoc.pdf");
acrobatPDF.Save(nType, "C:\\temp\\somedoc.jpg");

[Sorry. Can't for the life of me remember what nType should be for JPG, or
even if it's supported]

And no, if you get a bunch of Interop COM Exceptions I can't help you.
That's far too much of a can of worms for me to go near.

The best place to look for help regarding working with the Acrobat API is
the forums at WWW.PDFPlanet.com.
Jul 24 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Philip Mette | last post by:
I am in a crunch and need to covert this Oracle statement to MSSQL. Is there any Oracle/MSSQL experts out there that can help me? I do not understand the syntax enough to modify this. Thanks so...
3
by: Cindy Liu | last post by:
Hi Everyone, In .Net we have XmlSerializer to convert c# class to xml, or vice versa. Do we have any APIs to convert c# class to XSD? Thanks in advance, Cindy
2
by: jai | last post by:
I want a c++ program to convert an array of pixel values into a 8-bit BMP file.i want the detail of how to write a common color palette for creating a 8-bit BMP file.
3
by: ad | last post by:
I use a fileUpload of ASP.NET to read a csv file from client into a Strem like: Stream myStream = FileUpload1.FileContent; But the file from Client if of CharSet BIG5. How can I covert it to...
6
by: Calros Lo | last post by:
Dear all: I develop a programe that need when I get a string , such as "123" or "ABC",if I get string "123" and the system will help me to create new string "124" , if I get string "ABC" and the...
21
by: Wisdo | last post by:
Hi All, char to char ** is compile error. why? if i hava a string array. yes. it's not safe and it's better to use vector<stringinstead. but my point is the language feature. char...
1
by: Biji | last post by:
Help to Covert MS Acess Data Base tO SQL Server Database
1
by: cvijaykrishna | last post by:
hi i already designed a web based application in VS-2005 and i have a problem now that is how to covert it into ajax based wesite i have ajax frame work installed on my system pls sugesst me any...
1
by: jonny | last post by:
Option Explicit Private mdTarget1 As Date Private mdTarget2 As Date ' called on form load Public Sub SetRecordStartTime() mdTarget1 = DateAdd("n", 60, Time) mdTarget2 = DateAdd("n", 120,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.