[
https://issues.apache.org/jira/browse/PDFBOX-81?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12914105#action_12914105
]
Andreas Lehmkühler commented on PDFBOX-81:
------------------------------------------
How should we proceed?
We can't bundle the mentioned google plugin as it is licensed under GPLv3.
Should we just add a pointer to that plugin to the pdfbox documentation or
should we add the jpedal plugin.
If we choose to add the jpedal plugin, how should we add it:
- add a compiled jar to svn
- add the source to svn
As the plugin seems not to be maintained I'd prefer to add the source, so that
we are able to improve it. But how can I do that. Just exchange the old header
with the AL header, change the package names and add a comment to the
LICENSE.txt/NOTICE.txt? Or are we not allowed to do that?
Find attached the BSD like license header, which can be found in every source
file.
/**
* ===========================================
* Java Pdf Extraction Decoding Access Library
* ===========================================
*
* Project Info: http://www.jpedal.org
* (C) Copyright 1997-2008, IDRsolutions and Contributors.
* Main Developer: Simon Barnett
*
* This file is part of JPedal
*
* Copyright (c) 2008, IDRsolutions
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of the IDRsolutions nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY IDRsolutions ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL IDRsolutions BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Other JBIG2 image decoding implementations include
* jbig2dec (http://jbig2dec.sourceforge.net/)
* xpdf (http://www.foolabs.com/xpdf/)
*
* The final draft JBIG2 specification can be found at
http://www.jpeg.org/public/fcd14492.pdf
*
* All three of the above resources were used in the writing of this software,
with methodologies,
* processes and inspiration taken from all three.
> Excetion while extracting images
> --------------------------------
>
> Key: PDFBOX-81
> URL: https://issues.apache.org/jira/browse/PDFBOX-81
> Project: PDFBox
> Issue Type: New Feature
> Components: PDFReader
> Affects Versions: 0.8.0-incubator
> Priority: Minor
> Attachments: COSName.java.diff, FilterManager.java.diff,
> jbig2_src.zip, JBIG2Filter.java, pdfbox-81.PDXObjectImage.patch
>
>
> [imported from SourceForge]
> http://sourceforge.net/tracker/index.php?group_id=78314&atid=552832&aid=1259747
> Originally submitted by guzzil on 2005-08-15 02:40.
> when trying to extract images from I pdf, i get exceptions
> like
> Exception in thread "main" java.io.IOException: Unknown
> stream filter:COSName{JBIG2Decode}
> at
> org.pdfbox.filter.FilterManager.getFilter(FilterManager.java:116)
> at
> org.pdfbox.cos.COSStream.doDecode(COSStream.java:276)
> at
> org.pdfbox.cos.COSStream.doDecode(COSStream.java:240)
> at
> org.pdfbox.cos.COSStream.getUnfilteredStream(COSStream.java:173)
> at
> org.pdfbox.pdmodel.common.PDStream.createInputStream(PDStream.java:205)
> at
> org.pdfbox.pdmodel.common.PDStream.getByteArray(PDStream.java:458)
> at
> org.pdfbox.pdmodel.graphics.xobject.PDPixelMap.getRGBImage(PDPixelMap.java:131)
>
> at
> org.pdfbox.pdmodel.graphics.xobject.PDPixelMap.write2OutputStream(PDPixelMap.java:153)
>
> at
> org.pdfbox.pdmodel.graphics.xobject.PDXObjectImage.write2file(PDXObjectImage.java:117)
>
> at
> org.pdfbox.ExtractImages.extractImages(ExtractImages.java:169)
> at
> org.pdfbox.ExtractImages.main(ExtractImages.java:73)
>
> The pdfs are scanned images, which are afterwards
> optimized with Adobe Acrobats "optimize" function.
>
> pdfimages from xpdf can extract the images.
>
> I can send you a pdf with this error (it is to big for an
> upload).
> [comment on SourceForge]
> Originally sent by benlitchfield.
> Logged In: YES
> user_id=601708
> yes please upload the pdf to ftp.pdfbox.org and I will take a
> look at it.
> Ben Litchfield
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.