[jira] [Commented] (PDFBOX-2941) Improve PDFDebugger (2)

2016-10-18 Thread Tilman Hausherr (JIRA)

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

Tilman Hausherr commented on PDFBOX-2941:
-

Yes, it's very nice!

> Improve PDFDebugger (2)
> ---
>
> Key: PDFBOX-2941
> URL: https://issues.apache.org/jira/browse/PDFBOX-2941
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Utilities
>Affects Versions: 2.0.0
>Reporter: Tilman Hausherr
> Attachments: gs-bugzilla694570.pdf, keep_zoom.diff, osx-tabs.png, 
> pdfdebugger-screenshot-reverted.png, pdfdebugger-screenshot-trunc.png, 
> screenshot_debugger_new.png, screenshot_debugger_not_aligned.png, 
> screenshot_debugger_old.png, screenshot_w7_fontsize.png, 
> separate_filter_choice_from_text_hex_views.diff, sonar_qube_resolve.diff, 
> sonar_qube_resolve_25_08.diff
>
>
> This is a follow-up issue to PDFBOX-2530 to implement extra ideas that came 
> up in GSoC2015, ideas that were not implemented due to lack of time, and new 
> ideas.
> *Viewing*
> - refactor PDFDebugger.java
> - render glyphs of fonts
> - ✓ refactor StreamPane to share stream filtering among Text view and hex view
> - ✓ password dialog when hitting protected PDF
> - show "pretty" XML
> - display filtered streams even if the unfiltered stream is corrupt 
> (PDFBOX-2976)
> - ✓ display the "caused by" part exception stack trace (nested exceptions)
> - ✓ keep zoom
> - ✓ integrate DrawPrintTextLocations into rendering
> - integrate area text extraction with a mouse-created rectangle that shows 
> the coordinates in a status line
> - ✓ show permission flags of {{Encrypt/P}} entry
> - ✓ show signature flags of {{Root/AcroForm/SigFlags}} entry, see Table 219 
> in PDF spec
> *Editing*
> - save modified PDFs
> - editing in hex viewer
> - remove nodes (e.g. elements from a COSDictionary)
> - delete array or dictionary elements
> - load content streams
> - edit & keep content streams



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Comment Edited] (PDFBOX-3457) Glyphs rendered in wrong width

2016-10-18 Thread John Hewson (JIRA)

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

John Hewson edited comment on PDFBOX-3457 at 10/18/16 11:30 PM:


I've attached a patch (against trunk) which fixes the outstanding 
{{gs-bugzilla693663-p9.pdf}} issue. 

What was happening was that we were incorrectly stretching some glyphs to 1000. 
But those glyphs don't have entries in /W, and there is no /DW so we actually 
have no idea what the width is. PDF spec says that the default is 1000, so we 
use that. But there's obviously some extra logic in Acrobat which says "stretch 
glyphs to the Font dictionary width unless it's not given in /W and there is no 
/DW, in which case use 1000 as the advance width, but don't stretch the glyph".

This is separate from the standard 14 issue, which is in the patch too.


was (Author: jahewson):
I've attached a patch which fixes the outstanding {{gs-bugzilla693663-p9.pdf}} 
issue. 

What was happening was that we were incorrectly stretching some glyphs to 1000. 
But those glyphs don't have entries in /W, and there is no /DW so we actually 
have no idea what the width is. PDF spec says that the default is 1000, so we 
use that. But there's obviously some extra logic in Acrobat which says "stretch 
glyphs to the Font dictionary width unless it's not given in /W and there is no 
/DW, in which case use 1000 as the advance width, but don't stretch the glyph".

This is separate from the standard 14 issue, which is in the patch too.

> Glyphs rendered in wrong width
> --
>
> Key: PDFBOX-3457
> URL: https://issues.apache.org/jira/browse/PDFBOX-3457
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.2, 2.0.3, 2.1.0
>Reporter: Tilman Hausherr
> Attachments: PDFBOX_3457.patch, PDFJS-5550.pdf, PDFJS-7523.pdf, 
> gs-bugzilla693663-p9-stretchdisabled.png, gs-bugzilla693663-p9.pdf, 
> gs-bugzilla693663-p91_part.png, osx.png, overlapping.png
>
>
> Fonts rendered in wrong size. The cause is related to wrong values in the 
> /WIDTHS table and this code in PageDrawer:
> {code}
> // stretch non-embedded glyph if it does not match the width 
> contained in the PDF
> if (!font.isEmbedded())
> {
> float fontWidth = font.getWidthFromFont(code);
> if (fontWidth > 0 && // ignore spaces
> Math.abs(fontWidth - displacement.getX() * 1000) > 
> 0.0001)
> {
> float pdfWidth = displacement.getX() * 1000;
> at.scale(pdfWidth / fontWidth, 1);
> }
> }
> {code}
> I suspect that there must be another condition to skip the stretching, but I 
> didn't find out which one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Comment Edited] (PDFBOX-3457) Glyphs rendered in wrong width

2016-10-18 Thread John Hewson (JIRA)

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

John Hewson edited comment on PDFBOX-3457 at 10/18/16 11:27 PM:


I've attached a patch which fixes the outstanding {{gs-bugzilla693663-p9.pdf}} 
issue. 

What was happening was that we were incorrectly stretching some glyphs to 1000. 
But those glyphs don't have entries in /W, and there is no /DW so we actually 
have no idea what the width is. PDF spec says that the default is 1000, so we 
use that. But there's obviously some extra logic in Acrobat which says "stretch 
glyphs to the Font dictionary width unless it's not given in /W and there is no 
/DW, in which case use 1000 as the advance width, but don't stretch the glyph".

This is separate from the standard 14 issue, which is in the patch too.


was (Author: jahewson):
I've attached a patch which fixes the outstanding {{gs-bugzilla693663-p9.pdf}} 
issue. 

What was happening was that we were stretching some glyphs to 1000. But those 
glyphs don't have entries in /W, and there is no /DW so we actually have no 
idea what the width is. PDF spec says that the default is 1000, so we use that. 
But there's obviously some extra logic in Acrobat which says "stretch glyphs to 
the Font dictionary width unless it's not given in /W and there is no /DW, in 
which case use 1000 as the advance width, but don't stretch the glyph".

This is separate from the standard 14 issue, which is in the patch too.

> Glyphs rendered in wrong width
> --
>
> Key: PDFBOX-3457
> URL: https://issues.apache.org/jira/browse/PDFBOX-3457
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.2, 2.0.3, 2.1.0
>Reporter: Tilman Hausherr
> Attachments: PDFBOX_3457.patch, PDFJS-5550.pdf, PDFJS-7523.pdf, 
> gs-bugzilla693663-p9-stretchdisabled.png, gs-bugzilla693663-p9.pdf, 
> gs-bugzilla693663-p91_part.png, osx.png, overlapping.png
>
>
> Fonts rendered in wrong size. The cause is related to wrong values in the 
> /WIDTHS table and this code in PageDrawer:
> {code}
> // stretch non-embedded glyph if it does not match the width 
> contained in the PDF
> if (!font.isEmbedded())
> {
> float fontWidth = font.getWidthFromFont(code);
> if (fontWidth > 0 && // ignore spaces
> Math.abs(fontWidth - displacement.getX() * 1000) > 
> 0.0001)
> {
> float pdfWidth = displacement.getX() * 1000;
> at.scale(pdfWidth / fontWidth, 1);
> }
> }
> {code}
> I suspect that there must be another condition to skip the stretching, but I 
> didn't find out which one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Comment Edited] (PDFBOX-3457) Glyphs rendered in wrong width

2016-10-18 Thread John Hewson (JIRA)

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

John Hewson edited comment on PDFBOX-3457 at 10/18/16 11:26 PM:


I've attached a patch which fixes the outstanding {{gs-bugzilla693663-p9.pdf}} 
issue. 

What was happening was that we were stretching some glyphs to 1000. But those 
glyphs don't have entries in /W, and there is no /DW so we actually have no 
idea what the width is. PDF spec says that the default is 1000, so we use that. 
But there's obviously some extra logic in Acrobat which says "stretch glyphs to 
the Font dictionary width unless it's not given in /W and there is no /DW, in 
which case use 1000 as the advance width, but don't stretch the glyph".

This is separate from the standard 14 issue, which is in the patch too.


was (Author: jahewson):
I've attached a patch which fixes the outstanding {{gs-bugzilla693663-p9.pdf}} 
issue. 

What was happening was that we were stretching some glyphs to 1000. But those 
glyphs don't have entries in /W, and there is no /DW so we actually have no 
idea what the width is. PDF spec says that the default is 1000, so we use that. 
But there's obviously some extra logic in Acrobat which says "stretch glyphs to 
the Font dictionary width unless it's not given in /W and there is no /DW, in 
which case use 1000 as the advance width, but don't stretch the glyph".

> Glyphs rendered in wrong width
> --
>
> Key: PDFBOX-3457
> URL: https://issues.apache.org/jira/browse/PDFBOX-3457
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.2, 2.0.3, 2.1.0
>Reporter: Tilman Hausherr
> Attachments: PDFBOX_3457.patch, PDFJS-5550.pdf, PDFJS-7523.pdf, 
> gs-bugzilla693663-p9-stretchdisabled.png, gs-bugzilla693663-p9.pdf, 
> gs-bugzilla693663-p91_part.png, osx.png, overlapping.png
>
>
> Fonts rendered in wrong size. The cause is related to wrong values in the 
> /WIDTHS table and this code in PageDrawer:
> {code}
> // stretch non-embedded glyph if it does not match the width 
> contained in the PDF
> if (!font.isEmbedded())
> {
> float fontWidth = font.getWidthFromFont(code);
> if (fontWidth > 0 && // ignore spaces
> Math.abs(fontWidth - displacement.getX() * 1000) > 
> 0.0001)
> {
> float pdfWidth = displacement.getX() * 1000;
> at.scale(pdfWidth / fontWidth, 1);
> }
> }
> {code}
> I suspect that there must be another condition to skip the stretching, but I 
> didn't find out which one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Comment Edited] (PDFBOX-3457) Glyphs rendered in wrong width

2016-10-18 Thread John Hewson (JIRA)

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

John Hewson edited comment on PDFBOX-3457 at 10/18/16 11:26 PM:


I've attached a patch which fixes the outstanding {{gs-bugzilla693663-p9.pdf}} 
issue. 

What was happening was that we were stretching some glyphs to 1000. But those 
glyphs don't have entries in /W, and there is no /DW so we actually have no 
idea what the width is. PDF spec says that the default is 1000, so we use that. 
But there's obviously some extra logic in Acrobat which says "stretch glyphs to 
the Font dictionary width unless it's not given in /W and there is no /DW, in 
which case use 1000 as the advance width, but don't stretch the glyph".


was (Author: jahewson):
I've attached a patch which fixes the outstanding {{gs-bugzilla693663-p9.pdf}} 
issue. 

What was happening was that we were stretching some glyphs to 1000. But those 
glyphs don't have entries in /W, and there is no /DW so we actually have no 
idea what the width is. PDF spec says that the default is 1000, so we use that. 
But there's obviously some extra logic in Acrobat which says "stretch glyphs to 
the Font dictionary width unless it's no given in /W and there is no /DW, in 
which case use 1000 as the advance width, but don't stretch the glyph".

> Glyphs rendered in wrong width
> --
>
> Key: PDFBOX-3457
> URL: https://issues.apache.org/jira/browse/PDFBOX-3457
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.2, 2.0.3, 2.1.0
>Reporter: Tilman Hausherr
> Attachments: PDFBOX_3457.patch, PDFJS-5550.pdf, PDFJS-7523.pdf, 
> gs-bugzilla693663-p9-stretchdisabled.png, gs-bugzilla693663-p9.pdf, 
> gs-bugzilla693663-p91_part.png, osx.png, overlapping.png
>
>
> Fonts rendered in wrong size. The cause is related to wrong values in the 
> /WIDTHS table and this code in PageDrawer:
> {code}
> // stretch non-embedded glyph if it does not match the width 
> contained in the PDF
> if (!font.isEmbedded())
> {
> float fontWidth = font.getWidthFromFont(code);
> if (fontWidth > 0 && // ignore spaces
> Math.abs(fontWidth - displacement.getX() * 1000) > 
> 0.0001)
> {
> float pdfWidth = displacement.getX() * 1000;
> at.scale(pdfWidth / fontWidth, 1);
> }
> }
> {code}
> I suspect that there must be another condition to skip the stretching, but I 
> didn't find out which one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Updated] (PDFBOX-3457) Glyphs rendered in wrong width

2016-10-18 Thread John Hewson (JIRA)

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

