[jira] [Updated] (PDFBOX-3970) x,y co-ordinates of the text inside the cell are not getting correctly.

2017-11-11 Thread Tilman Hausherr (JIRA)

 [ 
https://issues.apache.org/jira/browse/PDFBOX-3970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tilman Hausherr updated PDFBOX-3970:

Attachment: LegacyPDFStreamEngine.java

2nd version, cleaned up a bit.

> x,y co-ordinates of the text inside the cell are not getting correctly.
> ---
>
> Key: PDFBOX-3970
> URL: https://issues.apache.org/jira/browse/PDFBOX-3970
> Project: PDFBox
>  Issue Type: Bug
>  Components: Text extraction
>Affects Versions: 2.0.7
> Environment: Operating system: Windows 7 (64 bit).
>Reporter: Navnath Kumbhar
>  Labels: how-to
> Attachments: LegacyPDFStreamEngine.java, LegacyPDFStreamEngine.java, 
> formula-marked-34.png, paragraphNextToTable-marked-1.png, 
> paragraphNextToTable.pdf, simpleAnnotation.pdf
>
>
> Hello Support Team,
> I am working on a project which parses a whole PDF document and stores the 
> extracted text in some .txt file which can be read by other product.
> My issue is regarding extracting the text inside the cell of a table: 
> *x,y co-ordinates of the text inside the cell are not getting correctly.*
> Y value of the last text line in the cell is getting larger than cell's max-Y 
> value.
> I have attached the test file with this bug.
> As you can see in the test document, there is one cell along-with text in it 
> and a text paragraph next to that cell.
> x-y coordinates that I get from pdfbox for all the paths (two vertical and 
> two horizontal lines) of the cell are:
> (in x1,y1,x2,y2 format)
> Horizontal line 1: [100,88,220,88]
> Horizontal line 2: [100,120,220,120]
> Vertical line 1 : [100,88,100,120]
> Vertical line 2: [220,88,220,120]
> (Y values of the above paths are final values by subtracting the actual value 
> given by pdfbox from height of the page as I see that for paths, y-values are 
> processed from bottom to up)
> And bounding box of the last line in that cell is : [102,114,59,7] and hence 
> max-Y of that line becomes 121 (min-Y + height)
>  
> So, if we consider max-Y value of that cell (i.e. 120)  and that of last line 
> in that cell (i.e. 121), clearly, that line goes out of that cell.
> What can be the possible reason for this?
> Thank you in advance!
> Regards,
> Navnath Kumbhar



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Updated] (PDFBOX-4000) Wrong line break detection for the before ordinal indicator superscripts.

2017-11-11 Thread Tilman Hausherr (JIRA)

 [ 
https://issues.apache.org/jira/browse/PDFBOX-4000?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tilman Hausherr updated PDFBOX-4000:

Attachment: contract_00569_SEDAR-experimental.txt

Output with the experimental code from PDFBOX-3970. The results seem to be 
better with your file, but this may not be the best for other files.

> Wrong line break detection for the before ordinal indicator superscripts.
> -
>
> Key: PDFBOX-4000
> URL: https://issues.apache.org/jira/browse/PDFBOX-4000
> Project: PDFBox
>  Issue Type: Bug
>  Components: Parsing
>Affects Versions: 2.0.6, 2.0.7, 2.0.8
> Environment: Windows 10 64-bit
>Reporter: Harun Reşit Zafer
> Attachments: contract_00569_SEDAR-experimental.txt, 
> contract_00569_SEDAR-marked-1.png, contract_00569_SEDAR.pdf, 
> contract_00882_SEDAR.pdf, contract_00968_SEDAR.pdf
>
>
> Attached 3 documents have lines similar to {{THIS AGREEMENT is made as of the 
> 5th day of February, 2016.}} PdfBox returns this line as 3 separate lines:
> {{THIS AGREEMENT is made as of the 5}}
> {{th}}
>  {{day of February, 2016.}}
> You can find each line close to the top of documents.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Updated] (PDFBOX-3970) x,y co-ordinates of the text inside the cell are not getting correctly.

2017-11-11 Thread Tilman Hausherr (JIRA)

 [ 
https://issues.apache.org/jira/browse/PDFBOX-3970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tilman Hausherr updated PDFBOX-3970:

Attachment: LegacyPDFStreamEngine.java

It looked good at first but when I tried to run it on the file from PDFBOX-4000 
I got some weird effects... ("N" and "o" had almost the same visual bounds) one 
problem in your code is that you're using the height, instead of using the 
upper Y coordinate. I then removed the translation because we need the shapes 
from the baseline and don't care about the rendering position on the page (this 
is done later in the code). I am attaching my current code. Make a diff to 
yours to see what it is about. It is a bit messy. I see you changed the type3 
code at the bottom, I didn't investigate that, I'm using the existing type3 
code.

I then ran the tests and got many regressions. Some can be explained (e.g. 
PDFBOX-3062-002207-p1.pdf), but at least one is weird, the sorted result of 
PDFBOX-2984-page180°.pdf.

> x,y co-ordinates of the text inside the cell are not getting correctly.
> ---
>
> Key: PDFBOX-3970
> URL: https://issues.apache.org/jira/browse/PDFBOX-3970
> Project: PDFBox
>  Issue Type: Bug
>  Components: Text extraction
>Affects Versions: 2.0.7
> Environment: Operating system: Windows 7 (64 bit).
>Reporter: Navnath Kumbhar
>  Labels: how-to
> Attachments: LegacyPDFStreamEngine.java, formula-marked-34.png, 
> paragraphNextToTable-marked-1.png, paragraphNextToTable.pdf, 
> simpleAnnotation.pdf
>
>
> Hello Support Team,
> I am working on a project which parses a whole PDF document and stores the 
> extracted text in some .txt file which can be read by other product.
> My issue is regarding extracting the text inside the cell of a table: 
> *x,y co-ordinates of the text inside the cell are not getting correctly.*
> Y value of the last text line in the cell is getting larger than cell's max-Y 
> value.
> I have attached the test file with this bug.
> As you can see in the test document, there is one cell along-with text in it 
> and a text paragraph next to that cell.
> x-y coordinates that I get from pdfbox for all the paths (two vertical and 
> two horizontal lines) of the cell are:
> (in x1,y1,x2,y2 format)
> Horizontal line 1: [100,88,220,88]
> Horizontal line 2: [100,120,220,120]
> Vertical line 1 : [100,88,100,120]
> Vertical line 2: [220,88,220,120]
> (Y values of the above paths are final values by subtracting the actual value 
> given by pdfbox from height of the page as I see that for paths, y-values are 
> processed from bottom to up)
> And bounding box of the last line in that cell is : [102,114,59,7] and hence 
> max-Y of that line becomes 121 (min-Y + height)
>  
> So, if we consider max-Y value of that cell (i.e. 120)  and that of last line 
> in that cell (i.e. 121), clearly, that line goes out of that cell.
> What can be the possible reason for this?
> Thank you in advance!
> Regards,
> Navnath Kumbhar



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-4006) PDFBox throws NullPointerException when parsing PDF

2017-11-11 Thread Jay Askren (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-4006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16248544#comment-16248544
 ] 

Jay Askren commented on PDFBOX-4006:


Unfortunately, this PDF came from a third party, so I suspect if anything we 
will get more of them.

