[jira] [Commented] (PDFBOX-135) AES Support
[ https://issues.apache.org/jira/browse/PDFBOX-135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17282866#comment-17282866 ] Ralf Hauser commented on PDFBOX-135: another test file in https://github.com/LibrePDF/OpenPDF/issues/375 > AES Support > --- > > Key: PDFBOX-135 > URL: https://issues.apache.org/jira/browse/PDFBOX-135 > Project: PDFBox > Issue Type: New Feature > Components: Writing >Assignee: Andreas Lehmkühler >Priority: Major > Fix For: 1.4.0 > > > [imported from SourceForge] > http://sourceforge.net/tracker/index.php?group_id=78314&atid=552832&aid=1432143 > Originally submitted by nobody on 2006-02-15 05:05. > Hi, it should be right time now to add AES support > which is in default enabled on all encrypted PDF > documents made by Adobe Acrobat 7.0. > Since AES is supported by java JCE it should not be a > big deal. Currently only Big Faceless PDF Library seems > to support it. > Thanks for big help. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-5086) DataFormatException after saving
[ https://issues.apache.org/jira/browse/PDFBOX-5086?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17282572#comment-17282572 ] Tilman Hausherr commented on PDFBOX-5086: - First one no. Second one would make sense, but it is different than what java does - FileOutputStream doesn't care if the file exists. Third one, maybe with a warning? "You are overwriting an existing file, this will produce a corrupted file if you're also reading from it". > DataFormatException after saving > > > Key: PDFBOX-5086 > URL: https://issues.apache.org/jira/browse/PDFBOX-5086 > Project: PDFBox > Issue Type: Bug > Components: Utilities >Affects Versions: 3.0.0 PDFBox >Reporter: Tilman Hausherr >Assignee: Andreas Lehmkühler >Priority: Major > Fix For: 3.0.0 PDFBox > > Attachments: SalesUseTaxLA_R-5402_20060705.pdf, > SalesUseTaxLA_R-5402_20060705_BAD.pdf > > > Attached file gets corrupted when saved in 3.0.0, but not in 2.0.*. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Closed] (PDFBOX-5099) PDDocumentInformation java.lang.StringIndexOutOfBoundsException: String index out of range: 2
[ https://issues.apache.org/jira/browse/PDFBOX-5099?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tilman Hausherr closed PDFBOX-5099. --- Resolution: Duplicate Duplicate of PDFBOX-5046. This was fixed last year. Please update to 2.0.22. > PDDocumentInformation java.lang.StringIndexOutOfBoundsException: String index > out of range: 2 > - > > Key: PDFBOX-5099 > URL: https://issues.apache.org/jira/browse/PDFBOX-5099 > Project: PDFBox > Issue Type: Bug >Affects Versions: 2.0.21 > Environment: PDFBox 2.0.21 Java >Reporter: Stefan Geelen >Priority: Minor > > I have a PDF without CreateDate > Following > {quote}PDDocumentInformation docinfo = pdDoc.getDocumentInformation(); > docinfo.getCreationDate(); > {quote} > throws > {quote}java.lang.StringIndexOutOfBoundsException: String index out of range: > 2java.lang.StringIndexOutOfBoundsException: String index out of range: 2 at > java.lang.String.charAt(String.java:658) at > org.apache.pdfbox.util.DateConverter.parseDate(DateConverter.java:656) at > org.apache.pdfbox.util.DateConverter.toCalendar(DateConverter.java:724) at > org.apache.pdfbox.util.DateConverter.toCalendar(DateConverter.java:702) at > org.apache.pdfbox.cos.COSDictionary.getDate(COSDictionary.java:861) at > org.apache.pdfbox.pdmodel.PDDocumentInformation.getCreationDate(PDDocumentInformation.java:212) > {quote} > Better should be to return null in case no createdate exists (same with > getModificationDate I assume - not tested). > Currently there is no other way tha putting this in a try catch to omit this > error. > a > {quote}docinfo.hasCreationDate(); > {quote} > would also be handy (same for other properties). > Looking inside the PDF structure this is the Info: > {quote}7 0 obj > << > /CreationDate (D: ) > /Creator (Samsung Electronics) > /Producer (CloudConvert) > /ModDate (D:20210209103114Z) > /Keywords (urn:uuid:313707-D7BA577B-6584-AC90-7235-4BDFD4C6CCB8) > {quote} > > I guess it is an illegal Date value . > > > -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-4671) NoClassDefFoundError: Could not initialize class org.apache.pdfbox.jbig2.JBIG2ImageReader
[ https://issues.apache.org/jira/browse/PDFBOX-4671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17282308#comment-17282308 ] Ben Maes commented on PDFBOX-4671: -- I'm using version 3.0.2 where that bug is fixed, there is a new version however, but that doesn't fix this if the changelog is correct. I see that [~hennejg] doesn't seem to be active. Can you help me [~lehmi]? > NoClassDefFoundError: Could not initialize class > org.apache.pdfbox.jbig2.JBIG2ImageReader > - > > Key: PDFBOX-4671 > URL: https://issues.apache.org/jira/browse/PDFBOX-4671 > Project: PDFBox > Issue Type: Bug > Components: JBIG2 >Affects Versions: 3.0.2 JBIG2 >Reporter: Luis Panadero Guardeño >Assignee: Joerg O. Henne >Priority: Major > Attachments: jbig2 servlet failcase.tar.gz > > > JBIG2 ImageIO plugin sometimes does a NoClassDefFoundError > I'm using TwelveMonkeys IIOProviderContextListener to fix the problem of > ImageIO with servlets, and additionally doing a > {{ImageIO}}.{{scanForPlugins}}(). But this keeps happening randomly. Any idea > where could be the problem ? > This is happening with Tomcat 7 running over Oracle Java 8 (latest version) > > {code:java} > java.lang.NoClassDefFoundError: Could not initialize class > org.apache.pdfbox.jbig2.JBIG2ImageReader > at > org.apache.pdfbox.jbig2.JBIG2ImageReaderSpi.createReaderInstance(JBIG2ImageReaderSpi.java:117) > at > javax.imageio.spi.ImageReaderSpi.createReaderInstance(ImageReaderSpi.java:320) > at javax.imageio.ImageIO$ImageReaderIterator.next(ImageIO.java:529) > at javax.imageio.ImageIO$ImageReaderIterator.next(ImageIO.java:513) > at org.apache.pdfbox.filter.Filter.findImageReader(Filter.java:155) > at org.apache.pdfbox.filter.JBIG2Filter.decode(JBIG2Filter.java:67) > at org.apache.pdfbox.cos.COSInputStream.create(COSInputStream.java:84) > at org.apache.pdfbox.cos.COSStream.createInputStream(COSStream.java:175) > at > org.apache.pdfbox.pdmodel.common.PDStream.createInputStream(PDStream.java:241) > at > org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject.createInputStream(PDImageXObject.java:735) > at > org.apache.pdfbox.pdmodel.graphics.image.SampledImageReader.from1Bit(SampledImageReader.java:253) > at > org.apache.pdfbox.pdmodel.graphics.image.SampledImageReader.getRGBImage(SampledImageReader.java:212) > at > org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject.getImage(PDImageXObject.java:444) > at > org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject.getImage(PDImageXObject.java:425) > at org.apache.pdfbox.rendering.PageDrawer.drawImage(PageDrawer.java:1100) > at > org.apache.pdfbox.contentstream.operator.graphics.DrawObject.process(DrawObject.java:63) > at > org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:869) > at > org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:505) > at > org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:479) > at > org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:152) > at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:263) > at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:321) > at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:243) > at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:203) > at > com.digibis.digiimage.pdf.pdfbox.PdfBoxPdfProcessor.getImageFromDocumentPage(PdfBoxPdfProcessor.java:105){code} -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org