This article is a mirror article of machine translation, please click here to jump to the original article.

View: 5282|Reply: 5

[Source] .NET 6 uses Aspose.Pdf to convert PDFs into images

[Copy link]
Posted on 3/26/2023 12:12:47 PM | | | |
Requirements: Use .NET 6 to read PDF files, export PDF files on each page into each image, commonly used plugins on the market: Aspose.Pdf, Spire.PDF, iText 7 (iTextSharp has been discontinued and has been replaced by iText 7), this article uses the evaluation version of Aspose.Pdf to convert PDF to images.

Review:

.net/c# itextsharp to generate PDF code
https://www.itsvse.com/thread-3764-1-1.html

itextsharp is an open-source component for generating PDFs
https://www.itsvse.com/thread-2765-1-1.html

Microsoft.Office.Interop.Word converts word documents to pdf
https://www.itsvse.com/thread-2764-1-1.html

.net converts word documents into pdf files
https://www.itsvse.com/thread-2520-1-1.html

Aspose.PDF for .NET allows you to render and convert every page of your PDF file to traditional image formats like BMP, JPG, and PNG with the highest possible fidelity. Besides images, you can also easily save PDFs in DOC and DOCX formats.

Convert PDF to JPG on C#

Load an existing PDF document. Convert PDF pages to images, save each page in JPG format with the following code:

The trial version (evaluation version) only allows 4 pages to be manipulated, otherwise the error will be as follows:

System.IndexOutOfRangeException: At most 4 elements (for any collection) can be viewed in evaluation mode.

Try to convert a PDF file to a JPG image, the project is quoted as follows:
The code is as follows:
The effect is as follows:



(End)




Previous:ChatGPT resource sharing
Next:What are the differences between computer majors CS, CE, EE?
Posted on 3/27/2023 10:24:32 PM |
Learn it
Posted on 3/29/2023 3:16:23 PM |
learned. Thanks for sharing...
 Landlord| Posted on 7/3/2024 8:52:16 AM |
.NET/C# uses PDFsharp to merge multiple PDF files into one
https://www.itsvse.com/thread-10784-1-1.html
Posted on 7/7/2024 10:55:05 AM |
Learn it
 Landlord| Posted on 7/7/2024 1:00:39 PM |
.NET/C# converts PDFs to images based on PDFtoImage
https://www.itsvse.com/thread-10785-1-1.html
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com