> PDFBox throws NullPointerException when parsing PDF
> ---
>
> Key: PDFBOX-4006
> URL: https://issues.apache.org/jira/browse/PDFBOX-4006
> Project: PDFBox
>  Issue Type: Bug
>  Components: Parsing
>Affects Versions: 2.0.8
> Environment: Linux, OpenJDK 8 and Oracle JDK 8
>Reporter: Jay Askren
>Assignee: Andreas Lehmkühler
>  Labels: regression
> Fix For: 2.0.9, 3.0.0
>
> Attachments: NullPointerWeatherMap.pdf
>
>
> I have a file that I can open with GhostScript, but PDFBox dies with a 
> NullPointerException when I try to parse it with PDFBox.  The error is as 
> follows:
> {code}
> org.apache.pdfbox.pdfparser.COSParser.parseObjectDynamically(COSParser.java:747)
>  at 
> org.apache.pdfbox.pdfparser.COSParser.parseObjectDynamically(COSParser.java:718)
>  at org.apache.pdfbox.pdfparser.COSParser.getLength(COSParser.java:961) at 
> org.apache.pdfbox.pdfparser.COSParser.parseCOSStream(COSParser.java:1020) at 
> org.apache.pdfbox.pdfparser.COSParser.bfSearchForObjStreams(COSParser.java:1912)
>  at 
> org.apache.pdfbox.pdfparser.COSParser.bfSearchForObjects(COSParser.java:1538) 
> at org.apache.pdfbox.pdfparser.COSParser.rebuildTrailer(COSParser.java:2091) 
> at org.apache.pdfbox.pdfparser.COSParser.retrieveTrailer(COSParser.java:246) 
> at org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java:189) at 
> org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:240) at 
> org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1013) at 
> org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:969) at 
> org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:917) at 
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Resolved] (PDFBOX-4002) Layer Utility - Text not being displayed when overlaying

2017-11-11 Thread Tilman Hausherr (JIRA)

 [ 
https://issues.apache.org/jira/browse/PDFBOX-4002?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tilman Hausherr resolved PDFBOX-4002.
-
   Resolution: Fixed
 Assignee: Tilman Hausherr
Fix Version/s: 3.0.0
   2.0.9

> Layer Utility - Text not being displayed when overlaying
> 
>
> Key: PDFBOX-4002
> URL: https://issues.apache.org/jira/browse/PDFBOX-4002
> Project: PDFBox
>  Issue Type: Bug
>  Components: Documentation
>Affects Versions: 2.0.8
>Reporter: Vlad-Tudor Marchis
>Assignee: Tilman Hausherr
> Fix For: 2.0.9, 3.0.0
>
> Attachments: Overlayer.zip, base.pdf, out.pdf, overlay.pdf
>
>
> I've had some problems with the layer utility when trying to overlay two 
> PDFs. Normally it works fine, but I've encountered a type of PDF file on 
> which it doesn't work properly. 
> Text elements are not being displayed (it can be selected, but it looks to be 
> transparent), but images are.
> I've stripped down my code to the bare minimum and produced a maven project 
> with a command line and provided some examples for the base, the overlay and 
> the output I get.
> I've attached all below.
> The usage for the command line is as follows:
> java -jar Overlayer-1.0.jar -basePdf base.pdf -overlayPdf overlay.pdf -outPdf 
> out.pdf -layerName overlay
> If I try to overlay the other way around, i.e. use the overlay.pdf in the 
> -basePdf parameter and the base.pdf in the -overlayPdf parameter, it does do 
> the overlaying, but obviously, that's not what I'm looking for.
> Any hints as to why this might not work, or any particularities about the 
> base PDF that might be causing this to be behaving differently would be 
> helpful.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-4002) Layer Utility - Text not being displayed when overlaying

2017-11-11 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-4002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16248495#comment-16248495
 ] 

ASF subversion and git services commented on PDFBOX-4002:
-

Commit 1814946 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1814946 ]

PDFBOX-4002: improve javadoc with reference to wrapInSaveRestore()

> Layer Utility - Text not being displayed when overlaying
> 
>
> Key: PDFBOX-4002
> URL: https://issues.apache.org/jira/browse/PDFBOX-4002
> Project: PDFBox
>  Issue Type: Bug
>  Components: Documentation
>Affects Versions: 2.0.8
>Reporter: Vlad-Tudor Marchis
> Fix For: 2.0.9, 3.0.0
>
> Attachments: Overlayer.zip, base.pdf, out.pdf, overlay.pdf
>
>
> I've had some problems with the layer utility when trying to overlay two 
> PDFs. Normally it works fine, but I've encountered a type of PDF file on 
> which it doesn't work properly. 
> Text elements are not being displayed (it can be selected, but it looks to be 
> transparent), but images are.
> I've stripped down my code to the bare minimum and produced a maven project 
> with a command line and provided some examples for the base, the overlay and 
> the output I get.
> I've attached all below.
> The usage for the command line is as follows:
> java -jar Overlayer-1.0.jar -basePdf base.pdf -overlayPdf overlay.pdf -outPdf 
> out.pdf -layerName overlay
> If I try to overlay the other way around, i.e. use the overlay.pdf in the 
> -basePdf parameter and the base.pdf in the -overlayPdf parameter, it does do 
> the overlaying, but obviously, that's not what I'm looking for.
> Any hints as to why this might not work, or any particularities about the 
> base PDF that might be causing this to be behaving differently would be 
> helpful.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-4002) Layer Utility - Text not being displayed when overlaying

2017-11-11 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-4002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16248494#comment-16248494
 ] 

ASF subversion and git services commented on PDFBOX-4002:
-

Commit 1814945 from [~tilman] in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1814945 ]

PDFBOX-4002: improve javadoc with reference to wrapInSaveRestore()

> Layer Utility - Text not being displayed when overlaying
> 
>
> Key: PDFBOX-4002
> URL: https://issues.apache.org/jira/browse/PDFBOX-4002
> Project: PDFBox
>  Issue Type: Bug
>  Components: Documentation
>Affects Versions: 2.0.8
>Reporter: Vlad-Tudor Marchis
> Fix For: 2.0.9, 3.0.0
>
> Attachments: Overlayer.zip, base.pdf, out.pdf, overlay.pdf
>
>
> I've had some problems with the layer utility when trying to overlay two 
> PDFs. Normally it works fine, but I've encountered a type of PDF file on 
> which it doesn't work properly. 
> Text elements are not being displayed (it can be selected, but it looks to be 
> transparent), but images are.
> I've stripped down my code to the bare minimum and produced a maven project 
> with a command line and provided some examples for the base, the overlay and 
> the output I get.
> I've attached all below.
> The usage for the command line is as follows:
> java -jar Overlayer-1.0.jar -basePdf base.pdf -overlayPdf overlay.pdf -outPdf 
> out.pdf -layerName overlay
> If I try to overlay the other way around, i.e. use the overlay.pdf in the 
> -basePdf parameter and the base.pdf in the -overlayPdf parameter, it does do 
> the overlaying, but obviously, that's not what I'm looking for.
> Any hints as to why this might not work, or any particularities about the 
> base PDF that might be causing this to be behaving differently would be 
> helpful.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Updated] (PDFBOX-4002) Layer Utility - Text not being displayed when overlaying

