i am trying to get the first page of a document(doc, pdf) and save it as jpeg image in an asp.net using C#
Thanks in advance
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ali BenchaabanPosted Jan 2, 2024, 7:55 PM
Hello,
You can install the Spire.Doc library.
You can call the
ConvertToJpegmethod in your ASP.NET application as follows:Regards,
Marvin ReidPosted Jan 2, 2024, 4:09 PM
You can use the RasterCodecs class to save just the first page of your images. This includes support to office formats such as DOCX, Excel, as well as PDF. By default loading and saving your file with this code will only save the first page to jpeg. You can use this code:
https://www.leadtools.com/help/sdk/tutorials/dotnet-console-load-and-save-images.html
Rahul PrasadPosted Jul 21, 2016, 9:38 PM
SaveAsImage(intpageIndex, PdfImageType type,booldocumentTextIsEastAsiaFont,intdpiX,intdpiY)Lakshan BindraPosted Jul 21, 2016, 11:56 AM
http://support.leadtools.com/SupportPortal/CS/forums/33017/showpost.aspx
http://stackoverflow.com/questions/6866110/how-to-convert-doc-to-jpg-in-net
Krishna Rajput SinghPosted Jul 16, 2016, 11:28 AM