[ 
https://issues.apache.org/jira/browse/PDFBOX-1291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Hewson updated PDFBOX-1291:
--------------------------------

    Component/s:     (was: Swing GUI)

> Adding OutputStream functionality to PDFImageWriter
> ---------------------------------------------------
>
>                 Key: PDFBOX-1291
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1291
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Utilities
>    Affects Versions: 1.6.0
>            Reporter: Patrick Lehmann
>              Labels: features
>
> I've got the problem that i don't want to write the created image data to a 
> file because I use it for server side converstion of a pdf. 
> It would be convenient to have an overloaded version of writeImage. Instead 
> of the outputPrefix parameter you could use an OutputStream as parameter. 
> ImageIO can handle this correctly so i suggest to do something like the 
> following:
> public boolean writeImage(PDDocument document, String imageFormat, String 
> password,
>             int startPage, int endPage, OutputStream outStream, int 
> imageType, int resolution)
> {
>      // stays the same
>      output = ImageIO.createImageOutputStream( outStream );
>      // stays the same
> }
> Without this change it is imposible to get the created image into RAM without 
> reading it from the file again which is not the very best way to do so.
> It would be great if there is a way to extend this feature.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to