2017-11-11 Thread Tilman Hausherr (JIRA)

 [ 
https://issues.apache.org/jira/browse/PDFBOX-4002?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tilman Hausherr updated PDFBOX-4002:

Component/s: (was: Rendering)
 Documentation

> Layer Utility - Text not being displayed when overlaying
> 
>
> Key: PDFBOX-4002
> URL: https://issues.apache.org/jira/browse/PDFBOX-4002
> Project: PDFBox
>  Issue Type: Bug
>  Components: Documentation
>Affects Versions: 2.0.8
>Reporter: Vlad-Tudor Marchis
> Attachments: Overlayer.zip, base.pdf, out.pdf, overlay.pdf
>
>
> I've had some problems with the layer utility when trying to overlay two 
> PDFs. Normally it works fine, but I've encountered a type of PDF file on 
> which it doesn't work properly. 
> Text elements are not being displayed (it can be selected, but it looks to be 
> transparent), but images are.
> I've stripped down my code to the bare minimum and produced a maven project 
> with a command line and provided some examples for the base, the overlay and 
> the output I get.
> I've attached all below.
> The usage for the command line is as follows:
> java -jar Overlayer-1.0.jar -basePdf base.pdf -overlayPdf overlay.pdf -outPdf 
> out.pdf -layerName overlay
> If I try to overlay the other way around, i.e. use the overlay.pdf in the 
> -basePdf parameter and the base.pdf in the -overlayPdf parameter, it does do 
> the overlaying, but obviously, that's not what I'm looking for.
> Any hints as to why this might not work, or any particularities about the 
> base PDF that might be causing this to be behaving differently would be 
> helpful.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-4002) Layer Utility - Text not being displayed when overlaying

2017-11-11 Thread Tilman Hausherr (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-4002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16248492#comment-16248492
 ] 

Tilman Hausherr commented on PDFBOX-4002:
-

Just after writing the above I realized that it could be that people create 
several forms, so it wouldn't make sense to do the wrap each time. So I won't 
change the code but improve the documentation instead.

> Layer Utility - Text not being displayed when overlaying
> 
>
> Key: PDFBOX-4002
> URL: https://issues.apache.org/jira/browse/PDFBOX-4002
> Project: PDFBox
>  Issue Type: Bug
>  Components: Documentation
>Affects Versions: 2.0.8
>Reporter: Vlad-Tudor Marchis
> Attachments: Overlayer.zip, base.pdf, out.pdf, overlay.pdf
>
>
> I've had some problems with the layer utility when trying to overlay two 
> PDFs. Normally it works fine, but I've encountered a type of PDF file on 
> which it doesn't work properly. 
> Text elements are not being displayed (it can be selected, but it looks to be 
> transparent), but images are.
> I've stripped down my code to the bare minimum and produced a maven project 
> with a command line and provided some examples for the base, the overlay and 
> the output I get.
> I've attached all below.
> The usage for the command line is as follows:
> java -jar Overlayer-1.0.jar -basePdf base.pdf -overlayPdf overlay.pdf -outPdf 
> out.pdf -layerName overlay
> If I try to overlay the other way around, i.e. use the overlay.pdf in the 
> -basePdf parameter and the base.pdf in the -overlayPdf parameter, it does do 
> the overlaying, but obviously, that's not what I'm looking for.
> Any hints as to why this might not work, or any particularities about the 
> base PDF that might be causing this to be behaving differently would be 
> helpful.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



Jenkins build is back to normal : PDFBox-Trunk-jdk9 #127

2017-11-11 Thread Apache Jenkins Server
See 



-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



Jenkins build is back to normal : PDFBox-Trunk-jdk9 » Apache FontBox #127

2017-11-11 Thread Apache Jenkins Server
See 



-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Assigned] (PDFBOX-4006) PDFBox throws NullPointerException when parsing PDF

2017-11-11 Thread JIRA

 [ 
https://issues.apache.org/jira/browse/PDFBOX-4006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andreas Lehmkühler reassigned PDFBOX-4006:
--

Assignee: Andreas Lehmkühler

> PDFBox throws NullPointerException when parsing PDF
> ---
>
> Key: PDFBOX-4006
> URL: https://issues.apache.org/jira/browse/PDFBOX-4006
> Project: PDFBox
>  Issue Type: Bug
>  Components: Parsing
>Affects Versions: 2.0.8
> Environment: Linux, OpenJDK 8 and Oracle JDK 8
>Reporter: Jay Askren
>Assignee: Andreas Lehmkühler
>  Labels: regression
> Fix For: 2.0.9, 3.0.0
>
> Attachments: NullPointerWeatherMap.pdf
>
>
> I have a file that I can open with GhostScript, but PDFBox dies with a 
> NullPointerException when I try to parse it with PDFBox.  The error is as 
> follows:
> {code}
> org.apache.pdfbox.pdfparser.COSParser.parseObjectDynamically(COSParser.java:747)
>  at 
> org.apache.pdfbox.pdfparser.COSParser.parseObjectDynamically(COSParser.java:718)
>  at org.apache.pdfbox.pdfparser.COSParser.getLength(COSParser.java:961) at 
> org.apache.pdfbox.pdfparser.COSParser.parseCOSStream(COSParser.java:1020) at 
> org.apache.pdfbox.pdfparser.COSParser.bfSearchForObjStreams(COSParser.java:1912)
>  at 
> org.apache.pdfbox.pdfparser.COSParser.bfSearchForObjects(COSParser.java:1538) 
> at org.apache.pdfbox.pdfparser.COSParser.rebuildTrailer(COSParser.java:2091) 
> at org.apache.pdfbox.pdfparser.COSParser.retrieveTrailer(COSParser.java:246) 
> at org.apache.pdfbox.pdfparser.PDFParser.initialParse(PDFParser.java:189) at 
> org.apache.pdfbox.pdfparser.PDFParser.parse(PDFParser.java:240) at 
> org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:1013) at 
> org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:969) at 
> org.apache.pdfbox.pdmodel.PDDocument.load(PDDocument.java:917) at 
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



Jenkins build is back to normal : PDFBox-trunk #3646

2017-11-11 Thread Apache Jenkins Server
See 



-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



Jenkins build is back to normal : PDFBox-trunk » Apache FontBox #3646

2017-11-11 Thread Apache Jenkins Server
See 



-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-2852) Improve code quality (2)

2017-11-11 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-2852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16248464#comment-16248464
 ] 

ASF subversion and git services commented on PDFBOX-2852:
-

Commit 1814942 from [~tilman] in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1814942 ]

PDFBOX-2852: temporarly disable owasp plugin until it works again

> Improve code quality (2)
> 
>
> Key: PDFBOX-2852
> URL: https://issues.apache.org/jira/browse/PDFBOX-2852
> Project: PDFBox
>  Issue Type: Task
>Affects Versions: 2.0.0
>Reporter: Tilman Hausherr
> Attachments: PDNameTreeNode.java.patch, StringBuffer.patch, 
> XMPSchema.java.patch, explicit_array_creation.patch, fix_javadoc.patch, 
> foreach.patch, foreach2.patch, generic_type_arguments.patch, noarray.patch, 
> semicolon.patch, stringbuilder.patch, unnecessary_type_casting.patch, 
> unused_imports.patch, usestatic.patch, winansiencoding.patch, 
> winansiencoding2.patch
>
>
> This is a longterm issue for the task to improve code quality, by using the 
> [SonarQube 
> report|https://analysis.apache.org/dashboard/index/org.apache.pdfbox:pdfbox-reactor],
>  hints in different IDEs, the FindBugs tool and other code quality tools.
> This is a follow-up of PDFBOX-2576, which was getting too long.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-2852) Improve code quality (2)