John Hewson updated PDFBOX-3457:

Attachment: PDFBOX_3457.patch

I've attached a patch which fixes the outstanding {{gs-bugzilla693663-p9.pdf}} 
issue. 

What was happening was that we were stretching some glyphs to 1000. But those 
glyphs don't have entries in /W, and there is no /DW so we actually have no 
idea what the width is. PDF spec says that the default is 1000, so we use that. 
But there's obviously some extra logic in Acrobat which says "stretch glyphs to 
the Font dictionary width unless it's no given in /W and there is no /DW, in 
which case use 1000 as the advance width, but don't stretch the glyph".

> Glyphs rendered in wrong width
> --
>
> Key: PDFBOX-3457
> URL: https://issues.apache.org/jira/browse/PDFBOX-3457
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.2, 2.0.3, 2.1.0
>Reporter: Tilman Hausherr
> Attachments: PDFBOX_3457.patch, PDFJS-5550.pdf, PDFJS-7523.pdf, 
> gs-bugzilla693663-p9-stretchdisabled.png, gs-bugzilla693663-p9.pdf, 
> gs-bugzilla693663-p91_part.png, osx.png, overlapping.png
>
>
> Fonts rendered in wrong size. The cause is related to wrong values in the 
> /WIDTHS table and this code in PageDrawer:
> {code}
> // stretch non-embedded glyph if it does not match the width 
> contained in the PDF
> if (!font.isEmbedded())
> {
> float fontWidth = font.getWidthFromFont(code);
> if (fontWidth > 0 && // ignore spaces
> Math.abs(fontWidth - displacement.getX() * 1000) > 
> 0.0001)
> {
> float pdfWidth = displacement.getX() * 1000;
> at.scale(pdfWidth / fontWidth, 1);
> }
> }
> {code}
> I suspect that there must be another condition to skip the stretching, but I 
> didn't find out which one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (PDFBOX-3457) Glyphs rendered in wrong width

2016-10-18 Thread John Hewson (JIRA)

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

John Hewson commented on PDFBOX-3457:
-

Figured it out, see below for patch.

> Glyphs rendered in wrong width
> --
>
> Key: PDFBOX-3457
> URL: https://issues.apache.org/jira/browse/PDFBOX-3457
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.2, 2.0.3, 2.1.0
>Reporter: Tilman Hausherr
> Attachments: PDFBOX_3457.patch, PDFJS-5550.pdf, PDFJS-7523.pdf, 
> gs-bugzilla693663-p9-stretchdisabled.png, gs-bugzilla693663-p9.pdf, 
> gs-bugzilla693663-p91_part.png, osx.png, overlapping.png
>
>
> Fonts rendered in wrong size. The cause is related to wrong values in the 
> /WIDTHS table and this code in PageDrawer:
> {code}
> // stretch non-embedded glyph if it does not match the width 
> contained in the PDF
> if (!font.isEmbedded())
> {
> float fontWidth = font.getWidthFromFont(code);
> if (fontWidth > 0 && // ignore spaces
> Math.abs(fontWidth - displacement.getX() * 1000) > 
> 0.0001)
> {
> float pdfWidth = displacement.getX() * 1000;
> at.scale(pdfWidth / fontWidth, 1);
> }
> }
> {code}
> I suspect that there must be another condition to skip the stretching, but I 
> didn't find out which one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
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 #3090

2016-10-18 Thread Apache Jenkins Server
See 

Changes:

[jahewson] PDFBOX-2941: add log messages window

--
[...truncated 1754 lines...]
[INFO] 
[INFO] 
[INFO] Building Apache Preflight 2.1.0-SNAPSHOT
[INFO] 
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ preflight ---
[TASKS] Scanning folder 
' for files 
matching the pattern '**/*.java' - excludes: 
[TASKS] Found 135 files to scan for tasks
Found 18 open tasks.
[TASKS] Computing warning deltas based on reference build #3086
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ preflight ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ preflight 
---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ preflight ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 111 source files to 

[WARNING] bootstrap class path not set in conjunction with -source 1.6
[WARNING] 
:
 Some input files use unchecked or unsafe operations.
[WARNING] 
:
 Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- download-maven-plugin:1.3.0:wget (get-isartor) @ preflight ---
[WARNING] Could not get content
org.apache.maven.wagon.TransferFailedException: 
sun.security.validator.ValidatorException: PKIX path building failed: 
sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
valid certification path to requested target
at 
org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:799)
at 
org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
at 
com.googlecode.download.maven.plugin.internal.WGet.doGet(WGet.java:377)
at 
com.googlecode.download.maven.plugin.internal.WGet.execute(WGet.java:282)
at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at 
org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:136)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:71)
at hudson.remoting.UserRequest.perform(UserRequest.java:153)
at hudson.remoting.UserRequest.perform(UserRequest.java:50)
at

Build failed in Jenkins: PDFBox-trunk » Apache Preflight #3090

2016-10-18 Thread Apache Jenkins Server
See 


--
[INFO] 
[INFO] 
[INFO] Building Apache Preflight 2.1.0-SNAPSHOT
[INFO] 
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ preflight ---
[TASKS] Scanning folder 
' 
for files matching the pattern '**/*.java' - excludes: 
[TASKS] Found 135 files to scan for tasks
Found 18 open tasks.
[TASKS] Computing warning deltas based on reference build #3086
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ preflight ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ preflight 
---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ preflight ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 111 source files to 

[WARNING] bootstrap class path not set in conjunction with -source 1.6
[WARNING] 
:
 Some input files use unchecked or unsafe operations.
[WARNING] 
:
 Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- download-maven-plugin:1.3.0:wget (get-isartor) @ preflight ---
[WARNING] Could not get content
org.apache.maven.wagon.TransferFailedException: 
sun.security.validator.ValidatorException: PKIX path building failed: 
sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
valid certification path to requested target
at 
org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:799)
at 
org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
at 
com.googlecode.download.maven.plugin.internal.WGet.doGet(WGet.java:377)
at 
com.googlecode.download.maven.plugin.internal.WGet.execute(WGet.java:282)
at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at 
org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:136)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:71)
at hudson.remoting.UserRequest.perform(UserRequest.java:153)
at hudson.remoting.UserRequest.perform(UserRequest.java:50)
at hudson.remoting.

[jira] [Comment Edited] (PDFBOX-3457) Glyphs rendered in wrong width

2016-10-18 Thread John Hewson (JIRA)

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

John Hewson edited comment on PDFBOX-3457 at 10/18/16 10:42 PM:


Here's what I get on OS X, with "AdobeGothicStd-Bold", the rendering is the 
same with or without stretching:

!osx.png!


was (Author: jahewson):
Here's what I get on OS X, the rendering is the same with or without stretching:

!osx.png!

> Glyphs rendered in wrong width
> --
>
> Key: PDFBOX-3457
> URL: https://issues.apache.org/jira/browse/PDFBOX-3457
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.2, 2.0.3, 2.1.0
>Reporter: Tilman Hausherr
> Attachments: PDFJS-5550.pdf, PDFJS-7523.pdf, 
> gs-bugzilla693663-p9-stretchdisabled.png, gs-bugzilla693663-p9.pdf, 
> gs-bugzilla693663-p91_part.png, osx.png, overlapping.png
>
>
> Fonts rendered in wrong size. The cause is related to wrong values in the 
> /WIDTHS table and this code in PageDrawer:
> {code}
> // stretch non-embedded glyph if it does not match the width 
> contained in the PDF
> if (!font.isEmbedded())
> {
> float fontWidth = font.getWidthFromFont(code);
> if (fontWidth > 0 && // ignore spaces
> Math.abs(fontWidth - displacement.getX() * 1000) > 
> 0.0001)
> {
> float pdfWidth = displacement.getX() * 1000;
> at.scale(pdfWidth / fontWidth, 1);
> }
> }
> {code}
> I suspect that there must be another condition to skip the stretching, but I 
> didn't find out which one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (PDFBOX-3457) Glyphs rendered in wrong width

2016-10-18 Thread John Hewson (JIRA)

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

John Hewson commented on PDFBOX-3457:
-

Ok, if I modify my local build to use ArialUnicodeMS, then I get the same 
broken rendering with stretching. Will investigate further.

> Glyphs rendered in wrong width
> --
>
> Key: PDFBOX-3457
> URL: https://issues.apache.org/jira/browse/PDFBOX-3457
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.2, 2.0.3, 2.1.0
>Reporter: Tilman Hausherr
> Attachments: PDFJS-5550.pdf, PDFJS-7523.pdf, 
> gs-bugzilla693663-p9-stretchdisabled.png, gs-bugzilla693663-p9.pdf, 
> gs-bugzilla693663-p91_part.png, osx.png, overlapping.png
>
>
> Fonts rendered in wrong size. The cause is related to wrong values in the 
> /WIDTHS table and this code in PageDrawer:
> {code}
> // stretch non-embedded glyph if it does not match the width 
> contained in the PDF
> if (!font.isEmbedded())
> {
> float fontWidth = font.getWidthFromFont(code);
> if (fontWidth > 0 && // ignore spaces
> Math.abs(fontWidth - displacement.getX() * 1000) > 
> 0.0001)
> {
> float pdfWidth = displacement.getX() * 1000;
> at.scale(pdfWidth / fontWidth, 1);
> }
> }
> {code}
> I suspect that there must be another condition to skip the stretching, but I 
> didn't find out which one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (PDFBOX-2941) Improve PDFDebugger (2)

2016-10-18 Thread John Hewson (JIRA)

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

John Hewson commented on PDFBOX-2941:
-

I added a log window so that the log messages can be viewed from within 
PDFDebugger! The message count is show in the status bar and clicking on it 
brings up the log window.

> Improve PDFDebugger (2)
> ---
>
> Key: PDFBOX-2941
> URL: https://issues.apache.org/jira/browse/PDFBOX-2941
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Utilities
>Affects Versions: 2.0.0
>Reporter: Tilman Hausherr
> Attachments: gs-bugzilla694570.pdf, keep_zoom.diff, osx-tabs.png, 
> pdfdebugger-screenshot-reverted.png, pdfdebugger-screenshot-trunc.png, 
> screenshot_debugger_new.png, screenshot_debugger_not_aligned.png, 
> screenshot_debugger_old.png, screenshot_w7_fontsize.png, 
> separate_filter_choice_from_text_hex_views.diff, sonar_qube_resolve.diff, 
> sonar_qube_resolve_25_08.diff
>
>
> This is a follow-up issue to PDFBOX-2530 to implement extra ideas that came 
> up in GSoC2015, ideas that were not implemented due to lack of time, and new 
> ideas.
> *Viewing*
> - refactor PDFDebugger.java
> - render glyphs of fonts
> - ✓ refactor StreamPane to share stream filtering among Text view and hex view
> - ✓ password dialog when hitting protected PDF
> - show "pretty" XML
> - display filtered streams even if the unfiltered stream is corrupt 
> (PDFBOX-2976)
> - ✓ display the "caused by" part exception stack trace (nested exceptions)
> - ✓ keep zoom
> - ✓ integrate DrawPrintTextLocations into rendering
> - integrate area text extraction with a mouse-created rectangle that shows 
> the coordinates in a status line
> - ✓ show permission flags of {{Encrypt/P}} entry
> - ✓ show signature flags of {{Root/AcroForm/SigFlags}} entry, see Table 219 
> in PDF spec
> *Editing*
> - save modified PDFs
> - editing in hex viewer
> - remove nodes (e.g. elements from a COSDictionary)
> - delete array or dictionary elements
> - load content streams
> - edit & keep content streams



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Comment Edited] (PDFBOX-2941) Improve PDFDebugger (2)

2016-10-18 Thread John Hewson (JIRA)

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

John Hewson edited comment on PDFBOX-2941 at 10/18/16 10:32 PM:


I added a log window so that the log messages can be viewed from within 
PDFDebugger! The message count is show in the status bar and clicking on it 
brings up the log window.

Will add this to 2.0 if you're happy with it as is?


was (Author: jahewson):
I added a log window so that the log messages can be viewed from within 
PDFDebugger! The message count is show in the status bar and clicking on it 
brings up the log window.

> Improve PDFDebugger (2)
> ---
>
> Key: PDFBOX-2941
> URL: https://issues.apache.org/jira/browse/PDFBOX-2941
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Utilities
>Affects Versions: 2.0.0
>Reporter: Tilman Hausherr
> Attachments: gs-bugzilla694570.pdf, keep_zoom.diff, osx-tabs.png, 
> pdfdebugger-screenshot-reverted.png, pdfdebugger-screenshot-trunc.png, 
> screenshot_debugger_new.png, screenshot_debugger_not_aligned.png, 
> screenshot_debugger_old.png, screenshot_w7_fontsize.png, 
> separate_filter_choice_from_text_hex_views.diff, sonar_qube_resolve.diff, 
> sonar_qube_resolve_25_08.diff
>
>
> This is a follow-up issue to PDFBOX-2530 to implement extra ideas that came 
> up in GSoC2015, ideas that were not implemented due to lack of time, and new 
> ideas.
> *Viewing*
> - refactor PDFDebugger.java
> - render glyphs of fonts
> - ✓ refactor StreamPane to share stream filtering among Text view and hex view
> - ✓ password dialog when hitting protected PDF
> - show "pretty" XML
> - display filtered streams even if the unfiltered stream is corrupt 
> (PDFBOX-2976)
> - ✓ display the "caused by" part exception stack trace (nested exceptions)
> - ✓ keep zoom
> - ✓ integrate DrawPrintTextLocations into rendering
> - integrate area text extraction with a mouse-created rectangle that shows 
> the coordinates in a status line
> - ✓ show permission flags of {{Encrypt/P}} entry
> - ✓ show signature flags of {{Root/AcroForm/SigFlags}} entry, see Table 219 
> in PDF spec
> *Editing*
> - save modified PDFs
> - editing in hex viewer
> - remove nodes (e.g. elements from a COSDictionary)
> - delete array or dictionary elements
> - load content streams
> - edit & keep content streams



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (PDFBOX-2941) Improve PDFDebugger (2)

2016-10-18 Thread ASF subversion and git services (JIRA)

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

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

Commit 1765524 from [~jahewson] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1765524 ]

PDFBOX-2941: add log messages window

> Improve PDFDebugger (2)
> ---
>
> Key: PDFBOX-2941
> URL: https://issues.apache.org/jira/browse/PDFBOX-2941
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Utilities
>Affects Versions: 2.0.0
>Reporter: Tilman Hausherr
> Attachments: gs-bugzilla694570.pdf, keep_zoom.diff, osx-tabs.png, 
> pdfdebugger-screenshot-reverted.png, pdfdebugger-screenshot-trunc.png, 
> screenshot_debugger_new.png, screenshot_debugger_not_aligned.png, 
> screenshot_debugger_old.png, screenshot_w7_fontsize.png, 
> separate_filter_choice_from_text_hex_views.diff, sonar_qube_resolve.diff, 
> sonar_qube_resolve_25_08.diff
>
>
> This is a follow-up issue to PDFBOX-2530 to implement extra ideas that came 
> up in GSoC2015, ideas that were not implemented due to lack of time, and new 
> ideas.
> *Viewing*
> - refactor PDFDebugger.java
> - render glyphs of fonts
> - ✓ refactor StreamPane to share stream filtering among Text view and hex view
> - ✓ password dialog when hitting protected PDF
> - show "pretty" XML
> - display filtered streams even if the unfiltered stream is corrupt 
> (PDFBOX-2976)
> - ✓ display the "caused by" part exception stack trace (nested exceptions)
> - ✓ keep zoom
> - ✓ integrate DrawPrintTextLocations into rendering
> - integrate area text extraction with a mouse-created rectangle that shows 
> the coordinates in a status line
> - ✓ show permission flags of {{Encrypt/P}} entry
> - ✓ show signature flags of {{Root/AcroForm/SigFlags}} entry, see Table 219 
> in PDF spec
> *Editing*
> - save modified PDFs
> - editing in hex viewer
> - remove nodes (e.g. elements from a COSDictionary)
> - delete array or dictionary elements
> - load content streams
> - edit & keep content streams



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (PDFBOX-3457) Glyphs rendered in wrong width

2016-10-18 Thread JIRA

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

Andreas Lehmkühler commented on PDFBOX-3457:


mine is Ondine and without stretching everything looks good

> Glyphs rendered in wrong width
> --
>
> Key: PDFBOX-3457
> URL: https://issues.apache.org/jira/browse/PDFBOX-3457
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.2, 2.0.3, 2.1.0
>Reporter: Tilman Hausherr
> Attachments: PDFJS-5550.pdf, PDFJS-7523.pdf, 
> gs-bugzilla693663-p9-stretchdisabled.png, gs-bugzilla693663-p9.pdf, 
> gs-bugzilla693663-p91_part.png, osx.png, overlapping.png
>
>
> Fonts rendered in wrong size. The cause is related to wrong values in the 
> /WIDTHS table and this code in PageDrawer:
> {code}
> // stretch non-embedded glyph if it does not match the width 
> contained in the PDF
> if (!font.isEmbedded())
> {
> float fontWidth = font.getWidthFromFont(code);
> if (fontWidth > 0 && // ignore spaces
> Math.abs(fontWidth - displacement.getX() * 1000) > 
> 0.0001)
> {
> float pdfWidth = displacement.getX() * 1000;
> at.scale(pdfWidth / fontWidth, 1);
> }
> }
> {code}
> I suspect that there must be another condition to skip the stretching, but I 
> didn't find out which one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Updated] (PDFBOX-3457) Glyphs rendered in wrong width

2016-10-18 Thread Tilman Hausherr (JIRA)

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

Tilman Hausherr updated PDFBOX-3457:

Attachment: gs-bugzilla693663-p9-stretchdisabled.png

> Glyphs rendered in wrong width
> --
>
> Key: PDFBOX-3457
> URL: https://issues.apache.org/jira/browse/PDFBOX-3457
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.2, 2.0.3, 2.1.0
>Reporter: Tilman Hausherr
> Attachments: PDFJS-5550.pdf, PDFJS-7523.pdf, 
> gs-bugzilla693663-p9-stretchdisabled.png, gs-bugzilla693663-p9.pdf, 
> gs-bugzilla693663-p91_part.png, osx.png, overlapping.png
>
>
> Fonts rendered in wrong size. The cause is related to wrong values in the 
> /WIDTHS table and this code in PageDrawer:
> {code}
> // stretch non-embedded glyph if it does not match the width 
> contained in the PDF
> if (!font.isEmbedded())
> {
> float fontWidth = font.getWidthFromFont(code);
> if (fontWidth > 0 && // ignore spaces
> Math.abs(fontWidth - displacement.getX() * 1000) > 
> 0.0001)
> {
> float pdfWidth = displacement.getX() * 1000;
> at.scale(pdfWidth / fontWidth, 1);
> }
> }
> {code}
> I suspect that there must be another condition to skip the stretching, but I 
> didn't find out which one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Comment Edited] (PDFBOX-3457) Glyphs rendered in wrong width

2016-10-18 Thread Tilman Hausherr (JIRA)

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

Tilman Hausherr edited comment on PDFBOX-3457 at 10/18/16 7:55 PM:
---

That is what I also get.

I tried disabling the font stretching, then the file is shown properly:

!gs-bugzilla693663-p9-stretchdisabled.png!


was (Author: tilman):
That is what I also get.

I tried disabling the font stretching, then the file is shown properly.

> Glyphs rendered in wrong width
> --
>
> Key: PDFBOX-3457
> URL: https://issues.apache.org/jira/browse/PDFBOX-3457
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.2, 2.0.3, 2.1.0
>Reporter: Tilman Hausherr
> Attachments: PDFJS-5550.pdf, PDFJS-7523.pdf, 
> gs-bugzilla693663-p9-stretchdisabled.png, gs-bugzilla693663-p9.pdf, 
> gs-bugzilla693663-p91_part.png, osx.png, overlapping.png
>
>
> Fonts rendered in wrong size. The cause is related to wrong values in the 
> /WIDTHS table and this code in PageDrawer:
> {code}
> // stretch non-embedded glyph if it does not match the width 
> contained in the PDF
> if (!font.isEmbedded())
> {
> float fontWidth = font.getWidthFromFont(code);
> if (fontWidth > 0 && // ignore spaces
> Math.abs(fontWidth - displacement.getX() * 1000) > 
> 0.0001)
> {
> float pdfWidth = displacement.getX() * 1000;
> at.scale(pdfWidth / fontWidth, 1);
> }
> }
> {code}
> I suspect that there must be another condition to skip the stretching, but I 
> didn't find out which one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (PDFBOX-3457) Glyphs rendered in wrong width

2016-10-18 Thread Tilman Hausherr (JIRA)

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

Tilman Hausherr commented on PDFBOX-3457:
-

WARN  PDCIDFontType2:166 - Using fallback font ArialUnicodeMS for CID-keyed 
TrueType font KSpecial1

> Glyphs rendered in wrong width
> --
>
> Key: PDFBOX-3457
> URL: https://issues.apache.org/jira/browse/PDFBOX-3457
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.2, 2.0.3, 2.1.0
>Reporter: Tilman Hausherr
> Attachments: PDFJS-5550.pdf, PDFJS-7523.pdf, 
> gs-bugzilla693663-p9.pdf, gs-bugzilla693663-p91_part.png, osx.png, 
> overlapping.png
>
>
> Fonts rendered in wrong size. The cause is related to wrong values in the 
> /WIDTHS table and this code in PageDrawer:
> {code}
> // stretch non-embedded glyph if it does not match the width 
> contained in the PDF
> if (!font.isEmbedded())
> {
> float fontWidth = font.getWidthFromFont(code);
> if (fontWidth > 0 && // ignore spaces
> Math.abs(fontWidth - displacement.getX() * 1000) > 
> 0.0001)
> {
> float pdfWidth = displacement.getX() * 1000;
> at.scale(pdfWidth / fontWidth, 1);
> }
> }
> {code}
> I suspect that there must be another condition to skip the stretching, but I 
> didn't find out which one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (PDFBOX-3457) Glyphs rendered in wrong width

2016-10-18 Thread John Hewson (JIRA)

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

John Hewson commented on PDFBOX-3457:
-

What's your fallback font? Mine is "AdobeGothicStd-Bold".

> Glyphs rendered in wrong width
> --
>
> Key: PDFBOX-3457
> URL: https://issues.apache.org/jira/browse/PDFBOX-3457
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.2, 2.0.3, 2.1.0
>Reporter: Tilman Hausherr
> Attachments: PDFJS-5550.pdf, PDFJS-7523.pdf, 
> gs-bugzilla693663-p9.pdf, gs-bugzilla693663-p91_part.png, osx.png, 
> overlapping.png
>
>
> Fonts rendered in wrong size. The cause is related to wrong values in the 
> /WIDTHS table and this code in PageDrawer:
> {code}
> // stretch non-embedded glyph if it does not match the width 
> contained in the PDF
> if (!font.isEmbedded())
> {
> float fontWidth = font.getWidthFromFont(code);
> if (fontWidth > 0 && // ignore spaces
> Math.abs(fontWidth - displacement.getX() * 1000) > 
> 0.0001)
> {
> float pdfWidth = displacement.getX() * 1000;
> at.scale(pdfWidth / fontWidth, 1);
> }
> }
> {code}
> I suspect that there must be another condition to skip the stretching, but I 
> didn't find out which one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Comment Edited] (PDFBOX-3457) Glyphs rendered in wrong width

2016-10-18 Thread John Hewson (JIRA)

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

John Hewson edited comment on PDFBOX-3457 at 10/18/16 7:24 PM:
---

Here's what I get on OS X, the rendering is the same with or without stretching:

!osx.png!


was (Author: jahewson):
Here's what I get on OS X:

!osx.png!

> Glyphs rendered in wrong width
> --
>
> Key: PDFBOX-3457
> URL: https://issues.apache.org/jira/browse/PDFBOX-3457
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.2, 2.0.3, 2.1.0
>Reporter: Tilman Hausherr
> Attachments: PDFJS-5550.pdf, PDFJS-7523.pdf, 
> gs-bugzilla693663-p9.pdf, gs-bugzilla693663-p91_part.png, osx.png, 
> overlapping.png
>
>
> Fonts rendered in wrong size. The cause is related to wrong values in the 
> /WIDTHS table and this code in PageDrawer:
> {code}
> // stretch non-embedded glyph if it does not match the width 
> contained in the PDF
> if (!font.isEmbedded())
> {
> float fontWidth = font.getWidthFromFont(code);
> if (fontWidth > 0 && // ignore spaces
> Math.abs(fontWidth - displacement.getX() * 1000) > 
> 0.0001)
> {
> float pdfWidth = displacement.getX() * 1000;
> at.scale(pdfWidth / fontWidth, 1);
> }
> }
> {code}
> I suspect that there must be another condition to skip the stretching, but I 
> didn't find out which one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Updated] (PDFBOX-3457) Glyphs rendered in wrong width

2016-10-18 Thread John Hewson (JIRA)

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

John Hewson updated PDFBOX-3457:

Attachment: osx.png

