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

Tilman Hausherr commented on PDFBOX-2340:
-----------------------------------------

Images -

old: call new PDJpeg(), new PDPixelMap(), new PDCCitt()

new:
either use PDImageXObject.createFromFile(File file, PDDocument doc) which works 
for JPG, TIFF (only G4 compression), PNG / BMP / GIF.
or use
JPEGFactory.createFromStream (this is best if you have a JPEG file)
CCITTFactory.createFromFile (for bitonal TIFF images with G4 compression)
LosslessFactory.createFromImage (this is best if you start with a BufferedImage)



> Overhaul PDFBox Documentation
> -----------------------------
>
>                 Key: PDFBOX-2340
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2340
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Documentation
>    Affects Versions: 2.0.0
>            Reporter: Maruan Sahyoun
>            Assignee: Maruan Sahyoun
>            Priority: Critical
>         Attachments: Mockup-20140912.png, Mockup_Documentation.png
>
>
> In oder to make it easier for users of PDFBox to work with the library there 
> shall be an enhanced documentation consisting of an introduction, API 
> references and more well documented examples and code snippets (Cookbook).
> In order to make it easier to contribute the Cookbook shall be build 
> automatically from the examples/snippet ‚repository‘.



--
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