2017-11-11 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-2852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16248465#comment-16248465
 ] 

ASF subversion and git services commented on PDFBOX-2852:
-

Commit 1814943 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1814943 ]

PDFBOX-2852: temporarly disable owasp plugin until it works again

> Improve code quality (2)
> 
>
> Key: PDFBOX-2852
> URL: https://issues.apache.org/jira/browse/PDFBOX-2852
> Project: PDFBox
>  Issue Type: Task
>Affects Versions: 2.0.0
>Reporter: Tilman Hausherr
> Attachments: PDNameTreeNode.java.patch, StringBuffer.patch, 
> XMPSchema.java.patch, explicit_array_creation.patch, fix_javadoc.patch, 
> foreach.patch, foreach2.patch, generic_type_arguments.patch, noarray.patch, 
> semicolon.patch, stringbuilder.patch, unnecessary_type_casting.patch, 
> unused_imports.patch, usestatic.patch, winansiencoding.patch, 
> winansiencoding2.patch
>
>
> This is a longterm issue for the task to improve code quality, by using the 
> [SonarQube 
> report|https://analysis.apache.org/dashboard/index/org.apache.pdfbox:pdfbox-reactor],
>  hints in different IDEs, the FindBugs tool and other code quality tools.
> This is a follow-up of PDFBOX-2576, which was getting too long.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



Build failed in Jenkins: PDFBox-trunk #3645

2017-11-11 Thread Apache Jenkins Server
See 


Changes:

[tilman] PDFBOX-3999: use PD instead of COS class for test to increase usage of 
that class in the project

[tilman] PDFBOX-2852: avoid ClassCastException, simplify code

--
[...truncated 5.18 KB...]
[INFO] Apache PDFBox Debugger application
[INFO] Apache PDFBox examples
[INFO] Apache PDFBox
[INFO] 
[INFO] 
[INFO] Building PDFBox parent 3.0.0-SNAPSHOT
[INFO] 
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ pdfbox-parent ---
[TASKS] Scanning folder 
' for files 
matching the pattern '**/*.java' - excludes: 
[TASKS] Found 0 files to scan for tasks
Found 0 open tasks.
[TASKS] Computing warning deltas based on reference build #3644
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ pdfbox-parent 
---
[INFO] 
[INFO] --- animal-sniffer-maven-plugin:1.15:check (check-java-version) @ 
pdfbox-parent ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java17:1.0
[INFO] 
[INFO] --- maven-site-plugin:3.4:attach-descriptor (attach-descriptor) @ 
pdfbox-parent ---
[INFO] 
[INFO] >>> maven-source-plugin:2.3:jar (attach-sources) > generate-sources @ 
pdfbox-parent >>>
[WARNING] Failed to getClass for org.apache.maven.plugin.source.SourceJarMojo
[INFO] 
[INFO] <<< maven-source-plugin:2.3:jar (attach-sources) < generate-sources @ 
pdfbox-parent <<<
[INFO] 
[INFO] --- maven-source-plugin:2.3:jar (attach-sources) @ pdfbox-parent ---
[INFO] 
[INFO] --- apache-rat-plugin:0.12:check (default) @ pdfbox-parent ---
[INFO] Enabled default license matchers.
[INFO] Will parse SCM ignores for exclusions...
[INFO] Finished adding exclusions from SCM ignore files.
[INFO] 61 implicit excludes (use -debug for more details).
[INFO] Exclude: release.properties
[INFO] 1 resources included (use -debug for more details)
[INFO] Rat check: Summary over all files. Unapproved: 0, unknown: 0, generated: 
0, approved: 1 licenses.
[INFO] 
[INFO] --- dependency-check-maven:3.0.1:check (default) @ pdfbox-parent ---
[INFO] Checking for updates
[INFO] Skipping NVD check since last check was within 4 hours.
[INFO] Check for updates complete (26 ms)
[INFO] Analysis Started
[INFO] Finished File Name Analyzer (0 seconds)
[INFO] Finished Dependency Merging Analyzer (0 seconds)
[INFO] Finished Version Filter Analyzer (0 seconds)
[INFO] Finished Hint Analyzer (0 seconds)
[INFO] Created CPE Index (1 seconds)
[INFO] Finished CPE Analyzer (1 seconds)
[INFO] Finished False Positive Analyzer (0 seconds)
[INFO] Finished Cpe Suppression Analyzer (0 seconds)
[INFO] Finished NVD CVE Analyzer (0 seconds)
[INFO] Finished Vulnerability Suppression Analyzer (0 seconds)
[INFO] Finished Dependency Bundling Analyzer (0 seconds)
[INFO] Analysis Complete (1 seconds)
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ pdfbox-parent 
---
[INFO] Installing 
 to 
/home/jenkins/jenkins-slave/maven-repositories/0/org/apache/pdfbox/pdfbox-parent/3.0.0-SNAPSHOT/pdfbox-parent-3.0.0-SNAPSHOT.pom
[INFO] 
[INFO] --- maven-deploy-plugin:2.8.2:deploy (default-deploy) @ pdfbox-parent ---
[INFO] Downloading: 
https://repository.apache.org/content/repositories/snapshots/org/apache/pdfbox/pdfbox-parent/3.0.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded: 
https://repository.apache.org/content/repositories/snapshots/org/apache/pdfbox/pdfbox-parent/3.0.0-SNAPSHOT/maven-metadata.xml
 (611 B at 0.6 KB/sec)
[INFO] Uploading: 
https://repository.apache.org/content/repositories/snapshots/org/apache/pdfbox/pdfbox-parent/3.0.0-SNAPSHOT/pdfbox-parent-3.0.0-2017.110008-325.pom
[INFO] Uploaded: 
https://repository.apache.org/content/repositories/snapshots/org/apache/pdfbox/pdfbox-parent/3.0.0-SNAPSHOT/pdfbox-parent-3.0.0-2017.110008-325.pom
 (14 KB at 14.2 KB/sec)
[INFO] Downloading: 
https://repository.apache.org/content/repositories/snapshots/org/apache/pdfbox/pdfbox-parent/maven-metadata.xml
[INFO] Downloaded: 
https://repository.apache.org/content/repositories/snapshots/org/apache/pdfbox/pdfbox-parent/maven-metadata.xml
 (471 B at 0.8 KB/sec)
[INFO] Uploading: 
https://repository.apache.org/content/repositories/snapshots/org/apache/pdfbox/pdfbox-parent/3.0.0-SNAPSHOT/maven-metadata.xml
[INFO] Uploaded: 
https://repository.apache.org/content/repositories/snapshots/org/apache/pdfbox/pdfbox-parent/3.0.0-SNAPSHOT/maven-metadata.xml
 (611 B at 0.7 KB/sec)
[INFO] Uploading: 
https://repository.apache.org/content/repositories/snapshots/org/apache/pdfbox/pdfbox-parent/maven-metadata.xml
[INFO] Uploaded: 

Build failed in Jenkins: PDFBox-trunk » Apache FontBox #3645

2017-11-11 Thread Apache Jenkins Server
See 


--
[INFO] 
[INFO] 
[INFO] Building Apache FontBox 3.0.0-SNAPSHOT
[INFO] 
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ fontbox ---
[TASKS] Scanning folder 
' 
for files matching the pattern '**/*.java' - excludes: 
[TASKS] Found 105 files to scan for tasks
Found 12 open tasks.
[TASKS] Computing warning deltas based on reference build #3640
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ fontbox ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ fontbox 
---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 91 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ fontbox ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 98 source files to 

[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ 
fontbox ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ 
fontbox ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 7 source files to 

[INFO] 
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ fontbox ---
[INFO] Surefire report directory: 


---
 T E S T S
---
Running org.apache.fontbox.cff.Type1FontUtilTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.174 sec - in 
org.apache.fontbox.cff.Type1FontUtilTest
Running org.apache.fontbox.ttf.TestTTFParser
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.088 sec - in 
org.apache.fontbox.ttf.TestTTFParser
Running org.apache.fontbox.ttf.BufferedRandomAccessFileTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.043 sec - in 
org.apache.fontbox.ttf.BufferedRandomAccessFileTest
Running org.apache.fontbox.ttf.TTFSubsetterTest
Nov 11, 2017 11:00:32 AM org.apache.fontbox.ttf.TTFSubsetter writeToStream
INFO: font subset is empty
Searching for SimHei font...
SimHei font not available on this machine, test skipped
Downloading DejaVuSansMono font...
Download finished!
Nov 11, 2017 11:00:34 AM org.apache.fontbox.ttf.TTFSubsetter writeToStream
INFO: font subset is empty
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.432 sec - in 
org.apache.fontbox.ttf.TTFSubsetterTest
Running org.apache.fontbox.ttf.TestMemoryTTFDataStream
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in 
org.apache.fontbox.ttf.TestMemoryTTFDataStream
Running org.apache.fontbox.cmap.TestCMap
Downloading Noto Emoji font...
Download finished!
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.743 sec - in 
org.apache.fontbox.cmap.TestCMap
Running org.apache.fontbox.cmap.TestCMapParser
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec - in 
org.apache.fontbox.cmap.TestCMapParser

Results :

Tests run: 16, Failures: 0, Errors: 0, Skipped: 0

[JENKINS] Recording test results
[INFO] 
[INFO] --- animal-sniffer-maven-plugin:1.15:check (check-java-version) @ 
fontbox ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java17:1.0
[INFO] 
[INFO] --- maven-bundle-plugin:3.3.0:bundle (default-bundle) @ fontbox ---
[INFO] 
[INFO] --- maven-site-plugin:3.4:attach-descriptor (attach-descriptor) @ 
fontbox ---
[INFO] 
[INFO] >>> maven-source-plugin:2.3:jar (attach-sources) > generate-sources @ 
fontbox >>>
[WARNING] Failed to getClass for org.apache.maven.plugin.source.SourceJarMojo
[INFO] 
[INFO] <<< maven-source-plugin:2.3:jar (attach-sources) < generate-sources @ 
fontbox <<<
[INFO] 
[INFO] --- maven-source-plugin:2.3:jar (attach-sources) @ fontbox ---
[INFO] Building jar: 

[INFO] 
[INFO] --- apache-rat-plugin:0.12:check (default) @ fontbox ---
[INFO] Enabled default license matchers.
[INFO] Will parse SCM ignores for exclusions...
[INFO] Finished adding exclusions from SCM ignore files.
[INFO] 61 implicit excludes (use -debug for more details).
[INFO] Exclude: 

Build failed in Jenkins: PDFBox-Trunk-jdk9 #126

2017-11-11 Thread Apache Jenkins Server
See 


Changes:

[tilman] PDFBOX-3999: use PD instead of COS class for test to increase usage of 
that class in the project

[tilman] PDFBOX-2852: avoid ClassCastException, simplify code

[tilman] PDFBOX-2852: avoid classcastexception

--
[...truncated 4.37 KB...]
[TASKS] Scanning folder 
' for files 
matching the pattern '**/*.java' - excludes: 
[TASKS] Found 0 files to scan for tasks
Found 0 open tasks.
[TASKS] Computing warning deltas based on reference build #125
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ pdfbox-parent 
---
[INFO] 
[INFO] --- animal-sniffer-maven-plugin:1.15:check (check-java-version) @ 
pdfbox-parent ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java17:1.0
[INFO] 
[INFO] --- maven-site-plugin:3.4:attach-descriptor (attach-descriptor) @ 
pdfbox-parent ---
[INFO] 
[INFO] >>> maven-source-plugin:2.3:jar (attach-sources) > generate-sources @ 
pdfbox-parent >>>
[WARNING] Failed to getClass for org.apache.maven.plugin.source.SourceJarMojo
[INFO] 
[INFO] <<< maven-source-plugin:2.3:jar (attach-sources) < generate-sources @ 
pdfbox-parent <<<
[INFO] 
[INFO] --- maven-source-plugin:2.3:jar (attach-sources) @ pdfbox-parent ---
[INFO] 
[INFO] --- apache-rat-plugin:0.12:check (default) @ pdfbox-parent ---
[INFO] Enabled default license matchers.
[INFO] Will parse SCM ignores for exclusions...
[INFO] Finished adding exclusions from SCM ignore files.
[INFO] 61 implicit excludes (use -debug for more details).
[INFO] Exclude: release.properties
[INFO] 1 resources included (use -debug for more details)
[INFO] Rat check: Summary over all files. Unapproved: 0, unknown: 0, generated: 
0, approved: 1 licenses.
[INFO] 
[INFO] --- dependency-check-maven:3.0.1:check (default) @ pdfbox-parent ---
[INFO] Checking for updates
[INFO] starting getUpdatesNeeded() ...
[INFO] Download Started for NVD CVE - Modified
[INFO] Download Complete for NVD CVE - Modified  (2845 ms)
[INFO] Processing Started for NVD CVE - Modified
[INFO] Processing Complete for NVD CVE - Modified  (53177 ms)
[INFO] Begin database maintenance.
[INFO] End database maintenance.
[INFO] Check for updates complete (167258 ms)
[INFO] Analysis Started
[INFO] Finished File Name Analyzer (0 seconds)
[INFO] Finished Dependency Merging Analyzer (0 seconds)
[INFO] Finished Version Filter Analyzer (0 seconds)
[INFO] Finished Hint Analyzer (0 seconds)
[INFO] Created CPE Index (1 seconds)
[INFO] Finished CPE Analyzer (1 seconds)
[INFO] Finished False Positive Analyzer (0 seconds)
[INFO] Finished Cpe Suppression Analyzer (0 seconds)
[INFO] Finished NVD CVE Analyzer (0 seconds)
[INFO] Finished Vulnerability Suppression Analyzer (0 seconds)
[INFO] Finished Dependency Bundling Analyzer (0 seconds)
[INFO] Analysis Complete (2 seconds)
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ pdfbox-parent 
---
[INFO] Installing 
 to 
/home/jenkins/jenkins-slave/maven-repositories/1/org/apache/pdfbox/pdfbox-parent/3.0.0-SNAPSHOT/pdfbox-parent-3.0.0-SNAPSHOT.pom
[INFO] 
[INFO] 
[INFO] Building Apache FontBox 3.0.0-SNAPSHOT
[INFO] 
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ fontbox ---
[TASKS] Scanning folder 
' for files 
matching the pattern '**/*.java' - excludes: 
[TASKS] Found 105 files to scan for tasks
Found 12 open tasks.
[TASKS] Computing warning deltas based on reference build #124
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ fontbox ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ fontbox 
---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 91 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ fontbox ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 98 source files to 

[WARNING] bootstrap class path not set in conjunction with -source 1.7
[WARNING] 
:
 Some input files use unchecked or unsafe operations.
[WARNING] 
:
 Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ 

Build failed in Jenkins: PDFBox-Trunk-jdk9 » Apache FontBox #126

2017-11-11 Thread Apache Jenkins Server
See 


--
[INFO] 
[INFO] 
[INFO] Building Apache FontBox 3.0.0-SNAPSHOT
[INFO] 
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ fontbox ---
[TASKS] Scanning folder 
'
 for files matching the pattern '**/*.java' - excludes: 
[TASKS] Found 105 files to scan for tasks
Found 12 open tasks.
[TASKS] Computing warning deltas based on reference build #124
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ fontbox ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ fontbox 
---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 91 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ fontbox ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 98 source files to 

[WARNING] bootstrap class path not set in conjunction with -source 1.7
[WARNING] 
:
 Some input files use unchecked or unsafe operations.
[WARNING] 
:
 Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ 
fontbox ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ 
fontbox ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 7 source files to 

[WARNING] bootstrap class path not set in conjunction with -source 1.7
[INFO] 
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ fontbox ---
[INFO] Surefire report directory: 


---
 T E S T S
---
Running org.apache.fontbox.ttf.TestTTFParser
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.171 sec - in 
org.apache.fontbox.ttf.TestTTFParser
Running org.apache.fontbox.ttf.TTFSubsetterTest
Nov 11, 2017 10:33:20 AM org.apache.fontbox.ttf.TTFSubsetter writeToStream
INFO: font subset is empty
Searching for SimHei font...
SimHei font not available on this machine, test skipped
Downloading DejaVuSansMono font...
Download finished!
Nov 11, 2017 10:33:21 AM org.apache.fontbox.ttf.TTFSubsetter writeToStream
INFO: font subset is empty
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.377 sec - in 
org.apache.fontbox.ttf.TTFSubsetterTest
Running org.apache.fontbox.ttf.BufferedRandomAccessFileTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in 
org.apache.fontbox.ttf.BufferedRandomAccessFileTest
Running org.apache.fontbox.ttf.TestMemoryTTFDataStream
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in 
org.apache.fontbox.ttf.TestMemoryTTFDataStream
Running org.apache.fontbox.cff.Type1FontUtilTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.058 sec - in 
org.apache.fontbox.cff.Type1FontUtilTest
Running org.apache.fontbox.cmap.TestCMap
Downloading Noto Emoji font...
Download finished!
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.724 sec - in 
org.apache.fontbox.cmap.TestCMap
Running org.apache.fontbox.cmap.TestCMapParser
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec - in 
org.apache.fontbox.cmap.TestCMapParser

Results :

Tests run: 16, Failures: 0, Errors: 0, Skipped: 0

[JENKINS] Recording test results
[INFO] 
[INFO] --- animal-sniffer-maven-plugin:1.15:check (check-java-version) @ 
fontbox ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java17:1.0
[INFO] 
:155:
 Covariant return type change detected: java.nio.Buffer 
java.nio.ByteBuffer.position(int) has been changed to java.nio.ByteBuffer 
java.nio.ByteBuffer.position(int)
[INFO] 

[jira] [Commented] (PDFBOX-3999) Merge failed to clone tags

2017-11-11 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-3999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16248439#comment-16248439
 ] 

ASF subversion and git services commented on PDFBOX-3999:
-

Commit 1814937 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1814937 ]