> Glyphs rendered in wrong width
> --
>
> Key: PDFBOX-3457
> URL: https://issues.apache.org/jira/browse/PDFBOX-3457
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.2, 2.0.3, 2.1.0
>Reporter: Tilman Hausherr
> Attachments: PDFJS-5550.pdf, PDFJS-7523.pdf, 
> gs-bugzilla693663-p9.pdf, gs-bugzilla693663-p91_part.png, osx.png, 
> overlapping.png
>
>
> Fonts rendered in wrong size. The cause is related to wrong values in the 
> /WIDTHS table and this code in PageDrawer:
> {code}
> // stretch non-embedded glyph if it does not match the width 
> contained in the PDF
> if (!font.isEmbedded())
> {
> float fontWidth = font.getWidthFromFont(code);
> if (fontWidth > 0 && // ignore spaces
> Math.abs(fontWidth - displacement.getX() * 1000) > 
> 0.0001)
> {
> float pdfWidth = displacement.getX() * 1000;
> at.scale(pdfWidth / fontWidth, 1);
> }
> }
> {code}
> I suspect that there must be another condition to skip the stretching, but I 
> didn't find out which one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (PDFBOX-3457) Glyphs rendered in wrong width

2016-10-18 Thread John Hewson (JIRA)

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

John Hewson commented on PDFBOX-3457:
-

Here's what I get on OS X:

!osx.png!

> Glyphs rendered in wrong width
> --
>
> Key: PDFBOX-3457
> URL: https://issues.apache.org/jira/browse/PDFBOX-3457
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.2, 2.0.3, 2.1.0
>Reporter: Tilman Hausherr
> Attachments: PDFJS-5550.pdf, PDFJS-7523.pdf, 
> gs-bugzilla693663-p9.pdf, gs-bugzilla693663-p91_part.png, osx.png, 
> overlapping.png
>
>
> Fonts rendered in wrong size. The cause is related to wrong values in the 
> /WIDTHS table and this code in PageDrawer:
> {code}
> // stretch non-embedded glyph if it does not match the width 
> contained in the PDF
> if (!font.isEmbedded())
> {
> float fontWidth = font.getWidthFromFont(code);
> if (fontWidth > 0 && // ignore spaces
> Math.abs(fontWidth - displacement.getX() * 1000) > 
> 0.0001)
> {
> float pdfWidth = displacement.getX() * 1000;
> at.scale(pdfWidth / fontWidth, 1);
> }
> }
> {code}
> I suspect that there must be another condition to skip the stretching, but I 
> didn't find out which one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Comment Edited] (PDFBOX-3280) PDDocument.importPage does not deep clone source page

2016-10-18 Thread Robert Onslow (JIRA)

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

Robert Onslow edited comment on PDFBOX-3280 at 10/18/16 7:05 PM:
-

Using this code on the previously attached pdf generates thepreviously  
attached output test.pdf with blank pages, which I suspect is related to the 
problem of deep cloning

try{
PDDocument doc = PDDocument.load(new 
File("023_CASEROOM-BROCHURE.PDF"));
//PDPage page = doc.getPage(0);
PDDocument doc1 = new PDDocument();
for (int i = 0; i < doc.getNumberOfPages(); i++) {
PDPage page = doc.getPage(i);
doc1.importPage(page);
}
doc1.save("test.pdf");
doc1.close();
doc.close();

} catch (Exception x) {throw new RuntimeException(x);}

Robert


was (Author: ronslow):
Using this code on the previously attached pdf generates thepreviously  
attached output test.pdf with blank pages, which I suspect is related to the 
problem of deep clonging

try{
PDDocument doc = PDDocument.load(new 
File("023_CASEROOM-BROCHURE.PDF"));
//PDPage page = doc.getPage(0);
PDDocument doc1 = new PDDocument();
for (int i = 0; i < doc.getNumberOfPages(); i++) {
PDPage page = doc.getPage(i);
doc1.importPage(page);
}
doc1.save("test.pdf");
doc1.close();
doc.close();

} catch (Exception x) {throw new RuntimeException(x);}

Robert

> PDDocument.importPage does not deep clone source page
> -
>
> Key: PDFBOX-3280
> URL: https://issues.apache.org/jira/browse/PDFBOX-3280
> Project: PDFBox
>  Issue Type: Bug
>  Components: PDModel
>Affects Versions: 2.0.0, 2.0.1, 2.0.2, 2.1.0
>Reporter: Cornelis Hoeflake
> Attachments: 023_CASEROOM-BROCHURE.PDF, 1.pdf, test.pdf
>
>
> The method PDDocument.importPage does not deep clone the source page. This 
> causes two issues, when closing the source document BEFORE saving the target 
> document throws an already closed exception.
> Placing the close after saving the target document works fine. But... When 
> splitting a document into a lot of small documents and than save that 
> documents multithreaded will cause random exceptions like 
> ArrayIndexOutOfBounds, COSStream closed etc.
> Check for example the following code. I attach the used source document.
> {code:title=Test.java|borderStyle=solid}
> PDDocument doc = new PDDocument();
> PDDocument load = PDDocument.load(new File(SOURCE_DOC));
> for (int p = 0; p<1000; p++) {
> doc.importPage(load.getPage(0));
> }
> ByteArrayOutputStream baos = new ByteArrayOutputStream();
> doc.save(baos);
> doc.close();
> load.close();
> final PDDocument doc2 = PDDocument.load(baos.toByteArray());
> // ok, now we have a big document loaded as it normally will be loaded.
> ExecutorService es = Executors.newFixedThreadPool(4);
> List docs = Lists.newArrayList();
> for (int p = 0; p final PDDocument newDoc = new PDDocument();
> newDoc.importPage(doc2.getPage(p));
> docs.add(newDoc);
> }
> for (int p = 0; p final int page = p;
> es.submit(new Runnable() {
> @Override
> public void run() {
> try {
> PDDocument newDoc = docs.get(page);
> newDoc.save(new ByteArrayOutputStream());
> newDoc.close();
> } catch (IOException e) {
> e.printStackTrace();
> }
> }
> });
> }
> es.shutdown();
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (PDFBOX-3280) PDDocument.importPage does not deep clone source page

2016-10-18 Thread Robert Onslow (JIRA)

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

Robert Onslow commented on PDFBOX-3280:
---

Using this code on the previously attached pdf generates thepreviously  
attached output test.pdf with blank pages, which I suspect is related to the 
problem of deep clonging

try{
PDDocument doc = PDDocument.load(new 
File("023_CASEROOM-BROCHURE.PDF"));
//PDPage page = doc.getPage(0);
PDDocument doc1 = new PDDocument();
for (int i = 0; i < doc.getNumberOfPages(); i++) {
PDPage page = doc.getPage(i);
doc1.importPage(page);
}
doc1.save("test.pdf");
doc1.close();
doc.close();

} catch (Exception x) {throw new RuntimeException(x);}

Robert

> PDDocument.importPage does not deep clone source page
> -
>
> Key: PDFBOX-3280
> URL: https://issues.apache.org/jira/browse/PDFBOX-3280
> Project: PDFBox
>  Issue Type: Bug
>  Components: PDModel
>Affects Versions: 2.0.0, 2.0.1, 2.0.2, 2.1.0
>Reporter: Cornelis Hoeflake
> Attachments: 023_CASEROOM-BROCHURE.PDF, 1.pdf, test.pdf
>
>
> The method PDDocument.importPage does not deep clone the source page. This 
> causes two issues, when closing the source document BEFORE saving the target 
> document throws an already closed exception.
> Placing the close after saving the target document works fine. But... When 
> splitting a document into a lot of small documents and than save that 
> documents multithreaded will cause random exceptions like 
> ArrayIndexOutOfBounds, COSStream closed etc.
> Check for example the following code. I attach the used source document.
> {code:title=Test.java|borderStyle=solid}
> PDDocument doc = new PDDocument();
> PDDocument load = PDDocument.load(new File(SOURCE_DOC));
> for (int p = 0; p<1000; p++) {
> doc.importPage(load.getPage(0));
> }
> ByteArrayOutputStream baos = new ByteArrayOutputStream();
> doc.save(baos);
> doc.close();
> load.close();
> final PDDocument doc2 = PDDocument.load(baos.toByteArray());
> // ok, now we have a big document loaded as it normally will be loaded.
> ExecutorService es = Executors.newFixedThreadPool(4);
> List docs = Lists.newArrayList();
> for (int p = 0; p final PDDocument newDoc = new PDDocument();
> newDoc.importPage(doc2.getPage(p));
> docs.add(newDoc);
> }
> for (int p = 0; p final int page = p;
> es.submit(new Runnable() {
> @Override
> public void run() {
> try {
> PDDocument newDoc = docs.get(page);
> newDoc.save(new ByteArrayOutputStream());
> newDoc.close();
> } catch (IOException e) {
> e.printStackTrace();
> }
> }
> });
> }
> es.shutdown();
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Updated] (PDFBOX-3280) PDDocument.importPage does not deep clone source page

2016-10-18 Thread Robert Onslow (JIRA)

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

Robert Onslow updated PDFBOX-3280:
--
Attachment: test.pdf
023_CASEROOM-BROCHURE.PDF

> PDDocument.importPage does not deep clone source page
> -
>
> Key: PDFBOX-3280
> URL: https://issues.apache.org/jira/browse/PDFBOX-3280
> Project: PDFBox
>  Issue Type: Bug
>  Components: PDModel
>Affects Versions: 2.0.0, 2.0.1, 2.0.2, 2.1.0
>Reporter: Cornelis Hoeflake
> Attachments: 023_CASEROOM-BROCHURE.PDF, 1.pdf, test.pdf
>
>
> The method PDDocument.importPage does not deep clone the source page. This 
> causes two issues, when closing the source document BEFORE saving the target 
> document throws an already closed exception.
> Placing the close after saving the target document works fine. But... When 
> splitting a document into a lot of small documents and than save that 
> documents multithreaded will cause random exceptions like 
> ArrayIndexOutOfBounds, COSStream closed etc.
> Check for example the following code. I attach the used source document.
> {code:title=Test.java|borderStyle=solid}
> PDDocument doc = new PDDocument();
> PDDocument load = PDDocument.load(new File(SOURCE_DOC));
> for (int p = 0; p<1000; p++) {
> doc.importPage(load.getPage(0));
> }
> ByteArrayOutputStream baos = new ByteArrayOutputStream();
> doc.save(baos);
> doc.close();
> load.close();
> final PDDocument doc2 = PDDocument.load(baos.toByteArray());
> // ok, now we have a big document loaded as it normally will be loaded.
> ExecutorService es = Executors.newFixedThreadPool(4);
> List docs = Lists.newArrayList();
> for (int p = 0; p final PDDocument newDoc = new PDDocument();
> newDoc.importPage(doc2.getPage(p));
> docs.add(newDoc);
> }
> for (int p = 0; p final int page = p;
> es.submit(new Runnable() {
> @Override
> public void run() {
> try {
> PDDocument newDoc = docs.get(page);
> newDoc.save(new ByteArrayOutputStream());
> newDoc.close();
> } catch (IOException e) {
> e.printStackTrace();
> }
> }
> });
> }
> es.shutdown();
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (PDFBOX-3532) Java 6 errors

2016-10-18 Thread Tilman Hausherr (JIRA)

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

Tilman Hausherr commented on PDFBOX-3532:
-

It redirects to https

> Java 6 errors
> -
>
> Key: PDFBOX-3532
> URL: https://issues.apache.org/jira/browse/PDFBOX-3532
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 1.8.12, 2.0.3
>Reporter: simon steiner
>Assignee: Tilman Hausherr
> Fix For: 1.8.13, 2.0.4, 2.1.0
>
>
> Under java 6 and 8 and clean ~/.m2 directory:
> mvn clean install -DskipTests
> Downloading: 
> http://www.pdfa.org/wp-content/uploads/2011/08/isartor-pdfa-2008-08-13.zip
> javax.net.ssl.SSLHandshakeException: 
> sun.security.validator.ValidatorException: PKIX path building failed: 
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
> valid certification path to requested target
> Java 6 only:
> [ERROR] 
> pdf-box-svn/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocument.java:[205,41]
>  cannot find symbol
> [ERROR] symbol  : class Builder
> [ERROR] location: class java.util.Locale



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (PDFBOX-3532) Java 6 errors

2016-10-18 Thread simon steiner (JIRA)

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

simon steiner commented on PDFBOX-3532:
---

pdfa.org uses lets encrypt
http://stackoverflow.com/questions/34110426/does-java-support-lets-encrypt-certificates

