from ironpdf import * pdf = PdfDocument.FromFile("my-content.pdf") # Extract all pages to a folder as image files pdf.RasterizeToImageFiles(r"C:\image\folder\*.png") # Dimensions and page ranges may be specified pdf.RasterizeToImageFiles(r"C:\image\folder\example_pdf_image_*.jpg", 100, 80) # Extract all pages as AnyBitmap objects pdfBitmaps = pdf.ToBitmap()
将 PDF 栅格化为图像