Re: Odd OCG error

2023-11-22 Thread Tilman Hausherr
Great. The problem mentioned by Andreas will be fixed in the next version. Tilman On 22.11.2023 17:59, John Lussmyer wrote: Thanks, that really helps.  Since we are too close to release to try a newer PDFBox jar, I just added this little bit of code to our system so these PDF's will work. (the

Re: Odd OCG error

2023-11-22 Thread John Lussmyer
Thanks, that really helps.  Since we are too close to release to try a newer PDFBox jar, I just added this little bit of code to our system so these PDF's will work. (the if statement before creating the "PDOptionalContentGroup".)     if (!dict.getItem(COSName.TYPE).equals(COSName.OCG)) {    

Re: Odd OCG error

2023-11-21 Thread Andreas Lehmkühler
Am 21.11.23 um 21:26 schrieb John Lussmyer: Ugh, formatting mess. For more info, this is the "addOCGs:OCG" log line just before the error message: 10:53:09.765 [etrix SwingWorker[0]] DEBUG ImposedPDFEngine - addOCGs: OCG COSDictionary{COSName{Name}:COSObject{COSNull{}};COSName{Type}:COSOb

Re: Odd OCG error

2023-11-21 Thread Tilman Hausherr
Please retry with the 3.0.1 snapshot, there were bugs fixed related to combining files. If there bug is still there please create a ticket in JIRA Tilman On 21.11.2023 19:56, John Lussmyer wrote: I'm using PDFBox 3.0.0 to combine some PDF files.  One of the files uses an Optional Content Group

Re: Odd OCG error

2023-11-21 Thread John Lussmyer
Ugh, formatting mess. For more info, this is the "addOCGs:OCG" log line just before the error message: 10:53:09.765 [etrix SwingWorker[0]] DEBUG ImposedPDFEngine - addOCGs: OCG COSDictionary{COSName{Name}:COSObject{COSNull{}};COSName{Type}:COSObject{COSName{OCG}};} On 11/21/2023 10:56 AM, J

Odd OCG error

2023-11-21 Thread John Lussmyer
I'm using PDFBox 3.0.0 to combine some PDF files.  One of the files uses an Optional Content Group. Note that this code has been working just fine for many other files both with and without OCG's. For this file, I get this exception: java.lang.IllegalArgumentException: Provided dictionary is n