> Java 6 errors
> -
>
> Key: PDFBOX-3532
> URL: https://issues.apache.org/jira/browse/PDFBOX-3532
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 1.8.12, 2.0.3
>Reporter: simon steiner
>Assignee: Tilman Hausherr
> Fix For: 1.8.13, 2.0.4, 2.1.0
>
>
> Under java 6 and 8 and clean ~/.m2 directory:
> mvn clean install -DskipTests
> Downloading: 
> http://www.pdfa.org/wp-content/uploads/2011/08/isartor-pdfa-2008-08-13.zip
> javax.net.ssl.SSLHandshakeException: 
> sun.security.validator.ValidatorException: PKIX path building failed: 
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
> valid certification path to requested target
> Java 6 only:
> [ERROR] 
> pdf-box-svn/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocument.java:[205,41]
>  cannot find symbol
> [ERROR] symbol  : class Builder
> [ERROR] location: class java.util.Locale



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (PDFBOX-3532) Java 6 errors

2016-10-18 Thread simon steiner (JIRA)

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

simon steiner commented on PDFBOX-3532:
---

using http didnt work for me

> Java 6 errors
> -
>
> Key: PDFBOX-3532
> URL: https://issues.apache.org/jira/browse/PDFBOX-3532
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 1.8.12, 2.0.3
>Reporter: simon steiner
>Assignee: Tilman Hausherr
> Fix For: 1.8.13, 2.0.4, 2.1.0
>
>
> Under java 6 and 8 and clean ~/.m2 directory:
> mvn clean install -DskipTests
> Downloading: 
> http://www.pdfa.org/wp-content/uploads/2011/08/isartor-pdfa-2008-08-13.zip
> javax.net.ssl.SSLHandshakeException: 
> sun.security.validator.ValidatorException: PKIX path building failed: 
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
> valid certification path to requested target
> Java 6 only:
> [ERROR] 
> pdf-box-svn/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocument.java:[205,41]
>  cannot find symbol
> [ERROR] symbol  : class Builder
> [ERROR] location: class java.util.Locale



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (PDFBOX-3532) Java 6 errors

2016-10-18 Thread JIRA

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

Andreas Lehmkühler commented on PDFBOX-3532:


How about changing the url from https to http or does the server automatically 
switch to https?

> Java 6 errors
> -
>
> Key: PDFBOX-3532
> URL: https://issues.apache.org/jira/browse/PDFBOX-3532
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 1.8.12, 2.0.3
>Reporter: simon steiner
>Assignee: Tilman Hausherr
> Fix For: 1.8.13, 2.0.4, 2.1.0
>
>
> Under java 6 and 8 and clean ~/.m2 directory:
> mvn clean install -DskipTests
> Downloading: 
> http://www.pdfa.org/wp-content/uploads/2011/08/isartor-pdfa-2008-08-13.zip
> javax.net.ssl.SSLHandshakeException: 
> sun.security.validator.ValidatorException: PKIX path building failed: 
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
> valid certification path to requested target
> Java 6 only:
> [ERROR] 
> pdf-box-svn/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocument.java:[205,41]
>  cannot find symbol
> [ERROR] symbol  : class Builder
> [ERROR] location: class java.util.Locale



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (PDFBOX-3532) Java 6 errors

2016-10-18 Thread JIRA

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

Andreas Lehmkühler commented on PDFBOX-3532:


Hmm, that doesn't work either. I'm going to switch it back to 7u79

> Java 6 errors
> -
>
> Key: PDFBOX-3532
> URL: https://issues.apache.org/jira/browse/PDFBOX-3532
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 1.8.12, 2.0.3
>Reporter: simon steiner
>Assignee: Tilman Hausherr
> Fix For: 1.8.13, 2.0.4, 2.1.0
>
>
> Under java 6 and 8 and clean ~/.m2 directory:
> mvn clean install -DskipTests
> Downloading: 
> http://www.pdfa.org/wp-content/uploads/2011/08/isartor-pdfa-2008-08-13.zip
> javax.net.ssl.SSLHandshakeException: 
> sun.security.validator.ValidatorException: PKIX path building failed: 
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
> valid certification path to requested target
> Java 6 only:
> [ERROR] 
> pdf-box-svn/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocument.java:[205,41]
>  cannot find symbol
> [ERROR] symbol  : class Builder
> [ERROR] location: class java.util.Locale



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (PDFBOX-3457) Glyphs rendered in wrong width

2016-10-18 Thread JIRA

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

Andreas Lehmkühler commented on PDFBOX-3457:


Doesn't work for me. Looks like it depends on the font to be used as 
replacement.

!gs-bugzilla693663-p91_part.png!

> Glyphs rendered in wrong width
> --
>
> Key: PDFBOX-3457
> URL: https://issues.apache.org/jira/browse/PDFBOX-3457
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.2, 2.0.3, 2.1.0
>Reporter: Tilman Hausherr
> Attachments: PDFJS-5550.pdf, PDFJS-7523.pdf, 
> gs-bugzilla693663-p9.pdf, gs-bugzilla693663-p91_part.jpg, overlapping.png
>
>
> Fonts rendered in wrong size. The cause is related to wrong values in the 
> /WIDTHS table and this code in PageDrawer:
> {code}
> // stretch non-embedded glyph if it does not match the width 
> contained in the PDF
> if (!font.isEmbedded())
> {
> float fontWidth = font.getWidthFromFont(code);
> if (fontWidth > 0 && // ignore spaces
> Math.abs(fontWidth - displacement.getX() * 1000) > 
> 0.0001)
> {
> float pdfWidth = displacement.getX() * 1000;
> at.scale(pdfWidth / fontWidth, 1);
> }
> }
> {code}
> I suspect that there must be another condition to skip the stretching, but I 
> didn't find out which one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
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 #3089

2016-10-18 Thread Apache Jenkins Server
See 

--
[...truncated 3805 lines...]
Downloading: 
http://repo.maven.apache.org/maven2/org/iq80/snappy/snappy/0.3/snappy-0.3.pom
Downloaded: 
http://repo.maven.apache.org/maven2/org/iq80/snappy/snappy/0.3/snappy-0.3.pom 
(15 KB at 1406.4 KB/sec)
Downloading: 
http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.5.4/plexus-utils-1.5.4.pom
Downloaded: 
http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.5.4/plexus-utils-1.5.4.pom
 (6 KB at 558.5 KB/sec)
Downloading: 
http://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-provider-api/2.5/wagon-provider-api-2.5.pom
Downloaded: 
http://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-provider-api/2.5/wagon-provider-api-2.5.pom
 (2 KB at 240.8 KB/sec)
Downloading: 
http://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon/2.5/wagon-2.5.pom
Downloaded: 
http://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon/2.5/wagon-2.5.pom
 (20 KB at 2446.9 KB/sec)
Downloading: 
http://repo.maven.apache.org/maven2/org/apache/maven/reporting/maven-reporting-api/2.0/maven-reporting-api-2.0.jar
Downloading: 
http://repo.maven.apache.org/maven2/doxia/doxia-sink-api/1.0-alpha-4/doxia-sink-api-1.0-alpha-4.jar
Downloading: 
http://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpclient/4.0-beta2/httpclient-4.0-beta2.jar
Downloading: 
http://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcore/4.0-beta3/httpcore-4.0-beta3.jar
Downloading: 
http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-archiver/3.0.1/plexus-archiver-3.0.1.jar
Downloaded: 
http://repo.maven.apache.org/maven2/doxia/doxia-sink-api/1.0-alpha-4/doxia-sink-api-1.0-alpha-4.jar
 (5 KB at 261.2 KB/sec)
Downloading: 
http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-io/2.6/plexus-io-2.6.jar
Downloaded: 
http://repo.maven.apache.org/maven2/org/apache/maven/reporting/maven-reporting-api/2.0/maven-reporting-api-2.0.jar
 (7 KB at 356.4 KB/sec)
Downloading: 
http://repo.maven.apache.org/maven2/org/iq80/snappy/snappy/0.3/snappy-0.3.jar
Downloaded: 
http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-io/2.6/plexus-io-2.6.jar
 (83 KB at 9128.4 KB/sec)
Downloading: 
http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.5.4/plexus-utils-1.5.4.jar
Downloaded: 
http://repo.maven.apache.org/maven2/org/iq80/snappy/snappy/0.3/snappy-0.3.jar 
(48 KB at 4762.1 KB/sec)
Downloaded: 
http://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcore/4.0-beta3/httpcore-4.0-beta3.jar
 (169 KB at 7644.9 KB/sec)
Downloaded: 
http://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpclient/4.0-beta2/httpclient-4.0-beta2.jar
 (270 KB at 8701.3 KB/sec)
Downloaded: 
http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-archiver/3.0.1/plexus-archiver-3.0.1.jar
 (373 KB at 12000.0 KB/sec)
Downloaded: 
http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.5.4/plexus-utils-1.5.4.jar
 (245 KB at 16286.5 KB/sec)
[WARNING] Could not get content
org.apache.maven.wagon.TransferFailedException: 
sun.security.validator.ValidatorException: PKIX path building failed: 
sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
valid certification path to requested target
at 
org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:799)
at 
org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
at 
com.googlecode.download.maven.plugin.internal.WGet.doGet(WGet.java:377)
at 
com.googlecode.download.maven.plugin.internal.WGet.execute(WGet.java:282)
at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at 
org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:117)
at sun.reflect.NativeMethodAccessorImpl.i

Build failed in Jenkins: PDFBox-trunk » Apache Preflight #3089

2016-10-18 Thread Apache Jenkins Server
See 


--
[INFO] 
[INFO] 
[INFO] Building Apache Preflight 2.1.0-SNAPSHOT
[INFO] 
Downloading: 
http://repo.maven.apache.org/maven2/com/googlecode/maven-download-plugin/download-maven-plugin/1.3.0/download-maven-plugin-1.3.0.pom
Downloaded: 
http://repo.maven.apache.org/maven2/com/googlecode/maven-download-plugin/download-maven-plugin/1.3.0/download-maven-plugin-1.3.0.pom
 (10 KB at 1040.8 KB/sec)
Downloading: 
http://repo.maven.apache.org/maven2/com/googlecode/maven-download-plugin/download-maven-plugin/1.3.0/download-maven-plugin-1.3.0.jar
Downloaded: 
http://repo.maven.apache.org/maven2/com/googlecode/maven-download-plugin/download-maven-plugin/1.3.0/download-maven-plugin-1.3.0.jar
 (32 KB at 3111.2 KB/sec)
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ preflight ---
[TASKS] Scanning folder 
' 
for files matching the pattern '**/*.java' - excludes: 
[TASKS] Found 135 files to scan for tasks
Found 18 open tasks.
[TASKS] Computing warning deltas based on reference build #3086
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ preflight ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ preflight 
---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ preflight ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 111 source files to 

[WARNING] bootstrap class path not set in conjunction with -source 1.6
[WARNING] 
:
 Some input files use unchecked or unsafe operations.
[WARNING] 
:
 Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- download-maven-plugin:1.3.0:wget (get-isartor) @ preflight ---
Downloading: 
http://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpclient/4.0-beta2/httpclient-4.0-beta2.pom
Downloaded: 
http://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpclient/4.0-beta2/httpclient-4.0-beta2.pom
 (5 KB at 549.4 KB/sec)
Downloading: 
http://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcomponents-client/4.0-beta2/httpcomponents-client-4.0-beta2.pom
Downloaded: 
http://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcomponents-client/4.0-beta2/httpcomponents-client-4.0-beta2.pom
 (8 KB at 1098.6 KB/sec)
Downloading: 
http://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcore/4.0-beta3/httpcore-4.0-beta3.pom
Downloaded: 
http://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcore/4.0-beta3/httpcore-4.0-beta3.pom
 (5 KB at 577.3 KB/sec)
Downloading: 
http://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcomponents-core/4.0-beta3/httpcomponents-core-4.0-beta3.pom
Downloaded: 
http://repo.maven.apache.org/maven2/org/apache/httpcomponents/httpcomponents-core/4.0-beta3/httpcomponents-core-4.0-beta3.pom
 (7 KB at 965.8 KB/sec)
Downloading: 
http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-archiver/3.0.1/plexus-archiver-3.0.1.pom
Downloaded: 
http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-archiver/3.0.1/plexus-archiver-3.0.1.pom
 (6 KB at 706.3 KB/sec)
Downloading: 
http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-io/2.6/plexus-io-2.6.pom
Downloaded: 
http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-io/2.6/plexus-io-2.6.pom
 (4 KB at 428.4 KB/sec)
