You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Emmeran Seehuber (Jira)" <ji...@apache.org> on 2020/09/30 09:10:00 UTC

[jira] [Commented] (PDFBOX-4974) PDImageXObject creation based on WritableImage

    [ https://issues.apache.org/jira/browse/PDFBOX-4974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17204591#comment-17204591 ] 

Emmeran Seehuber commented on PDFBOX-4974:
------------------------------------------

[~Robertoni] I don't think this in the scope of this project. PDFBox 2.0 is on JDK6 - which features no JavaFX. Trunk is currently targeting JDK7. As JavaFX was never officially part of any JDK release (i.e. not reachable without special classpath etc. arguments), PDFBox will likely never be able to include it as dependency even if Trunk is moved forward to a newer JDK. 

Also JavaFX does not run on ARM and many other common java server platforms (e.g. AIX (PowerPC), Solaris (Sparc)).  

But you can of course make your own project on Github which bridges PDFBox to JavaFX and release it on maven central. 

> PDImageXObject creation based on WritableImage
> ----------------------------------------------
>
>                 Key: PDFBOX-4974
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4974
>             Project: PDFBox
>          Issue Type: New Feature
>          Components: PDModel
>    Affects Versions: 2.0.0
>            Reporter: Robert Fink
>            Priority: Major
>              Labels: javafx
>
> The goal is to work with a WritableImage from JavaFX in addition to a BufferedImage from Swing.
> My proposal for a new feature is to extend the factory classes.
> - CCITTFactory by the method:
>  createFromImage(PDDocument document, WritableImage image)
> - JPEGFactory by the methods:
>  createFromImage(PDDocument document, WritableImage image)
>  createFromImage(PDDocument document, WritableImage image, float quality)
>  createFromImage(PDDocument document, WritableImage image, float quality, int dpi)
> - LosslessFactory by methods:
>  createFromImage(PDDocument document, WritableImage image)
> Until now there is a need to use the class SwingFXUtils to do the conversion from WritableImage to BufferedImage or vice versa.
> This new feature should come in handy for all JavaFX developers.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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