Rendering

Page Rendering -sivun

Aspose.PDF FOSS for Java provides BmpDevice PDF-sivujen renderointi BMP-kuvaan tiedostoja ja PdfPageRenderer ohjelmattinen sivun rendering.

BmpDevice käyttö

BmpDevice.process(page, outputPath) Siirry yksi sivu:

try (Document doc = new Document("input.pdf")) {
    BmpDevice device = new BmpDevice();
    for (int i = 1; i <= doc.getPages().size(); i++) {
        device.process(doc.getPages().get(i), "page" + i + ".bmp");
    }
}

Pdfmuunnin

PdfConverter tarjoaa korkeamman tason API: n PDF-sivujen muuntamiseen kuvan tiedostoihin, - Konfiguratiivinen resoluutio ja koordinoitu alue asennukset.

Resolution

Rendering-eristys hallitsee kuvan koon pikseleinä. korkeammat resoluution arvot tuottavat terävämpiä kuvia suuremman tiedostomuuden kustannuksella. Standard screen resolution on 72 DPI; tulostuslaatu rendering yleensä käyttää 150-300 DPi.

See Also

 Suomi