Unfortunately, no - at least not something that I could post here. I could
email it to you directly if it would help. Also, I have about 100 of these
files that exhibit the same behavior - I'll try to track down a copy that
doesn't contain sensitive info.
But the following unit test causes the failure (I haven't committed this b/c
I'm still not clear on whether it's a problem with the content stream or not
- if you'd like me to commit it, just let me know):
public class PdfContentParserTest {
@Before
public void setUp() throws Exception {
}
@After
public void tearDown() throws Exception {
}
@Test
public void test() throws Exception {
String line =
"[(*)-15(*)-15(&+,)(*)-15(-./0,123/45)(*)-15(/.)(*)-15(/2+,.)(*)-15(346/.7823/4)(*)-15(9,4,.82,:)(*)-15(;<)(*)-15(&+,)(*)-15(!==>52.823/4)(*)-15(?,4,.82/.)(*)-20(.,98.:349)(*)-20(2+,)(*)-20(=3@,=3+//:)(*)-20(/6)(*)-20(A8.3/>5)(*)-20(34A,527,42)(*)-20(/>)[(*)-15(*)-15(&+,)(*)-15(-./0,123/45)(*)-15(/.)(*)-15(/2+,.)(*)-15(346/.7823/4)(*)-15(9,4,.82,:)(*)-15(;<)(*)-15(&+,)(*)-15(!==>52.823/4)(*)-15(?,4,.82/.)(*)-20(.,98.:349)(*)-20(2+,)(*)-20(=3@,=3+//:)(*)-20(/6)(*)-20(A8.3/>5)(*)-20(34A,527,42)(*)-20(/>)(21/7,5)(*)-20(8.,)(*)-20(+<-/2+,2318=)(*)-20(34*)]
TJ";
PRTokeniser tokeniser = new PRTokeniser(line.getBytes());
PdfContentParser p = new PdfContentParser(tokeniser);
ArrayList<PdfObject> operands = new ArrayList<PdfObject>();
while(p.parse(operands).size() > 0){
System.out.println(operands); // remove for production release
}
}
}
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/Content-stream-question-tp3946312p3946442.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php