PDFBOX-3999: use PD instead of COS class for test to increase usage of that 
class in the project

> Merge failed to clone tags
> --
>
> Key: PDFBOX-3999
> URL: https://issues.apache.org/jira/browse/PDFBOX-3999
> Project: PDFBox
>  Issue Type: Bug
>  Components: Utilities
>Affects Versions: 2.0.8
>Reporter: Dave Hill
>Priority: Critical
>  Labels: StructureTree, merge
> Attachments: GeneralForbearance.pdf, GovFormPreFlattened.pdf, 
> pdfbox.patch
>
>
> After merging two tagged documents, closing the source document causes the 
> destination document to be closed, which prevents it from being saved. The 
> following code demonstrates the bug with the attached flattened government 
> PDF file. The original is available 
> [here|https://studentloans.gov/myDirectLoan/downloadForm.action?searchType=library=general=en-us]
>  if you need it.
> {code}
> @Test
> public void testMerge() throws Exception {
> PDFMergerUtility pdfMergerUtility = new PDFMergerUtility();
> PDDocument src = PDDocument.load(new File("GovFormPreFlattened.pdf"));
> PDDocument dest = PDDocument.load(new File("GovFormPreFlattened.pdf"));
> pdfMergerUtility.appendDocument(dest, src);
> src.close(); //if we don't close the src then we don't have an error
> dest.save(File.createTempFile("MergeIssue",".PDF"));
> dest.close();
> }
> {code}
> The issue is resolved with the attached patch.
> Also I removed the "if (mergeStructTree)" is because mergeStructTree is 
> always true here because this code is already inside an "if 
> (mergeStructTree)".



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-3999) Merge failed to clone tags

