pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Pinnau <peter.pin...@unterbrecher.de>
Subject Re: rubberstamp annotation with base 64 image
Date Thu, 01 Jun 2017 12:08:43 GMT
> but the sample shows loading it from a file.
> im looking to create a BufferedImage from a base64 svg string. has anybody
> tried this?
I think you can create a PDImageXObject object from a BufferedImage using

org.apache.pdfbox.pdmodel.graphics.image.JPEGFactory factory

JPEGFactory.createFromImage( PDDocument, BufferedImage , float quality, 
int resolution);

Viele Grüße
Peter Pinnau

To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org

View raw message