Downloading: 
http://repo.maven.apache.org/maven2/org/iq80/snappy/snappy/0.3/snappy-0.3.pom
Downloaded: 
http://repo.maven.apache.org/maven2/org/iq80/snappy/snappy/0.3/snappy-0.3.pom 
(15 KB at 1406.4 KB/sec)
Downloading: 
http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.5.4/plexus-utils-1.5.4.pom
Downloaded: 
http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-utils/1.5.4/plexus-utils-1.5.4.pom
 (6 KB at 558.5 KB/sec)
Downloading: 
http://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-provider-api/2.5/wagon-provider-api-2.5.pom
Downloaded: 
http://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-provider-api/2.5/wagon-provider-api-2.5.pom
 (2 KB at 240.8 KB/sec)
Downloading: 
http://repo.maven.apache.org/maven2/org/apache/maven/wago

[jira] [Updated] (PDFBOX-3457) Glyphs rendered in wrong width

2016-10-18 Thread JIRA

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

Andreas Lehmkühler updated PDFBOX-3457:
---
Attachment: gs-bugzilla693663-p91_part.png

> Glyphs rendered in wrong width
> --
>
> Key: PDFBOX-3457
> URL: https://issues.apache.org/jira/browse/PDFBOX-3457
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.2, 2.0.3, 2.1.0
>Reporter: Tilman Hausherr
> Attachments: PDFJS-5550.pdf, PDFJS-7523.pdf, 
> gs-bugzilla693663-p9.pdf, gs-bugzilla693663-p91_part.png, overlapping.png
>
>
> Fonts rendered in wrong size. The cause is related to wrong values in the 
> /WIDTHS table and this code in PageDrawer:
> {code}
> // stretch non-embedded glyph if it does not match the width 
> contained in the PDF
> if (!font.isEmbedded())
> {
> float fontWidth = font.getWidthFromFont(code);
> if (fontWidth > 0 && // ignore spaces
> Math.abs(fontWidth - displacement.getX() * 1000) > 
> 0.0001)
> {
> float pdfWidth = displacement.getX() * 1000;
> at.scale(pdfWidth / fontWidth, 1);
> }
> }
> {code}
> I suspect that there must be another condition to skip the stretching, but I 
> didn't find out which one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Updated] (PDFBOX-3457) Glyphs rendered in wrong width

2016-10-18 Thread JIRA

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

Andreas Lehmkühler updated PDFBOX-3457:
---
Attachment: (was: gs-bugzilla693663-p91_part.jpg)

> Glyphs rendered in wrong width
> --
>
> Key: PDFBOX-3457
> URL: https://issues.apache.org/jira/browse/PDFBOX-3457
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.2, 2.0.3, 2.1.0
>Reporter: Tilman Hausherr
> Attachments: PDFJS-5550.pdf, PDFJS-7523.pdf, 
> gs-bugzilla693663-p9.pdf, gs-bugzilla693663-p91_part.png, overlapping.png
>
>
> Fonts rendered in wrong size. The cause is related to wrong values in the 
> /WIDTHS table and this code in PageDrawer:
> {code}
> // stretch non-embedded glyph if it does not match the width 
> contained in the PDF
> if (!font.isEmbedded())
> {
> float fontWidth = font.getWidthFromFont(code);
> if (fontWidth > 0 && // ignore spaces
> Math.abs(fontWidth - displacement.getX() * 1000) > 
> 0.0001)
> {
> float pdfWidth = displacement.getX() * 1000;
> at.scale(pdfWidth / fontWidth, 1);
> }
> }
> {code}
> I suspect that there must be another condition to skip the stretching, but I 
> didn't find out which one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (PDFBOX-3532) Java 6 errors

2016-10-18 Thread Tilman Hausherr (JIRA)

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

Tilman Hausherr commented on PDFBOX-3532:
-

Sorry, I just see there's only 1 version between. This is because I prepared 
this text and had seen a much lower jdk version, then realized I had looked on 
the analysis server. I then corrected the text and missed that.

So the alternatives left would be
- try jdk8
- copy the isartor tests on another place that doesn't have https
- try the cacerts copying


> Java 6 errors
> -
>
> Key: PDFBOX-3532
> URL: https://issues.apache.org/jira/browse/PDFBOX-3532
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 1.8.12, 2.0.3
>Reporter: simon steiner
>Assignee: Tilman Hausherr
> Fix For: 1.8.13, 2.0.4, 2.1.0
>
>
> Under java 6 and 8 and clean ~/.m2 directory:
> mvn clean install -DskipTests
> Downloading: 
> http://www.pdfa.org/wp-content/uploads/2011/08/isartor-pdfa-2008-08-13.zip
> javax.net.ssl.SSLHandshakeException: 
> sun.security.validator.ValidatorException: PKIX path building failed: 
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
> valid certification path to requested target
> Java 6 only:
> [ERROR] 
> pdf-box-svn/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocument.java:[205,41]
>  cannot find symbol
> [ERROR] symbol  : class Builder
> [ERROR] location: class java.util.Locale



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (PDFBOX-3457) Glyphs rendered in wrong width

2016-10-18 Thread Tilman Hausherr (JIRA)

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

Tilman Hausherr commented on PDFBOX-3457:
-

That is what I also get.

I tried disabling the font stretching, then the file is shown properly.

> Glyphs rendered in wrong width
> --
>
> Key: PDFBOX-3457
> URL: https://issues.apache.org/jira/browse/PDFBOX-3457
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.2, 2.0.3, 2.1.0
>Reporter: Tilman Hausherr
> Attachments: PDFJS-5550.pdf, PDFJS-7523.pdf, 
> gs-bugzilla693663-p9.pdf, gs-bugzilla693663-p91_part.png, overlapping.png
>
>
> Fonts rendered in wrong size. The cause is related to wrong values in the 
> /WIDTHS table and this code in PageDrawer:
> {code}
> // stretch non-embedded glyph if it does not match the width 
> contained in the PDF
> if (!font.isEmbedded())
> {
> float fontWidth = font.getWidthFromFont(code);
> if (fontWidth > 0 && // ignore spaces
> Math.abs(fontWidth - displacement.getX() * 1000) > 
> 0.0001)
> {
> float pdfWidth = displacement.getX() * 1000;
> at.scale(pdfWidth / fontWidth, 1);
> }
> }
> {code}
> I suspect that there must be another condition to skip the stretching, but I 
> didn't find out which one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (PDFBOX-3532) Java 6 errors

2016-10-18 Thread simon steiner (JIRA)

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

simon steiner commented on PDFBOX-3532:
---

On ubuntu it symlinks jdk cacerts to /etc/ssl/certs/java/cacerts
so installing newer jdk may not help

> Java 6 errors
> -
>
> Key: PDFBOX-3532
> URL: https://issues.apache.org/jira/browse/PDFBOX-3532
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 1.8.12, 2.0.3
>Reporter: simon steiner
>Assignee: Tilman Hausherr
> Fix For: 1.8.13, 2.0.4, 2.1.0
>
>
> Under java 6 and 8 and clean ~/.m2 directory:
> mvn clean install -DskipTests
> Downloading: 
> http://www.pdfa.org/wp-content/uploads/2011/08/isartor-pdfa-2008-08-13.zip
> javax.net.ssl.SSLHandshakeException: 
> sun.security.validator.ValidatorException: PKIX path building failed: 
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
> valid certification path to requested target
> Java 6 only:
> [ERROR] 
> pdf-box-svn/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocument.java:[205,41]
>  cannot find symbol
> [ERROR] symbol  : class Builder
> [ERROR] location: class java.util.Locale



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (PDFBOX-3532) Java 6 errors

2016-10-18 Thread JIRA

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

Andreas Lehmkühler commented on PDFBOX-3532:


I've switched the trunk build to 8U66 unlimited security to give it a try ...

> Java 6 errors
> -
>
> Key: PDFBOX-3532
> URL: https://issues.apache.org/jira/browse/PDFBOX-3532
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 1.8.12, 2.0.3
>Reporter: simon steiner
>Assignee: Tilman Hausherr
> Fix For: 1.8.13, 2.0.4, 2.1.0
>
>
> Under java 6 and 8 and clean ~/.m2 directory:
> mvn clean install -DskipTests
> Downloading: 
> http://www.pdfa.org/wp-content/uploads/2011/08/isartor-pdfa-2008-08-13.zip
> javax.net.ssl.SSLHandshakeException: 
> sun.security.validator.ValidatorException: PKIX path building failed: 
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
> valid certification path to requested target
> Java 6 only:
> [ERROR] 
> pdf-box-svn/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocument.java:[205,41]
>  cannot find symbol
> [ERROR] symbol  : class Builder
> [ERROR] location: class java.util.Locale



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Comment Edited] (PDFBOX-3457) Glyphs rendered in wrong width

2016-10-18 Thread JIRA

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

Andreas Lehmkühler edited comment on PDFBOX-3457 at 10/18/16 6:08 PM:
--

Doesn't work for me. Looks like it depends on the font to be used as 
replacement.

!gs-bugzilla693663-p91_part.png!


was (Author: lehmi):
Doesn't work for me. Looks like it depends on the font to be used as 
replacement.

!gs-bugzilla693663-p91_part.jpg!

> Glyphs rendered in wrong width
> --
>
> Key: PDFBOX-3457
> URL: https://issues.apache.org/jira/browse/PDFBOX-3457
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.2, 2.0.3, 2.1.0
>Reporter: Tilman Hausherr
> Attachments: PDFJS-5550.pdf, PDFJS-7523.pdf, 
> gs-bugzilla693663-p9.pdf, gs-bugzilla693663-p91_part.png, overlapping.png
>
>
> Fonts rendered in wrong size. The cause is related to wrong values in the 
> /WIDTHS table and this code in PageDrawer:
> {code}
> // stretch non-embedded glyph if it does not match the width 
> contained in the PDF
> if (!font.isEmbedded())
> {
> float fontWidth = font.getWidthFromFont(code);
> if (fontWidth > 0 && // ignore spaces
> Math.abs(fontWidth - displacement.getX() * 1000) > 
> 0.0001)
> {
> float pdfWidth = displacement.getX() * 1000;
> at.scale(pdfWidth / fontWidth, 1);
> }
> }
> {code}
> I suspect that there must be another condition to skip the stretching, but I 
> didn't find out which one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Comment Edited] (PDFBOX-3457) Glyphs rendered in wrong width

2016-10-18 Thread JIRA

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

Andreas Lehmkühler edited comment on PDFBOX-3457 at 10/18/16 6:06 PM:
--

Doesn't work for me. Looks like it depends on the font to be used as 
replacement.

!gs-bugzilla693663-p91_part.jpg!


was (Author: lehmi):
Doesn't work for me. Looks like it depends on the font to be used as 
replacement.

!gs-bugzilla693663-p91_part.png!

> Glyphs rendered in wrong width
> --
>
> Key: PDFBOX-3457
> URL: https://issues.apache.org/jira/browse/PDFBOX-3457
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.2, 2.0.3, 2.1.0
>Reporter: Tilman Hausherr
> Attachments: PDFJS-5550.pdf, PDFJS-7523.pdf, 
> gs-bugzilla693663-p9.pdf, gs-bugzilla693663-p91_part.jpg, overlapping.png
>
>
> Fonts rendered in wrong size. The cause is related to wrong values in the 
> /WIDTHS table and this code in PageDrawer:
> {code}
> // stretch non-embedded glyph if it does not match the width 
> contained in the PDF
> if (!font.isEmbedded())
> {
> float fontWidth = font.getWidthFromFont(code);
> if (fontWidth > 0 && // ignore spaces
> Math.abs(fontWidth - displacement.getX() * 1000) > 
> 0.0001)
> {
> float pdfWidth = displacement.getX() * 1000;
> at.scale(pdfWidth / fontWidth, 1);
> }
> }
> {code}
> I suspect that there must be another condition to skip the stretching, but I 
> didn't find out which one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Updated] (PDFBOX-3457) Glyphs rendered in wrong width

2016-10-18 Thread JIRA

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

Andreas Lehmkühler updated PDFBOX-3457:
---
Attachment: gs-bugzilla693663-p91_part.jpg

> Glyphs rendered in wrong width
> --
>
> Key: PDFBOX-3457
> URL: https://issues.apache.org/jira/browse/PDFBOX-3457
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.2, 2.0.3, 2.1.0
>Reporter: Tilman Hausherr
> Attachments: PDFJS-5550.pdf, PDFJS-7523.pdf, 
> gs-bugzilla693663-p9.pdf, gs-bugzilla693663-p91_part.jpg, overlapping.png
>
>
> Fonts rendered in wrong size. The cause is related to wrong values in the 
> /WIDTHS table and this code in PageDrawer:
> {code}
> // stretch non-embedded glyph if it does not match the width 
> contained in the PDF
> if (!font.isEmbedded())
> {
> float fontWidth = font.getWidthFromFont(code);
> if (fontWidth > 0 && // ignore spaces
> Math.abs(fontWidth - displacement.getX() * 1000) > 
> 0.0001)
> {
> float pdfWidth = displacement.getX() * 1000;
> at.scale(pdfWidth / fontWidth, 1);
> }
> }
> {code}
> I suspect that there must be another condition to skip the stretching, but I 
> didn't find out which one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (PDFBOX-3532) Java 6 errors

