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

Lars Torunski commented on PDFBOX-2777:
---------------------------------------

@Tilmann: could you please use "jpg".equalsIgnoreCase(ext) instead of 
"jpg".equals(ext) etc. in class PDImageXObject. The examples used 
image.toLowerCase().endsWith(".jpg") before.

> Create convenience method to create an XImage object
> ----------------------------------------------------
>
>                 Key: PDFBOX-2777
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2777
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: PDModel
>    Affects Versions: 2.0.0
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> As suggested by [~jahewson] on the user mailing list. The convenience method 
> PDImageXObject.createFromFile() will replace the long code that is in the 
> ImageToPDF and AddImageToPDF examples.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to