[jira] [Updated] (PDFBOX-1752) Rendering PDF containing Jpeg2000 fails

2014-03-13 Thread Tilman Hausherr (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1752?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tilman Hausherr updated PDFBOX-1752: Labels: JPEG2000 JPXFilter image imageio render (was: image imageio render) > Rendering P

[jira] [Commented] (PDFBOX-1986) Move SecurityHandler to PDEncryptionDictionary

2014-03-13 Thread John Hewson (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1986?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13934235#comment-13934235 ] John Hewson commented on PDFBOX-1986: - These changes were made in revision 1577354. T

[jira] [Resolved] (PDFBOX-1986) Move SecurityHandler to PDEncryptionDictionary

2014-03-13 Thread John Hewson (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] John Hewson resolved PDFBOX-1986. - Resolution: Fixed > Move SecurityHandler to PDEncryptionDictionary > ---

[jira] [Created] (PDFBOX-1986) Move SecurityHandler to PDEncryptionDictionary

2014-03-13 Thread John Hewson (JIRA)
John Hewson created PDFBOX-1986: --- Summary: Move SecurityHandler to PDEncryptionDictionary Key: PDFBOX-1986 URL: https://issues.apache.org/jira/browse/PDFBOX-1986 Project: PDFBox Issue Type: Imp

[jira] [Updated] (PDFBOX-1986) Move SecurityHandler to PDEncryptionDictionary

2014-03-13 Thread John Hewson (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] John Hewson updated PDFBOX-1986: Component/s: PDModel > Move SecurityHandler to PDEncryptionDictionary > --

[jira] [Updated] (PDFBOX-1986) Move SecurityHandler to PDEncryptionDictionary

2014-03-13 Thread John Hewson (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] John Hewson updated PDFBOX-1986: Affects Version/s: 2.0.0 > Move SecurityHandler to PDEncryptionDictionary > --

[jira] [Updated] (PDFBOX-1986) Move SecurityHandler to PDEncryptionDictionary

2014-03-13 Thread John Hewson (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] John Hewson updated PDFBOX-1986: Fix Version/s: 2.0.0 > Move SecurityHandler to PDEncryptionDictionary > --

[jira] [Updated] (PDFBOX-1986) Move SecurityHandler to PDEncryptionDictionary

2014-03-13 Thread John Hewson (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] John Hewson updated PDFBOX-1986: Labels: Encryption (was: ) > Move SecurityHandler to PDEncryptionDictionary > ---

[jira] [Commented] (PDFBOX-1975) Improve TestImageIOUtils unit tests to check image resolution and compression

2014-03-13 Thread Tilman Hausherr (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13934205#comment-13934205 ] Tilman Hausherr commented on PDFBOX-1975: - I added a check for the color count to

[jira] [Commented] (PDFBOX-1985) Enhance type safety

2014-03-13 Thread John Hewson (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13934023#comment-13934023 ] John Hewson commented on PDFBOX-1985: - Revision 1577312 makes a start on this. > Enh

[jira] [Created] (PDFBOX-1985) Enhance type safety

2014-03-13 Thread John Hewson (JIRA)
John Hewson created PDFBOX-1985: --- Summary: Enhance type safety Key: PDFBOX-1985 URL: https://issues.apache.org/jira/browse/PDFBOX-1985 Project: PDFBox Issue Type: Improvement Affects Versio

[jira] [Updated] (PDFBOX-1985) Enhance type safety

2014-03-13 Thread John Hewson (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1985?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] John Hewson updated PDFBOX-1985: Description: Enhance the type safety of PDFBox and add more generic collections and code cleanup.

[jira] [Commented] (PDFBOX-1984) PDFont documentation correction needed for getFontWidth and getFontHeight

2014-03-13 Thread Maruan Sahyoun (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13933912#comment-13933912 ] Maruan Sahyoun commented on PDFBOX-1984: Fixed the online docs for 1.8.2, 2.8.3 &

[jira] [Comment Edited] (PDFBOX-1984) PDFont documentation correction needed for getFontWidth and getFontHeight

2014-03-13 Thread Maruan Sahyoun (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13933912#comment-13933912 ] Maruan Sahyoun edited comment on PDFBOX-1984 at 3/13/14 7:13 PM: --

Re: Problem With MergeUtility

2014-03-13 Thread Alin Mazilu
I know that. No problem. On Thu, Mar 13, 2014 at 2:23 PM, John Hewson wrote: > Hi Alin > > Thanks for your fix. > > > it would be useful if it had the instance > > variables protected rather than private, that way the class could be > > extended as needed, like PDFTextStripper. > > The problem

Re: [GSoC 2014]Optical Character Recognition project - Introduction

2014-03-13 Thread John Hewson
Thanks, I saw your new refactoring too, it’s good. Now the following methods are no longer needed: public void setImagePath(String path) public void setImage(byte[] imagedata, int width, int height, int bpp,int bpl) Cheers -- John On 11 Mar 2014, at 22:58, DImuthu Upeksha wrote: > Hi John, >

[jira] [Commented] (PDFBOX-1984) PDFont documentation correction needed for getFontWidth and getFontHeight

2014-03-13 Thread Tilman Hausherr (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13933682#comment-13933682 ] Tilman Hausherr commented on PDFBOX-1984: - Done in rev 1577266 for the trunk and

Re: Problem With MergeUtility

2014-03-13 Thread John Hewson
Hi Alin Thanks for your fix. > it would be useful if it had the instance > variables protected rather than private, that way the class could be > extended as needed, like PDFTextStripper. The problem with making fields protected is that it exposes internal implementation details, making them p

[jira] [Resolved] (PDFBOX-1984) PDFont documentation correction needed for getFontWidth and getFontHeight

2014-03-13 Thread Tilman Hausherr (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tilman Hausherr resolved PDFBOX-1984. - Resolution: Fixed Fix Version/s: 2.0.0 1.8.5 > PDFont document

[jira] [Updated] (PDFBOX-1984) PDFont documentation correction needed for getFontWidth and getFontHeight

2014-03-13 Thread Tilman Hausherr (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tilman Hausherr updated PDFBOX-1984: Summary: PDFont documentation correction needed for getFontWidth and getFontHeight (was:

[jira] [Created] (PDFBOX-1984) DFont documentation correction needed for getFontWidth and getFontHeight

2014-03-13 Thread Tilman Hausherr (JIRA)
Tilman Hausherr created PDFBOX-1984: --- Summary: DFont documentation correction needed for getFontWidth and getFontHeight Key: PDFBOX-1984 URL: https://issues.apache.org/jira/browse/PDFBOX-1984 Projec

[jira] [Comment Edited] (PDFBOX-1964) PDFMergerUtility support merging using non sequential parser

2014-03-13 Thread Tilman Hausherr (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13933633#comment-13933633 ] Tilman Hausherr edited comment on PDFBOX-1964 at 3/13/14 6:04 PM: -

Re: Problem With MergeUtility

2014-03-13 Thread Tilman Hausherr
Am 13.03.2014 17:58, schrieb Maruan Sahyoun: this issue is logged at PDFBOX-1964 with a potential patch attached. Reviewed and committed :-) Tilman

[jira] [Resolved] (PDFBOX-1964) PDFMergerUtility support merging using non sequential parser

2014-03-13 Thread Tilman Hausherr (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1964?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tilman Hausherr resolved PDFBOX-1964. - Resolution: Fixed Fix Version/s: 2.0.0 1.8.5 The coding style

Re: Problem With MergeUtility

2014-03-13 Thread Alin Mazilu
Ok, I will try. In my opinion it would be useful if it had the instance variables protected rather than private, that way the class could be extended as needed, like PDFTextStripper. It my situation I would only have to override mergeDocuments(). Anyway, I will try it. Thank you, Alin On Thu, M

[jira] [Comment Edited] (PDFBOX-1975) Improve TestImageIOUtils unit tests to check image resolution and compression

2014-03-13 Thread Tilman Hausherr (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13931472#comment-13931472 ] Tilman Hausherr edited comment on PDFBOX-1975 at 3/13/14 5:06 PM: -

[jira] [Comment Edited] (PDFBOX-1975) Improve TestImageIOUtils unit tests to check image resolution and compression

2014-03-13 Thread Tilman Hausherr (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13932943#comment-13932943 ] Tilman Hausherr edited comment on PDFBOX-1975 at 3/13/14 5:06 PM: -

[jira] [Commented] (PDFBOX-1975) Improve TestImageIOUtils unit tests to check image resolution and compression

2014-03-13 Thread Tilman Hausherr (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13933543#comment-13933543 ] Tilman Hausherr commented on PDFBOX-1975: - I added a read-after-write test with c

Re: Problem With MergeUtility

2014-03-13 Thread Maruan Sahyoun
this issue is logged at PDFBOX-1964 with a potential patch attached. BR Maruan Sahyoun Am 13.03.2014 um 17:52 schrieb Timo Boehme : > Hi, > > as far as I remember PDFMergeUtility is one of the last utilities not > supporting loadNonSeq currently. > > As a workaround get the source of PDFMer

Re: Problem With MergeUtility

2014-03-13 Thread Timo Boehme
Hi, as far as I remember PDFMergeUtility is one of the last utilities not supporting loadNonSeq currently. As a workaround get the source of PDFMergeUtility, change PDDocument.load to PDDocument.loadNonSeq (you may provide null as buffer parameter). Best, Timo Am 13.03.2014 16:46, schr

[jira] [Resolved] (PDFBOX-1983) Unable to add TIF images, CCITTFactory not working

2014-03-13 Thread Tilman Hausherr (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1983?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tilman Hausherr resolved PDFBOX-1983. - Resolution: Fixed > Unable to add TIF images, CCITTFactory not working > ---

[jira] [Updated] (PDFBOX-1983) Unable to add TIF images, CCITTFactory not working

2014-03-13 Thread Tilman Hausherr (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1983?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tilman Hausherr updated PDFBOX-1983: Attachment: huhu.pdf The last comment was the one who helped me fix the bug (done in rev 1

[jira] [Comment Edited] (PDFBOX-1983) Unable to add TIF images, CCITTFactory not working

2014-03-13 Thread Tilman Hausherr (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13933508#comment-13933508 ] Tilman Hausherr edited comment on PDFBOX-1983 at 3/13/14 4:41 PM: -

Re: Problem With MergeUtility

2014-03-13 Thread Alin Mazilu
Where? Here's the code that causes that: PDFMergeUtility util = new PDFMergeUtility(); for (File file : set) { try{ if( file.exists() ){ util.addSource(file); } } catch ( Exception e ){ //log e } } util.setDestinationFileName(...); util.mergeDocuments(); On Thu, Mar 13,

Re: Problem With MergeUtility

2014-03-13 Thread Maruan Sahyoun
Hi, not a direct answer to your question but could you try PDDocument.loadNonSeq instead? BR Maruan Sahyoun > Am 13.03.2014 um 16:16 schrieb Alin Mazilu : > > Hello guys, > > > Has anyone had any problem with this? Any idea why it happens? What would > be a good value for pushBackSize so thi

Problem With MergeUtility

2014-03-13 Thread Alin Mazilu
Hello guys, Has anyone had any problem with this? Any idea why it happens? What would be a good value for pushBackSize so this does not happen? Thanks! Partial stack trace: org.apache.pdfbox.exceptions.WrappedIOException: Could not push back 72940 bytes in order to reparse stream. Try increas

[jira] [Assigned] (PDFBOX-1983) Unable to add TIF images, CCITTFactory not working

2014-03-13 Thread Tilman Hausherr (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1983?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tilman Hausherr reassigned PDFBOX-1983: --- Assignee: Tilman Hausherr > Unable to add TIF images, CCITTFactory not working > ---

[jira] [Updated] (PDFBOX-1983) Unable to add TIF images, CCITTFactory not working

2014-03-13 Thread JIRA
[ https://issues.apache.org/jira/browse/PDFBOX-1983?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Joel Kääpä updated PDFBOX-1983: --- Description: As used in the AddImageToPDF example, the following line generates an error with tif i

[jira] [Commented] (PDFBOX-1983) Unable to add TIF images, CCITTFactory not working

2014-03-13 Thread JIRA
[ https://issues.apache.org/jira/browse/PDFBOX-1983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13933013#comment-13933013 ] Joel Kääpä commented on PDFBOX-1983: Tested the attachment to produce the same error.

[jira] [Commented] (PDFBOX-1983) Unable to add TIF images, CCITTFactory not working

2014-03-13 Thread JIRA
[ https://issues.apache.org/jira/browse/PDFBOX-1983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13933014#comment-13933014 ] Joel Kääpä commented on PDFBOX-1983: Propably of no help, but JPEG is working without

[jira] [Commented] (PDFBOX-1983) Unable to add TIF images, CCITTFactory not working

2014-03-13 Thread John Hewson (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13932972#comment-13932972 ] John Hewson commented on PDFBOX-1983: - I've seen this "Stream was not read" error hap

[jira] [Updated] (PDFBOX-1983) Unable to add TIF images, CCITTFactory not working

2014-03-13 Thread Tilman Hausherr (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1983?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tilman Hausherr updated PDFBOX-1983: Attachment: G4.tif Does this happen with all TIFF files, or just with one of them? Sample

Re: svn commit: r1576536 - /pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/util/TestImageIOUtils.java

2014-03-13 Thread Tilman Hausherr
Ok, thanks. My svn is configured according to the requested EOL style, I suspect it may have happened when I edited outside of the IDE. Tilman Am 12.03.2014 03:46, schrieb John Hewson: This is weird. In the last commit, I changed one line only, and there is this huge diff below. This is cau

[jira] [Created] (PDFBOX-1983) Unable to add TIF images, CCITTFactory not working

2014-03-13 Thread JIRA
Joel Kääpä created PDFBOX-1983: -- Summary: Unable to add TIF images, CCITTFactory not working Key: PDFBOX-1983 URL: https://issues.apache.org/jira/browse/PDFBOX-1983 Project: PDFBox Issue Type: B

[jira] [Commented] (PDFBOX-1982) Standardise AcroForm Fields

2014-03-13 Thread John Hewson (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13932946#comment-13932946 ] John Hewson commented on PDFBOX-1982: - I tweaked this in 1577050 to avoid naming conf

[jira] [Comment Edited] (PDFBOX-1982) Standardise AcroForm Fields

2014-03-13 Thread John Hewson (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13932905#comment-13932905 ] John Hewson edited comment on PDFBOX-1982 at 3/13/14 7:27 AM: -

[jira] [Comment Edited] (PDFBOX-1982) Standardise AcroForm Fields

2014-03-13 Thread John Hewson (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13932905#comment-13932905 ] John Hewson edited comment on PDFBOX-1982 at 3/13/14 7:27 AM: -

[jira] [Comment Edited] (PDFBOX-1975) Improve TestImageIOUtils unit tests to check image resolution and compression

2014-03-13 Thread Tilman Hausherr (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13932244#comment-13932244 ] Tilman Hausherr edited comment on PDFBOX-1975 at 3/13/14 7:24 AM: -

[jira] [Commented] (PDFBOX-1975) Improve TestImageIOUtils unit tests to check image resolution and compression

2014-03-13 Thread Tilman Hausherr (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13932943#comment-13932943 ] Tilman Hausherr commented on PDFBOX-1975: - The cause for the unreliable BMP behav

[jira] [Resolved] (PDFBOX-1976) DocumentEncryption and PDFEncryption are deprecated and should be removed

2014-03-13 Thread John Hewson (JIRA)
[ https://issues.apache.org/jira/browse/PDFBOX-1976?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] John Hewson resolved PDFBOX-1976. - Resolution: Fixed Fix Version/s: 2.0.0 Deprecated classes which were removed: PDFEncrypti