You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Marcus Thiesen (JIRA)" <ji...@apache.org> on 2009/10/30 16:51:59 UTC
[jira] Created: (PDFBOX-551) NoSucheElementException in
PDFXrefStreamParser.parse
NoSucheElementException in PDFXrefStreamParser.parse
----------------------------------------------------
Key: PDFBOX-551
URL: https://issues.apache.org/jira/browse/PDFBOX-551
Project: PDFBox
Issue Type: Bug
Components: Parsing
Affects Versions: 0.8.0-incubator
Reporter: Marcus Thiesen
A PDF which I have, which I unfortunately can not upload here, has triggered the following exception:
Caused by: java.util.NoSuchElementException
at java.util.AbstractList$Itr.next(AbstractList.java:350)
at org.apache.pdfbox.pdfparser.PDFXrefStreamParser.parse(PDFXrefStreamParser.java:115)
at org.apache.pdfbox.cos.COSDocument.parseXrefStreams(COSDocument.java:538)
at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:203)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PDFBOX-551) NoSucheElementException in
PDFXrefStreamParser.parse
Posted by "Marcus Thiesen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12771974#action_12771974 ]
Marcus Thiesen commented on PDFBOX-551:
---------------------------------------
My current fix for this is to change the check
while(pdfSource.available() > 0)
to
while(pdfSource.available() > 0 && objIter.hasNext() )
but as I'm not familiar with the PDF spec a more correct fix might exist.
> NoSucheElementException in PDFXrefStreamParser.parse
> ----------------------------------------------------
>
> Key: PDFBOX-551
> URL: https://issues.apache.org/jira/browse/PDFBOX-551
> Project: PDFBox
> Issue Type: Bug
> Components: Parsing
> Affects Versions: 0.8.0-incubator
> Reporter: Marcus Thiesen
>
> A PDF which I have, which I unfortunately can not upload here, has triggered the following exception:
> Caused by: java.util.NoSuchElementException
> at java.util.AbstractList$Itr.next(AbstractList.java:350)
> at org.apache.pdfbox.pdfparser.PDFXrefStreamParser.parse(PDFXrefStreamParser.java:115)
> at org.apache.pdfbox.cos.COSDocument.parseXrefStreams(COSDocument.java:538)
> at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:203)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
Question about setXFA() function
Posted by claudius teo <cl...@yahoo.com>.
Hi,
When one modifies the XFA by using the function setXFA(), does the usage rights of PDF file remain unbroken?
Thank you,
Claudius
[jira] Resolved: (PDFBOX-551) NoSucheElementException in
PDFXrefStreamParser.parse
Posted by "Andreas Lehmkühler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-551?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler resolved PDFBOX-551.
---------------------------------------
Resolution: Duplicate
This issue is solved since svn version 821928. See PDFBOX-536 for further details.
> NoSucheElementException in PDFXrefStreamParser.parse
> ----------------------------------------------------
>
> Key: PDFBOX-551
> URL: https://issues.apache.org/jira/browse/PDFBOX-551
> Project: PDFBox
> Issue Type: Bug
> Components: Parsing
> Affects Versions: 0.8.0-incubator
> Reporter: Marcus Thiesen
>
> A PDF which I have, which I unfortunately can not upload here, has triggered the following exception:
> Caused by: java.util.NoSuchElementException
> at java.util.AbstractList$Itr.next(AbstractList.java:350)
> at org.apache.pdfbox.pdfparser.PDFXrefStreamParser.parse(PDFXrefStreamParser.java:115)
> at org.apache.pdfbox.cos.COSDocument.parseXrefStreams(COSDocument.java:538)
> at org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:203)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.