Hi,

Am 07.11.2011 16:32, schrieb Eric Eastman:
Hello all,

I'm quite new to pdfbox, but very experienced with java and pdf. I am
getting a null pointer exception closing a PDF file. I believe that the
RandomAccessBuffer.close() method is being called before the FlateFilter is
finished writing to it.  Is FlateFilter required?  If not, how can I turn
it off to get past this problem?
The filter is used by default to compress the content stream.

Is is not that easy to figure out what went wrong without having some more information on your implementation. Are you following the cookbook examples like [1] ?

I added "super(e);" to :
     public WrappedException( Exception e )
     {
         super(e);
         wrapped = e;
     }
So that the root cause exception would be printed by SLF4J logging.  Is
there some reason that was left off?

If I end up debugging the filter issue, what is the mechanism for
submitting a patch?  Is there an issue tracker for Pdf Box?
Of course there is [2]

I know there are quite a few questions in this email.  Partial responses
welcome?

Thanks,
Eric


Here is the exception I'm getting:
10:07:10.197 [main] DEBUG c.g.reports.PdfOutputWriter - Error Finalizing
report
org.apache.pdfbox.exceptions.COSVisitorException: null
     at
<SNIP>


BR
Andreas Lehmkühler
[1] http://pdfbox.apache.org/userguide/cookbook/creation.html#HelloWorld
[2] https://issues.apache.org/jira/browse/PDFBOX

Reply via email to