2017-11-11 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-3999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16248440#comment-16248440
 ] 

ASF subversion and git services commented on PDFBOX-3999:
-

Commit 1814938 from [~tilman] in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1814938 ]

PDFBOX-3999: use PD instead of COS class for test to increase usage of that 
class in the project

> Merge failed to clone tags
> --
>
> Key: PDFBOX-3999
> URL: https://issues.apache.org/jira/browse/PDFBOX-3999
> Project: PDFBox
>  Issue Type: Bug
>  Components: Utilities
>Affects Versions: 2.0.8
>Reporter: Dave Hill
>Priority: Critical
>  Labels: StructureTree, merge
> Attachments: GeneralForbearance.pdf, GovFormPreFlattened.pdf, 
> pdfbox.patch
>
>
> After merging two tagged documents, closing the source document causes the 
> destination document to be closed, which prevents it from being saved. The 
> following code demonstrates the bug with the attached flattened government 
> PDF file. The original is available 
> [here|https://studentloans.gov/myDirectLoan/downloadForm.action?searchType=library=general=en-us]
>  if you need it.
> {code}
> @Test
> public void testMerge() throws Exception {
> PDFMergerUtility pdfMergerUtility = new PDFMergerUtility();
> PDDocument src = PDDocument.load(new File("GovFormPreFlattened.pdf"));
> PDDocument dest = PDDocument.load(new File("GovFormPreFlattened.pdf"));
> pdfMergerUtility.appendDocument(dest, src);
> src.close(); //if we don't close the src then we don't have an error
> dest.save(File.createTempFile("MergeIssue",".PDF"));
> dest.close();
> }
> {code}
> The issue is resolved with the attached patch.
> Also I removed the "if (mergeStructTree)" is because mergeStructTree is 
> always true here because this code is already inside an "if 
> (mergeStructTree)".



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-2852) Improve code quality (2)

2017-11-11 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-2852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16248432#comment-16248432
 ] 

ASF subversion and git services commented on PDFBOX-2852:
-

Commit 1814933 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1814933 ]

PDFBOX-2852: avoid ClassCastException, simplify code

