![]() ![]() Copy "x86" and "圆4" folders from download package to your. Multiple pages Tiff has the similar structure with PDF document, so converting multi-page PDF to a single Tiff document has some special needs. How to Convert PDF to Multi-page Tiff in C# language If you want to convert PDF to Jpg in your ASP.NET application, you only need copy the C# code above to the "Page_Load" methed or any other customized metheds in the webform aspx.cs Class. PageImage.Save(i.ToString() + ".jpg", ImageFormat.Jpeg) ĭevelopers can customized the converted image size by "DPI" property or input the width/height directly. Or you can make it in memory to other use. To specific the converted image size by width and height //Image pageImage = converter.PageToImage(i, 100, 150) //You can save this Image object to jpeg, tiff and png format to local file. Image pageImage = converter.PageToImage(i) ![]() The converted image will keep the original size of PDF page converter.CompressedRatio = 80 for ( int i = 0 i < converter.PageCount i++) If set to 1, the converted image //will be compressed to minimum size with more time and memory. If set to 100, the converted image will take the //original quality with less time and memory. Default is 72, the higher DPI, the bigger size out image will be PdfToImageConverter converter = new PdfToImageConverter() Ĭonverter.Load(File.ReadAllBytes( "sample.pdf")) However, the image compressor need take some momery and time, if you have strict requirements with time and momery management, you may convert PDF to jpg directly without compressing it. We provide advanced jpg compressor in iDiTect SDK, so developers can optmize and minify the jpeg file size without any other third toolkit. Now we'll introduce you how to convert pdf to compressed jpeg image file. Jpg can be compressed size with less quality loss than other image format, and it's widely used in the html and web site. Jpg is the most commonly used image format in our life. The second step is exporting the bitmap graphics to the image files, such as.The first step is loading PDF document and converting it to the System Bitmap object in the memory.In most case, there are only two steps to save PDF page to an image file: IDiTect provides simple and easy to use C# APIs to convert PDF to high quality image formats in Winforms, WPF and ASP.NET web applications. How to Convert PDF to Image in C#.NET Code ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |