[
https://issues.apache.org/jira/browse/PDFBOX-3030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14962354#comment-14962354
]
Tilman Hausherr commented on PDFBOX-3030:
-----------------------------------------
To get the page content stream as an inputStream -
Old: page.getContents().createInputStream()
New: page.getContents()
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)
> Enhance documentation for PDFBox 2.0.0
> --------------------------------------
>
> Key: PDFBOX-3030
> URL: https://issues.apache.org/jira/browse/PDFBOX-3030
> Project: PDFBox
> Issue Type: Task
> Components: Documentation
> Affects Versions: 2.0.0
> Reporter: Maruan Sahyoun
> Assignee: Maruan Sahyoun
>
> Task to track enhancements to the documentation or website as part of PDFBox
> 2.0.0
> - update javadoc (current as of writing)
> - migration guide
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]