2016-10-18 Thread JIRA

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

Andreas Lehmkühler commented on PDFBOX-3532:


The latest available jdk with unlimited security is 7u79. Are you sure that 
7u80 will solve the issue?

> Java 6 errors
> -
>
> Key: PDFBOX-3532
> URL: https://issues.apache.org/jira/browse/PDFBOX-3532
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 1.8.12, 2.0.3
>Reporter: simon steiner
>Assignee: Tilman Hausherr
> Fix For: 1.8.13, 2.0.4, 2.1.0
>
>
> Under java 6 and 8 and clean ~/.m2 directory:
> mvn clean install -DskipTests
> Downloading: 
> http://www.pdfa.org/wp-content/uploads/2011/08/isartor-pdfa-2008-08-13.zip
> javax.net.ssl.SSLHandshakeException: 
> sun.security.validator.ValidatorException: PKIX path building failed: 
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
> valid certification path to requested target
> Java 6 only:
> [ERROR] 
> pdf-box-svn/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocument.java:[205,41]
>  cannot find symbol
> [ERROR] symbol  : class Builder
> [ERROR] location: class java.util.Locale



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



Build failed in Jenkins: PDFBox 2.0.x » Apache Preflight #257

2016-10-18 Thread Apache Jenkins Server
See 


Changes:

[tilman] PDFBOX-3532: skip loading isartor tests when skipping tests; update 
plugin version

--
[INFO] 
[INFO] 
[INFO] Building Apache Preflight 2.0.4-SNAPSHOT
[INFO] 
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ preflight ---
[TASKS] Scanning folder 
'
 for files matching the pattern '**/*.java' - excludes: 
[TASKS] Found 135 files to scan for tasks
Found 18 open tasks.
[TASKS] Computing warning deltas based on reference build #255
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ preflight ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ preflight 
---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ preflight ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 111 source files to 

[WARNING] bootstrap class path not set in conjunction with -source 1.6
[WARNING] 
:
 Some input files use unchecked or unsafe operations.
[WARNING] 
:
 Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- download-maven-plugin:1.3.0:wget (get-isartor) @ preflight ---
[WARNING] Could not get content
org.apache.maven.wagon.TransferFailedException: 
sun.security.validator.ValidatorException: PKIX path building failed: 
sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
valid certification path to requested target
at 
org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:799)
at 
org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
at 
com.googlecode.download.maven.plugin.internal.WGet.doGet(WGet.java:377)
at 
com.googlecode.download.maven.plugin.internal.WGet.execute(WGet.java:282)
at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at 
org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:136)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:71)
at hudson.remoting.UserRequest.perfor

Build failed in Jenkins: PDFBox 2.0.x #257

2016-10-18 Thread Apache Jenkins Server
See 

Changes:

[tilman] PDFBOX-2852: improve javadoc

[tilman] PDFBOX-3532: skip loading isartor tests when skipping tests; update 
plugin version

--
[...truncated 1758 lines...]
[INFO] 
[INFO] 
[INFO] Building Apache Preflight 2.0.4-SNAPSHOT
[INFO] 
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ preflight ---
[TASKS] Scanning folder 
' for files 
matching the pattern '**/*.java' - excludes: 
[TASKS] Found 135 files to scan for tasks
Found 18 open tasks.
[TASKS] Computing warning deltas based on reference build #255
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ preflight ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ preflight 
---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ preflight ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 111 source files to 

[WARNING] bootstrap class path not set in conjunction with -source 1.6
[WARNING] 
:
 Some input files use unchecked or unsafe operations.
[WARNING] 
:
 Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- download-maven-plugin:1.3.0:wget (get-isartor) @ preflight ---
[WARNING] Could not get content
org.apache.maven.wagon.TransferFailedException: 
sun.security.validator.ValidatorException: PKIX path building failed: 
sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
valid certification path to requested target
at 
org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:799)
at 
org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
at 
com.googlecode.download.maven.plugin.internal.WGet.doGet(WGet.java:377)
at 
com.googlecode.download.maven.plugin.internal.WGet.execute(WGet.java:282)
at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at 
org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:136)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:71)
at hudson.remoting.UserRequest.perform(UserRequest.java

Build failed in Jenkins: PDFBox 1.8.x » Apache Preflight #605

2016-10-18 Thread Apache Jenkins Server
See 


Changes:

[tilman] PDFBOX-3532: skip loading isartor tests when skipping tests; update 
plugin version

--
[INFO] 
[INFO] 
[INFO] Building Apache Preflight 1.8.13-SNAPSHOT
[INFO] 
Downloading: 
http://repo.maven.apache.org/maven2/com/googlecode/maven-download-plugin/download-maven-plugin/1.3.0/download-maven-plugin-1.3.0.pom
Downloaded: 
http://repo.maven.apache.org/maven2/com/googlecode/maven-download-plugin/download-maven-plugin/1.3.0/download-maven-plugin-1.3.0.pom
 (10 KB at 164.3 KB/sec)
Downloading: 
http://repo.maven.apache.org/maven2/com/googlecode/maven-download-plugin/download-maven-plugin/1.3.0/download-maven-plugin-1.3.0.jar
Downloaded: 
http://repo.maven.apache.org/maven2/com/googlecode/maven-download-plugin/download-maven-plugin/1.3.0/download-maven-plugin-1.3.0.jar
 (32 KB at 1555.6 KB/sec)
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ preflight ---
[INFO] 
[INFO] --- cobertura-maven-plugin:2.7:clean (default) @ preflight ---
[INFO] 
[INFO] --- javacc-maven-plugin:2.6:javacc (javacc) @ preflight ---
Java Compiler Compiler Version 5.0 (Parser Generator)
(type "javacc" with no arguments for help)
Reading from file 

 . . .
File "TokenMgrError.java" does not exist.  Will create one.
File "ParseException.java" does not exist.  Will create one.
File "Token.java" does not exist.  Will create one.
File "SimpleCharStream.java" does not exist.  Will create one.
Parser generated successfully.
Java Compiler Compiler Version 5.0 (Parser Generator)
(type "javacc" with no arguments for help)
Reading from file 

 . . .
Warning: Line 172, Column 3: Non-ASCII characters used in regular expression.
Please make sure you use the correct Reader when you create the parser, one 
that can handle your character set.
File "TokenMgrError.java" does not exist.  Will create one.
File "ParseException.java" does not exist.  Will create one.
File "Token.java" does not exist.  Will create one.
File "SimpleCharStream.java" does not exist.  Will create one.
Parser generated with 0 errors and 1 warnings.
[INFO] Processed 2 grammars
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ preflight ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ preflight 
---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ preflight ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 134 source files to 

[WARNING] 
:
 

 uses or overrides a deprecated API.
[WARNING] 
:
 Recompile with -Xlint:deprecation for details.
[WARNING] 
:
 Some input files use unchecked or unsafe operations.
[WARNING] 
:
 Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- download-maven-plugin:1.3.0:wget (get-isartor) @ preflight ---
[WARNING] Could not get content
org.apache.maven.wagon.TransferFailedException: 
sun.security.validator.ValidatorException: PKIX path building failed: 
sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
valid certification path to requested target
at 
org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:799)
at 
org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
at 
com.googlecode.download.maven.plugin.internal.WGet.doGet(WGet.java:377)
a

Build failed in Jenkins: PDFBox 1.8.x #605

2016-10-18 Thread Apache Jenkins Server
See 

Changes:

[tilman] PDFBOX-3532: skip loading isartor tests when skipping tests; update 
plugin version

--
[...truncated 2003 lines...]
(type "javacc" with no arguments for help)
Reading from file 

 . . .
Warning: Line 172, Column 3: Non-ASCII characters used in regular expression.
Please make sure you use the correct Reader when you create the parser, one 
that can handle your character set.
File "TokenMgrError.java" does not exist.  Will create one.
File "ParseException.java" does not exist.  Will create one.
File "Token.java" does not exist.  Will create one.
File "SimpleCharStream.java" does not exist.  Will create one.
Parser generated with 0 errors and 1 warnings.
[INFO] Processed 2 grammars
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ preflight ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ preflight 
---
[INFO] Using 'ISO-8859-1' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ preflight ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 134 source files to 

[WARNING] 
:
 

 uses or overrides a deprecated API.
[WARNING] 
:
 Recompile with -Xlint:deprecation for details.
[WARNING] 
:
 Some input files use unchecked or unsafe operations.
[WARNING] 
:
 Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- download-maven-plugin:1.3.0:wget (get-isartor) @ preflight ---
[WARNING] Could not get content
org.apache.maven.wagon.TransferFailedException: 
sun.security.validator.ValidatorException: PKIX path building failed: 
sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
valid certification path to requested target
at 
org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:799)
at 
org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
at 
com.googlecode.download.maven.plugin.internal.WGet.doGet(WGet.java:377)
at 
com.googlecode.download.maven.plugin.internal.WGet.execute(WGet.java:282)
at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at 
org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun

Build failed in Jenkins: PDFBox-trunk » Apache Preflight #3088

2016-10-18 Thread Apache Jenkins Server
See 


Changes:

[tilman] PDFBOX-3532: skip loading isartor tests when skipping tests; update 
plugin version

--
[INFO] 
[INFO] 
[INFO] Building Apache Preflight 2.1.0-SNAPSHOT
[INFO] 
Downloading: 
http://repo.maven.apache.org/maven2/com/googlecode/maven-download-plugin/download-maven-plugin/1.3.0/download-maven-plugin-1.3.0.pom
Downloaded: 
http://repo.maven.apache.org/maven2/com/googlecode/maven-download-plugin/download-maven-plugin/1.3.0/download-maven-plugin-1.3.0.pom
 (10 KB at 107.7 KB/sec)
Downloading: 
http://repo.maven.apache.org/maven2/com/googlecode/maven-download-plugin/download-maven-plugin/1.3.0/download-maven-plugin-1.3.0.jar
Downloaded: 
http://repo.maven.apache.org/maven2/com/googlecode/maven-download-plugin/download-maven-plugin/1.3.0/download-maven-plugin-1.3.0.jar
 (32 KB at 1481.5 KB/sec)
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ preflight ---
[TASKS] Scanning folder 
' 
for files matching the pattern '**/*.java' - excludes: 
[TASKS] Found 135 files to scan for tasks
Found 18 open tasks.
[TASKS] Computing warning deltas based on reference build #3086
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ preflight ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ preflight 
---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ preflight ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 111 source files to 

[WARNING] bootstrap class path not set in conjunction with -source 1.6
[WARNING] 
:
 Some input files use unchecked or unsafe operations.
[WARNING] 
:
 Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- download-maven-plugin:1.3.0:wget (get-isartor) @ preflight ---
[WARNING] Could not get content
org.apache.maven.wagon.TransferFailedException: 
sun.security.validator.ValidatorException: PKIX path building failed: 
sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
valid certification path to requested target
at 
org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:799)
at 
org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
at 
com.googlecode.download.maven.plugin.internal.WGet.doGet(WGet.java:377)
at 
com.googlecode.download.maven.plugin.internal.WGet.execute(WGet.java:282)
at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at 
org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
at 
org.codehaus.plexus.clas

Build failed in Jenkins: PDFBox-trunk #3088

2016-10-18 Thread Apache Jenkins Server
See 

Changes:

[tilman] PDFBOX-2852: improve javadoc

[tilman] PDFBOX-3532: skip loading isartor tests when skipping tests; update 
plugin version

--
[...truncated 1758 lines...]
Downloaded: 
http://repo.maven.apache.org/maven2/com/googlecode/maven-download-plugin/download-maven-plugin/1.3.0/download-maven-plugin-1.3.0.pom
 (10 KB at 107.7 KB/sec)
Downloading: 
http://repo.maven.apache.org/maven2/com/googlecode/maven-download-plugin/download-maven-plugin/1.3.0/download-maven-plugin-1.3.0.jar
Downloaded: 
http://repo.maven.apache.org/maven2/com/googlecode/maven-download-plugin/download-maven-plugin/1.3.0/download-maven-plugin-1.3.0.jar
 (32 KB at 1481.5 KB/sec)
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ preflight ---
[TASKS] Scanning folder 
' for files 
matching the pattern '**/*.java' - excludes: 
[TASKS] Found 135 files to scan for tasks
Found 18 open tasks.
[TASKS] Computing warning deltas based on reference build #3086
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ preflight ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ preflight 
---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ preflight ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 111 source files to 

[WARNING] bootstrap class path not set in conjunction with -source 1.6
[WARNING] 
:
 Some input files use unchecked or unsafe operations.
[WARNING] 
:
 Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- download-maven-plugin:1.3.0:wget (get-isartor) @ preflight ---
[WARNING] Could not get content
org.apache.maven.wagon.TransferFailedException: 
sun.security.validator.ValidatorException: PKIX path building failed: 
sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
valid certification path to requested target
at 
org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:799)
at 
org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
at 
com.googlecode.download.maven.plugin.internal.WGet.doGet(WGet.java:377)
at 
com.googlecode.download.maven.plugin.internal.WGet.execute(WGet.java:282)
at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at 
org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java

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

2016-10-18 Thread ASF subversion and git services (JIRA)

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

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

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

PDFBOX-2852: improve javadoc

> 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, XMPSchema.java.patch, 
> explicit_array_creation.patch, fix_javadoc.patch, foreach.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.3.4#6332)

-
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)

2016-10-18 Thread ASF subversion and git services (JIRA)

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

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

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

PDFBOX-2852: improve javadoc

> 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, XMPSchema.java.patch, 
> explicit_array_creation.patch, fix_javadoc.patch, foreach.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.3.4#6332)

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



[jira] [Commented] (PDFBOX-3532) Java 6 errors

2016-10-18 Thread Tilman Hausherr (JIRA)

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

Tilman Hausherr commented on PDFBOX-3532:
-

[~lehmi] can you do the above? Or update to a newer JDK for Jenkins? Current 
one is 1.7.0_79 according to
https://builds.apache.org/view/All/job/PDFBox-trunk/3087/consoleText
Latest JDK7 download is 7u80.
http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html#jdk-7u80-oth-JPR


> Java 6 errors
> -
>
> Key: PDFBOX-3532
> URL: https://issues.apache.org/jira/browse/PDFBOX-3532
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 1.8.12, 2.0.3
>Reporter: simon steiner
>Assignee: Tilman Hausherr
> Fix For: 1.8.13, 2.0.4, 2.1.0
>
>
> Under java 6 and 8 and clean ~/.m2 directory:
> mvn clean install -DskipTests
> Downloading: 
> http://www.pdfa.org/wp-content/uploads/2011/08/isartor-pdfa-2008-08-13.zip
> javax.net.ssl.SSLHandshakeException: 
> sun.security.validator.ValidatorException: PKIX path building failed: 
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
> valid certification path to requested target
> Java 6 only:
> [ERROR] 
> pdf-box-svn/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocument.java:[205,41]
>  cannot find symbol
> [ERROR] symbol  : class Builder
> [ERROR] location: class java.util.Locale



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (PDFBOX-3532) Java 6 errors

2016-10-18 Thread ASF subversion and git services (JIRA)

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

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

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

PDFBOX-3532: skip loading isartor tests when skipping tests; update plugin 
version

> Java 6 errors
> -
>
> Key: PDFBOX-3532
> URL: https://issues.apache.org/jira/browse/PDFBOX-3532
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 1.8.12, 2.0.3
>Reporter: simon steiner
>Assignee: Tilman Hausherr
> Fix For: 1.8.13, 2.0.4, 2.1.0
>
>
> Under java 6 and 8 and clean ~/.m2 directory:
> mvn clean install -DskipTests
> Downloading: 
> http://www.pdfa.org/wp-content/uploads/2011/08/isartor-pdfa-2008-08-13.zip
> javax.net.ssl.SSLHandshakeException: 
> sun.security.validator.ValidatorException: PKIX path building failed: 
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
> valid certification path to requested target
> Java 6 only:
> [ERROR] 
> pdf-box-svn/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocument.java:[205,41]
>  cannot find symbol
> [ERROR] symbol  : class Builder
> [ERROR] location: class java.util.Locale



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (PDFBOX-3532) Java 6 errors

2016-10-18 Thread ASF subversion and git services (JIRA)

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

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

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

PDFBOX-3532: skip loading isartor tests when skipping tests; update plugin 
version

> Java 6 errors
> -
>
> Key: PDFBOX-3532
> URL: https://issues.apache.org/jira/browse/PDFBOX-3532
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 1.8.12, 2.0.3
>Reporter: simon steiner
>Assignee: Tilman Hausherr
> Fix For: 1.8.13, 2.0.4, 2.1.0
>
>
> Under java 6 and 8 and clean ~/.m2 directory:
> mvn clean install -DskipTests
> Downloading: 
> http://www.pdfa.org/wp-content/uploads/2011/08/isartor-pdfa-2008-08-13.zip
> javax.net.ssl.SSLHandshakeException: 
> sun.security.validator.ValidatorException: PKIX path building failed: 
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
> valid certification path to requested target
> Java 6 only:
> [ERROR] 
> pdf-box-svn/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocument.java:[205,41]
>  cannot find symbol
> [ERROR] symbol  : class Builder
> [ERROR] location: class java.util.Locale



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (PDFBOX-3532) Java 6 errors

2016-10-18 Thread ASF subversion and git services (JIRA)

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

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

Commit 1765472 from [~tilman] in branch 'pdfbox/branches/1.8'
[ https://svn.apache.org/r1765472 ]

PDFBOX-3532: skip loading isartor tests when skipping tests; update plugin 
version

> Java 6 errors
> -
>
> Key: PDFBOX-3532
> URL: https://issues.apache.org/jira/browse/PDFBOX-3532
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 1.8.12, 2.0.3
>Reporter: simon steiner
>Assignee: Tilman Hausherr
> Fix For: 1.8.13, 2.0.4, 2.1.0
>
>
> Under java 6 and 8 and clean ~/.m2 directory:
> mvn clean install -DskipTests
> Downloading: 
> http://www.pdfa.org/wp-content/uploads/2011/08/isartor-pdfa-2008-08-13.zip
> javax.net.ssl.SSLHandshakeException: 
> sun.security.validator.ValidatorException: PKIX path building failed: 
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
> valid certification path to requested target
> Java 6 only:
> [ERROR] 
> pdf-box-svn/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocument.java:[205,41]
>  cannot find symbol
> [ERROR] symbol  : class Builder
> [ERROR] location: class java.util.Locale



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (PDFBOX-3457) Glyphs rendered in wrong width

2016-10-18 Thread Tilman Hausherr (JIRA)

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

Tilman Hausherr commented on PDFBOX-3457:
-

It works. Differences are either almost invisible or correct.

> Glyphs rendered in wrong width
> --
>
> Key: PDFBOX-3457
> URL: https://issues.apache.org/jira/browse/PDFBOX-3457
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.2, 2.0.3, 2.1.0
>Reporter: Tilman Hausherr
> Attachments: PDFJS-5550.pdf, PDFJS-7523.pdf, 
> gs-bugzilla693663-p9.pdf, overlapping.png
>
>
> Fonts rendered in wrong size. The cause is related to wrong values in the 
> /WIDTHS table and this code in PageDrawer:
> {code}
> // stretch non-embedded glyph if it does not match the width 
> contained in the PDF
> if (!font.isEmbedded())
> {
> float fontWidth = font.getWidthFromFont(code);
> if (fontWidth > 0 && // ignore spaces
> Math.abs(fontWidth - displacement.getX() * 1000) > 
> 0.0001)
> {
> float pdfWidth = displacement.getX() * 1000;
> at.scale(pdfWidth / fontWidth, 1);
> }
> }
> {code}
> I suspect that there must be another condition to skip the stretching, but I 
> didn't find out which one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Issue Comment Deleted] (PDFBOX-3457) Glyphs rendered in wrong width

2016-10-18 Thread Tilman Hausherr (JIRA)

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

Tilman Hausherr updated PDFBOX-3457:

Comment: was deleted

(was: I'll do it tonight.)

> Glyphs rendered in wrong width
> --
>
> Key: PDFBOX-3457
> URL: https://issues.apache.org/jira/browse/PDFBOX-3457
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.2, 2.0.3, 2.1.0
>Reporter: Tilman Hausherr
> Attachments: PDFJS-5550.pdf, PDFJS-7523.pdf, 
> gs-bugzilla693663-p9.pdf, overlapping.png
>
>
> Fonts rendered in wrong size. The cause is related to wrong values in the 
> /WIDTHS table and this code in PageDrawer:
> {code}
> // stretch non-embedded glyph if it does not match the width 
> contained in the PDF
> if (!font.isEmbedded())
> {
> float fontWidth = font.getWidthFromFont(code);
> if (fontWidth > 0 && // ignore spaces
> Math.abs(fontWidth - displacement.getX() * 1000) > 
> 0.0001)
> {
> float pdfWidth = displacement.getX() * 1000;
> at.scale(pdfWidth / fontWidth, 1);
> }
> }
> {code}
> I suspect that there must be another condition to skip the stretching, but I 
> didn't find out which one.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (PDFBOX-3532) Java 6 errors

2016-10-18 Thread simon steiner (JIRA)

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

simon steiner commented on PDFBOX-3532:
---

Works if i copy /etc/ssl/certs/java/cacerts to jdk1.6.0_xx/jre/lib/security

> Java 6 errors
> -
>
> Key: PDFBOX-3532
> URL: https://issues.apache.org/jira/browse/PDFBOX-3532
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 1.8.12, 2.0.3
>Reporter: simon steiner
>Assignee: Tilman Hausherr
> Fix For: 1.8.13, 2.0.4, 2.1.0
>
>
> Under java 6 and 8 and clean ~/.m2 directory:
> mvn clean install -DskipTests
> Downloading: 
> http://www.pdfa.org/wp-content/uploads/2011/08/isartor-pdfa-2008-08-13.zip
> javax.net.ssl.SSLHandshakeException: 
> sun.security.validator.ValidatorException: PKIX path building failed: 
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
> valid certification path to requested target
> Java 6 only:
> [ERROR] 
> pdf-box-svn/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocument.java:[205,41]
>  cannot find symbol
> [ERROR] symbol  : class Builder
> [ERROR] location: class java.util.Locale



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Comment Edited] (PDFBOX-3532) Java 6 errors

2016-10-18 Thread simon steiner (JIRA)

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

simon steiner edited comment on PDFBOX-3532 at 10/18/16 8:02 AM:
-

Using Java 7 and 8 works but 6 doesnt work since they dont have latest https 
root certs i guess


was (Author: ssteiner1):
Using latest JDKs works but older ones dont work since they dont have latest 
https root certs i guess

> Java 6 errors
> -
>
> Key: PDFBOX-3532
> URL: https://issues.apache.org/jira/browse/PDFBOX-3532
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 1.8.12, 2.0.3
>Reporter: simon steiner
>Assignee: Tilman Hausherr
> Fix For: 1.8.13, 2.0.4, 2.1.0
>
>
> Under java 6 and 8 and clean ~/.m2 directory:
> mvn clean install -DskipTests
> Downloading: 
> http://www.pdfa.org/wp-content/uploads/2011/08/isartor-pdfa-2008-08-13.zip
> javax.net.ssl.SSLHandshakeException: 
> sun.security.validator.ValidatorException: PKIX path building failed: 
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
> valid certification path to requested target
> Java 6 only:
> [ERROR] 
> pdf-box-svn/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocument.java:[205,41]
>  cannot find symbol
> [ERROR] symbol  : class Builder
> [ERROR] location: class java.util.Locale



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (PDFBOX-3532) Java 6 errors

2016-10-18 Thread simon steiner (JIRA)

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

simon steiner commented on PDFBOX-3532:
---

Using latest JDKs works but older ones dont work since they dont have latest 
https root certs i guess

> Java 6 errors
> -
>
> Key: PDFBOX-3532
> URL: https://issues.apache.org/jira/browse/PDFBOX-3532
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 1.8.12, 2.0.3
>Reporter: simon steiner
>Assignee: Tilman Hausherr
> Fix For: 1.8.13, 2.0.4, 2.1.0
>
>
> Under java 6 and 8 and clean ~/.m2 directory:
> mvn clean install -DskipTests
> Downloading: 
> http://www.pdfa.org/wp-content/uploads/2011/08/isartor-pdfa-2008-08-13.zip
> javax.net.ssl.SSLHandshakeException: 
> sun.security.validator.ValidatorException: PKIX path building failed: 
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
> valid certification path to requested target
> Java 6 only:
> [ERROR] 
> pdf-box-svn/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/TestPDDocument.java:[205,41]
>  cannot find symbol
> [ERROR] symbol  : class Builder
> [ERROR] location: class java.util.Locale



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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