> Improve code quality (2)
> 
>
> Key: PDFBOX-2852
> URL: https://issues.apache.org/jira/browse/PDFBOX-2852
> Project: PDFBox
>  Issue Type: Task
>Affects Versions: 2.0.0
>Reporter: Tilman Hausherr
> Attachments: PDNameTreeNode.java.patch, StringBuffer.patch, 
> XMPSchema.java.patch, explicit_array_creation.patch, fix_javadoc.patch, 
> foreach.patch, foreach2.patch, generic_type_arguments.patch, noarray.patch, 
> semicolon.patch, stringbuilder.patch, unnecessary_type_casting.patch, 
> unused_imports.patch, usestatic.patch, winansiencoding.patch, 
> winansiencoding2.patch
>
>
> This is a longterm issue for the task to improve code quality, by using the 
> [SonarQube 
> report|https://analysis.apache.org/dashboard/index/org.apache.pdfbox:pdfbox-reactor],
>  hints in different IDEs, the FindBugs tool and other code quality tools.
> This is a follow-up of PDFBOX-2576, which was getting too long.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-2852) Improve code quality (2)

2017-11-11 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-2852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16248433#comment-16248433
 ] 

ASF subversion and git services commented on PDFBOX-2852:
-

Commit 1814935 from [~tilman] in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1814935 ]

PDFBOX-2852: avoid ClassCastException, simplify code

> Improve code quality (2)
> 
>
> Key: PDFBOX-2852
> URL: https://issues.apache.org/jira/browse/PDFBOX-2852
> Project: PDFBox
>  Issue Type: Task
>Affects Versions: 2.0.0
>Reporter: Tilman Hausherr
> Attachments: PDNameTreeNode.java.patch, StringBuffer.patch, 
> XMPSchema.java.patch, explicit_array_creation.patch, fix_javadoc.patch, 
> foreach.patch, foreach2.patch, generic_type_arguments.patch, noarray.patch, 
> semicolon.patch, stringbuilder.patch, unnecessary_type_casting.patch, 
> unused_imports.patch, usestatic.patch, winansiencoding.patch, 
> winansiencoding2.patch
>
>
> This is a longterm issue for the task to improve code quality, by using the 
> [SonarQube 
> report|https://analysis.apache.org/dashboard/index/org.apache.pdfbox:pdfbox-reactor],
>  hints in different IDEs, the FindBugs tool and other code quality tools.
> This is a follow-up of PDFBOX-2576, which was getting too long.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



Build failed in Jenkins: PDFBox-trunk #3644

2017-11-11 Thread Apache Jenkins Server
See 


Changes:

[tilman] PDFBOX-2852: avoid classcastexception

--
[...truncated 5.26 KB...]
[INFO] 
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ pdfbox-parent ---
[TASKS] Scanning folder 
' for files 
matching the pattern '**/*.java' - excludes: 
[TASKS] Found 0 files to scan for tasks
Found 0 open tasks.
[TASKS] Computing warning deltas based on reference build #3643
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ pdfbox-parent 
---
[INFO] 
[INFO] --- animal-sniffer-maven-plugin:1.15:check (check-java-version) @ 
pdfbox-parent ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java17:1.0
[INFO] 
[INFO] --- maven-site-plugin:3.4:attach-descriptor (attach-descriptor) @ 
pdfbox-parent ---
[INFO] 
[INFO] >>> maven-source-plugin:2.3:jar (attach-sources) > generate-sources @ 
pdfbox-parent >>>
[WARNING] Failed to getClass for org.apache.maven.plugin.source.SourceJarMojo
[INFO] 
[INFO] <<< maven-source-plugin:2.3:jar (attach-sources) < generate-sources @ 
pdfbox-parent <<<
[INFO] 
[INFO] --- maven-source-plugin:2.3:jar (attach-sources) @ pdfbox-parent ---
[INFO] 
[INFO] --- apache-rat-plugin:0.12:check (default) @ pdfbox-parent ---
[INFO] Enabled default license matchers.
[INFO] Will parse SCM ignores for exclusions...
[INFO] Finished adding exclusions from SCM ignore files.
[INFO] 61 implicit excludes (use -debug for more details).
[INFO] Exclude: release.properties
[INFO] 1 resources included (use -debug for more details)
[INFO] Rat check: Summary over all files. Unapproved: 0, unknown: 0, generated: 
0, approved: 1 licenses.
[INFO] 
[INFO] --- dependency-check-maven:3.0.1:check (default) @ pdfbox-parent ---
[INFO] Checking for updates
[INFO] starting getUpdatesNeeded() ...
[INFO] Download Started for NVD CVE - Modified
[INFO] Download Complete for NVD CVE - Modified  (2216 ms)
[INFO] Processing Started for NVD CVE - Modified
[INFO] Processing Complete for NVD CVE - Modified  (26271 ms)
[INFO] Begin database maintenance.
[INFO] End database maintenance.
[INFO] Check for updates complete (81628 ms)
[INFO] Analysis Started
[INFO] Finished File Name Analyzer (0 seconds)
[INFO] Finished Dependency Merging Analyzer (0 seconds)
[INFO] Finished Version Filter Analyzer (0 seconds)
[INFO] Finished Hint Analyzer (0 seconds)
[INFO] Created CPE Index (2 seconds)
[INFO] Finished CPE Analyzer (2 seconds)
[INFO] Finished False Positive Analyzer (0 seconds)
[INFO] Finished Cpe Suppression Analyzer (0 seconds)
[INFO] Finished NVD CVE Analyzer (0 seconds)
[INFO] Finished Vulnerability Suppression Analyzer (0 seconds)
[INFO] Finished Dependency Bundling Analyzer (0 seconds)
[INFO] Analysis Complete (2 seconds)
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ pdfbox-parent 
---
[INFO] Installing 
 to 
/home/jenkins/jenkins-slave/maven-repositories/0/org/apache/pdfbox/pdfbox-parent/3.0.0-SNAPSHOT/pdfbox-parent-3.0.0-SNAPSHOT.pom
[INFO] 
[INFO] --- maven-deploy-plugin:2.8.2:deploy (default-deploy) @ pdfbox-parent ---
[INFO] Downloading: 
https://repository.apache.org/content/repositories/snapshots/org/apache/pdfbox/pdfbox-parent/3.0.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded: 
https://repository.apache.org/content/repositories/snapshots/org/apache/pdfbox/pdfbox-parent/3.0.0-SNAPSHOT/maven-metadata.xml
 (611 B at 0.7 KB/sec)
[INFO] Uploading: 
https://repository.apache.org/content/repositories/snapshots/org/apache/pdfbox/pdfbox-parent/3.0.0-SNAPSHOT/pdfbox-parent-3.0.0-2017.100613-324.pom
[INFO] Uploaded: 
https://repository.apache.org/content/repositories/snapshots/org/apache/pdfbox/pdfbox-parent/3.0.0-SNAPSHOT/pdfbox-parent-3.0.0-2017.100613-324.pom
 (14 KB at 14.5 KB/sec)
[INFO] Downloading: 
https://repository.apache.org/content/repositories/snapshots/org/apache/pdfbox/pdfbox-parent/maven-metadata.xml
[INFO] Downloaded: 
https://repository.apache.org/content/repositories/snapshots/org/apache/pdfbox/pdfbox-parent/maven-metadata.xml
 (471 B at 0.8 KB/sec)
[INFO] Uploading: 
https://repository.apache.org/content/repositories/snapshots/org/apache/pdfbox/pdfbox-parent/3.0.0-SNAPSHOT/maven-metadata.xml
[INFO] Uploaded: 
https://repository.apache.org/content/repositories/snapshots/org/apache/pdfbox/pdfbox-parent/3.0.0-SNAPSHOT/maven-metadata.xml
 (611 B at 0.7 KB/sec)
[INFO] Uploading: 
https://repository.apache.org/content/repositories/snapshots/org/apache/pdfbox/pdfbox-parent/maven-metadata.xml
[INFO] Uploaded: 
https://repository.apache.org/content/repositories/snapshots/org/apache/pdfbox/pdfbox-parent/maven-metadata.xml
 (471 B at 0.5 KB/sec)
[INFO]

Build failed in Jenkins: PDFBox-trunk » Apache FontBox #3644

2017-11-11 Thread Apache Jenkins Server
See 


--
[INFO] 
[INFO] 
[INFO] Building Apache FontBox 3.0.0-SNAPSHOT
[INFO] 
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ fontbox ---
[TASKS] Scanning folder 
' 
for files matching the pattern '**/*.java' - excludes: 
[TASKS] Found 105 files to scan for tasks
Found 12 open tasks.
[TASKS] Computing warning deltas based on reference build #3640
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ fontbox ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ fontbox 
---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 91 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ fontbox ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 98 source files to 

[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ 
fontbox ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ 
fontbox ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 7 source files to 

[INFO] 
[INFO] --- maven-surefire-plugin:2.17:test (default-test) @ fontbox ---
[INFO] Surefire report directory: 


---
 T E S T S
---
Running org.apache.fontbox.ttf.TestMemoryTTFDataStream
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.025 sec - in 
org.apache.fontbox.ttf.TestMemoryTTFDataStream
Running org.apache.fontbox.ttf.BufferedRandomAccessFileTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.043 sec - in 
org.apache.fontbox.ttf.BufferedRandomAccessFileTest
Running org.apache.fontbox.ttf.TestTTFParser
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.2 sec - in 
org.apache.fontbox.ttf.TestTTFParser
Running org.apache.fontbox.ttf.TTFSubsetterTest
Nov 11, 2017 10:06:42 AM org.apache.fontbox.ttf.TTFSubsetter writeToStream
INFO: font subset is empty
Searching for SimHei font...
SimHei font not available on this machine, test skipped
Downloading DejaVuSansMono font...
Download finished!
Nov 11, 2017 10:06:44 AM org.apache.fontbox.ttf.TTFSubsetter writeToStream
INFO: font subset is empty
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.904 sec - in 
org.apache.fontbox.ttf.TTFSubsetterTest
Running org.apache.fontbox.cmap.TestCMapParser
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec - in 
org.apache.fontbox.cmap.TestCMapParser
Running org.apache.fontbox.cmap.TestCMap
Downloading Noto Emoji font...
Download finished!
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.684 sec - in 
org.apache.fontbox.cmap.TestCMap
Running org.apache.fontbox.cff.Type1FontUtilTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.207 sec - in 
org.apache.fontbox.cff.Type1FontUtilTest

Results :

Tests run: 16, Failures: 0, Errors: 0, Skipped: 0

[JENKINS] Recording test results
[INFO] 
[INFO] --- animal-sniffer-maven-plugin:1.15:check (check-java-version) @ 
fontbox ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java17:1.0
[INFO] 
[INFO] --- maven-bundle-plugin:3.3.0:bundle (default-bundle) @ fontbox ---
[INFO] 
[INFO] --- maven-site-plugin:3.4:attach-descriptor (attach-descriptor) @ 
fontbox ---
[INFO] 
[INFO] >>> maven-source-plugin:2.3:jar (attach-sources) > generate-sources @ 
fontbox >>>
[WARNING] Failed to getClass for org.apache.maven.plugin.source.SourceJarMojo
[INFO] 
[INFO] <<< maven-source-plugin:2.3:jar (attach-sources) < generate-sources @ 
fontbox <<<
[INFO] 
[INFO] --- maven-source-plugin:2.3:jar (attach-sources) @ fontbox ---
[INFO] Building jar: 

[INFO] 
[INFO] --- apache-rat-plugin:0.12:check (default) @ fontbox ---
[INFO] Enabled default license matchers.
[INFO] Will parse SCM ignores for exclusions...
[INFO] Finished adding exclusions from SCM ignore files.
[INFO] 61 implicit excludes (use -debug for more details).
[INFO] Exclude: 

[jira] [Commented] (PDFBOX-2852) Improve code quality (2)

2017-11-11 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-2852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16248424#comment-16248424
 ] 

ASF subversion and git services commented on PDFBOX-2852:
-

Commit 1814931 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1814931 ]

