Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / November 2007

Tip: Looking for answers? Try searching our database.

pdf to jpeg

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
smilly - 27 Mar 2005 18:31 GMT
I need a way to convert  just the first page of a pdf document  to a jpeg
using C# so I can thumbnail these out is there something free that will allow
me to complete this task?
psg - 27 Mar 2005 19:03 GMT
>I need a way to convert  just the first page of a pdf document  to a jpeg
> using C# so I can thumbnail these out is there something free that will
> allow
> me to complete this task?

I think you should use GhostScript GPL/AFPL (or its libraries).

From command line it will go like this:

gswin32c.exe -q -dBATCH -dMaxBitmap=300000000 -dNOPAUSE -dSAFER -sDEVICE=jpeg
-dTextAlphaBits=4 -dGraphicsAlphaBits=4 -dFirstPage=1 -dLastPage=1 -sOutputFile="C:\test.jpg"
"C:\test.pdf" -c quit

       RGDS PSG
psg - 27 Mar 2005 19:04 GMT
> I think you should use GhostScript GPL/AFPL (or its libraries).

of course URL is:
http://www.ghostscript.com/

       RGDS PSG
Bernd - 28 Mar 2005 14:08 GMT
hi,

http://www.codeproject.com/dotnet/pdfthumbnail.asp

this is exactly what you need.

smilly schrieb:
> I need a way to convert  just the first page of a pdf document  to a jpeg
> using C# so I can thumbnail these out is there something free that will allow
> me to complete this task?
smilly - 29 Mar 2005 17:57 GMT
I can get this working under a console application perfectly but , when I
addit  to my asp.net application nothing copies to the clipboard I think it
has something to do with the application being in MTA HOW CAN I SET THIS TO
STA?

I am using
System.Threading.Thread.CurrentThread.ApartmentState=System.Threading.ApartmentState.STA;
and it remains to be MTA after I set this property can someone help?

> hi,
>
[quoted text clipped - 6 lines]
> > using C# so I can thumbnail these out is there something free that will allow
> > me to complete this task?
smilly - 30 Mar 2005 05:57 GMT
I got it all figured out so don't reply back and thanx for the help

> I can get this working under a console application perfectly but , when I
> addit  to my asp.net application nothing copies to the clipboard I think it
[quoted text clipped - 15 lines]
> > > using C# so I can thumbnail these out is there something free that will allow
> > > me to complete this task?
humbleman - 30 Nov 2007 19:44 GMT
What is the final asp.net solution.
Thank you

From http://www.developmentnow.com/g/36_2005_3_0_0_370976/pdf-to-jpeg.ht

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.