PDFBOX-2852: avoid classcastexception

> Improve code quality (2)
> 
>
> Key: PDFBOX-2852
> URL: https://issues.apache.org/jira/browse/PDFBOX-2852
> Project: PDFBox
>  Issue Type: Task
>Affects Versions: 2.0.0
>Reporter: Tilman Hausherr
> Attachments: PDNameTreeNode.java.patch, StringBuffer.patch, 
> XMPSchema.java.patch, explicit_array_creation.patch, fix_javadoc.patch, 
> foreach.patch, foreach2.patch, generic_type_arguments.patch, noarray.patch, 
> semicolon.patch, stringbuilder.patch, unnecessary_type_casting.patch, 
> unused_imports.patch, usestatic.patch, winansiencoding.patch, 
> winansiencoding2.patch
>
>
> This is a longterm issue for the task to improve code quality, by using the 
> [SonarQube 
> report|https://analysis.apache.org/dashboard/index/org.apache.pdfbox:pdfbox-reactor],
>  hints in different IDEs, the FindBugs tool and other code quality tools.
> This is a follow-up of PDFBOX-2576, which was getting too long.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



[jira] [Commented] (PDFBOX-2852) Improve code quality (2)

2017-11-11 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/PDFBOX-2852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16248425#comment-16248425
 ] 

ASF subversion and git services commented on PDFBOX-2852:
-

Commit 1814932 from [~tilman] in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1814932 ]

PDFBOX-2852: avoid classcastexception

> Improve code quality (2)
> 
>
> Key: PDFBOX-2852
> URL: https://issues.apache.org/jira/browse/PDFBOX-2852
> Project: PDFBox
>  Issue Type: Task
>Affects Versions: 2.0.0
>Reporter: Tilman Hausherr
> Attachments: PDNameTreeNode.java.patch, StringBuffer.patch, 
> XMPSchema.java.patch, explicit_array_creation.patch, fix_javadoc.patch, 
> foreach.patch, foreach2.patch, generic_type_arguments.patch, noarray.patch, 
> semicolon.patch, stringbuilder.patch, unnecessary_type_casting.patch, 
> unused_imports.patch, usestatic.patch, winansiencoding.patch, 
> winansiencoding2.patch
>
>
> This is a longterm issue for the task to improve code quality, by using the 
> [SonarQube 
> report|https://analysis.apache.org/dashboard/index/org.apache.pdfbox:pdfbox-reactor],
>  hints in different IDEs, the FindBugs tool and other code quality tools.
> This is a follow-up of PDFBOX-2576, which was getting too long.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org