[jira] [Resolved] (PDFBOX-5118) Can render PDF with PDFRenderer but not with PageRenderer

2021-03-07 Thread Daniel Migowski (Jira)


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

Daniel Migowski resolved PDFBOX-5118.
-
Resolution: Fixed

Problem arose due to incorrect usage of API.

> Can render PDF with PDFRenderer but not with PageRenderer
> -
>
> Key: PDFBOX-5118
> URL: https://issues.apache.org/jira/browse/PDFBOX-5118
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.20
>Reporter: Daniel Migowski
>Priority: Major
> Attachments: SimplePDFPageRenderer.java, SimplePDFRenderer.java
>
>
> I get the following NPE when I try to renderer a PDF with the PageRenderer 
> (See SimplePDFPageRenderer.java) but it works when I use PDFRenderer (See 
> SimplePDFRenderer.java). The Exception is:
> {{Exception in thread "main" java.lang.NullPointerExceptionException in 
> thread "main" java.lang.NullPointerException at 
> org.apache.pdfbox.rendering.PageDrawer.isHiddenOCG(PageDrawer.java:1907) at 
> org.apache.pdfbox.rendering.PageDrawer.beginMarkedContentSequence(PageDrawer.java:1876)
>  at 
> org.apache.pdfbox.contentstream.operator.markedcontent.BeginMarkedContentSequenceWithProperties.process(BeginMarkedContentSequenceWithProperties.java:52)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:932)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:510)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:484)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:156)
>  at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:271) at 
> de.ikoffice.pdf.SimplePDFPageRenderer.main(SimplePDFPageRenderer.java:62)}}
> The PDF can be found at: 
> [https://www.ikoffice.de/temp/DaumeBriefpapierDefekt.pdf]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Commented] (PDFBOX-5120) Need to do strange stuff to create my own PageDrawer Parameters

2021-03-07 Thread Daniel Migowski (Jira)


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

Daniel Migowski commented on PDFBOX-5120:
-

Oh... it looks like using PDFRenderer.renderPageToGraphics would allow me 
everything I need. I will investigate this first, thanks.

> Need to do strange stuff to create my own PageDrawer Parameters
> ---
>
> Key: PDFBOX-5120
> URL: https://issues.apache.org/jira/browse/PDFBOX-5120
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Reporter: Daniel Migowski
>Priority: Major
>
> Currently using the following function to create my PageDrawer Parameters:
> {{
> private static PageDrawerParameters createPageDrawerParameters(PDPage page) {
> Class clazz = PageDrawerParameters.class;
> Constructor c;
> try {
> c = clazz.getDeclaredConstructor(PDFRenderer.class, PDPage.class, 
> boolean.class, 
>RenderDestination.class, 
> RenderingHints.class);
> if( !c.isAccessible() ) {
> c.setAccessible(true);
> }
> // TODO: Play with other rendering hints
> Map hints = new HashMap<>();
> hints.put(RenderingHints.KEY_ALPHA_INTERPOLATION, 
> RenderingHints.VALUE_ALPHA_INTERPOLATION_SPEED);
> hints.put(RenderingHints.KEY_ANTIALIASING, 
> RenderingHints.VALUE_ANTIALIAS_ON);
> hints.put(RenderingHints.KEY_COLOR_RENDERING, 
> RenderingHints.VALUE_COLOR_RENDER_SPEED);
> hints.put(RenderingHints.KEY_DITHERING, 
> RenderingHints.VALUE_DITHER_DISABLE);
> hints.put(RenderingHints.KEY_FRACTIONALMETRICS, 
> RenderingHints.VALUE_FRACTIONALMETRICS_ON);
> hints.put(RenderingHints.KEY_INTERPOLATION, 
> RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR);
> hints.put(RenderingHints.KEY_RENDERING, 
> RenderingHints.VALUE_RENDER_SPEED);
> hints.put(RenderingHints.KEY_TEXT_ANTIALIASING, 
> RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
> return c.newInstance(null,page,true,RenderDestination.VIEW,new 
> RenderingHints(hints));
> } catch (Exception e) {
> throw new RuntimeException("Could not instantiate 
> PageDrawerParameters.",e);
> }
> }
> }}
> Isn't there a better way to achive this? Why isn't the constructor public at 
> all? I need this to create my own PageDrawer because I am writing a PDF 
> Viewer GUI in SWT that uses PDFBox for the rendering and to render I thought 
> it would be nice to be able to use the PageDrawer.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[GitHub] [pdfbox] valerybokov commented on pull request #107: potential memory leaks and small performance improvements

2021-03-07 Thread GitBox


valerybokov commented on pull request #107:
URL: https://github.com/apache/pdfbox/pull/107#issuecomment-792553474


   For a FileSystemFontProvider.readTrueTypeFont. If will be exception from 
ttc.getFontByName then ttc will not be closed. Same for getOTFFont.



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



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



[jira] [Comment Edited] (PDFBOX-5120) Need to do strange stuff to create my own PageDrawer Parameters

2021-03-07 Thread Daniel Migowski (Jira)


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

Daniel Migowski edited comment on PDFBOX-5120 at 3/8/21, 7:47 AM:
--

I need them to create the PageDrawer:

// the end-user may provide a custom PageDrawer
PageDrawerParameters parameters = createPageDrawerParameters(page);
PageDrawer drawer = new PageDrawer(parameters);
drawer.drawPage(g, page.getCropBox());

Maybe I abused this a bit, but how else am I supposed to draw just part of the 
page onto a Graphics2D object?


was (Author: dmigowski):
I need them to create the PageDrawer:

// the end-user may provide a custom PageDrawer
PageDrawerParameters parameters = createPageDrawerParameters(page);
PageDrawer drawer = new PageDrawer(parameters);
drawer.drawPage(g, page.getCropBox());

Maybe I abused this a bit, but how else am I supposed to draw just part of the 
page onto a GraphicsContext?

> Need to do strange stuff to create my own PageDrawer Parameters
> ---
>
> Key: PDFBOX-5120
> URL: https://issues.apache.org/jira/browse/PDFBOX-5120
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Reporter: Daniel Migowski
>Priority: Major
>
> Currently using the following function to create my PageDrawer Parameters:
> {{
> private static PageDrawerParameters createPageDrawerParameters(PDPage page) {
> Class clazz = PageDrawerParameters.class;
> Constructor c;
> try {
> c = clazz.getDeclaredConstructor(PDFRenderer.class, PDPage.class, 
> boolean.class, 
>RenderDestination.class, 
> RenderingHints.class);
> if( !c.isAccessible() ) {
> c.setAccessible(true);
> }
> // TODO: Play with other rendering hints
> Map hints = new HashMap<>();
> hints.put(RenderingHints.KEY_ALPHA_INTERPOLATION, 
> RenderingHints.VALUE_ALPHA_INTERPOLATION_SPEED);
> hints.put(RenderingHints.KEY_ANTIALIASING, 
> RenderingHints.VALUE_ANTIALIAS_ON);
> hints.put(RenderingHints.KEY_COLOR_RENDERING, 
> RenderingHints.VALUE_COLOR_RENDER_SPEED);
> hints.put(RenderingHints.KEY_DITHERING, 
> RenderingHints.VALUE_DITHER_DISABLE);
> hints.put(RenderingHints.KEY_FRACTIONALMETRICS, 
> RenderingHints.VALUE_FRACTIONALMETRICS_ON);
> hints.put(RenderingHints.KEY_INTERPOLATION, 
> RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR);
> hints.put(RenderingHints.KEY_RENDERING, 
> RenderingHints.VALUE_RENDER_SPEED);
> hints.put(RenderingHints.KEY_TEXT_ANTIALIASING, 
> RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
> return c.newInstance(null,page,true,RenderDestination.VIEW,new 
> RenderingHints(hints));
> } catch (Exception e) {
> throw new RuntimeException("Could not instantiate 
> PageDrawerParameters.",e);
> }
> }
> }}
> Isn't there a better way to achive this? Why isn't the constructor public at 
> all? I need this to create my own PageDrawer because I am writing a PDF 
> Viewer GUI in SWT that uses PDFBox for the rendering and to render I thought 
> it would be nice to be able to use the PageDrawer.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Commented] (PDFBOX-5120) Need to do strange stuff to create my own PageDrawer Parameters

2021-03-07 Thread Daniel Migowski (Jira)


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

Daniel Migowski commented on PDFBOX-5120:
-

I need them to create the PageDrawer:

// the end-user may provide a custom PageDrawer
PageDrawerParameters parameters = createPageDrawerParameters(page);
PageDrawer drawer = new PageDrawer(parameters);
drawer.drawPage(g, page.getCropBox());

Maybe I abused this a bit, but how else am I supposed to draw just part of the 
page onto a GraphicsContext?

> Need to do strange stuff to create my own PageDrawer Parameters
> ---
>
> Key: PDFBOX-5120
> URL: https://issues.apache.org/jira/browse/PDFBOX-5120
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Reporter: Daniel Migowski
>Priority: Major
>
> Currently using the following function to create my PageDrawer Parameters:
> {{
> private static PageDrawerParameters createPageDrawerParameters(PDPage page) {
> Class clazz = PageDrawerParameters.class;
> Constructor c;
> try {
> c = clazz.getDeclaredConstructor(PDFRenderer.class, PDPage.class, 
> boolean.class, 
>RenderDestination.class, 
> RenderingHints.class);
> if( !c.isAccessible() ) {
> c.setAccessible(true);
> }
> // TODO: Play with other rendering hints
> Map hints = new HashMap<>();
> hints.put(RenderingHints.KEY_ALPHA_INTERPOLATION, 
> RenderingHints.VALUE_ALPHA_INTERPOLATION_SPEED);
> hints.put(RenderingHints.KEY_ANTIALIASING, 
> RenderingHints.VALUE_ANTIALIAS_ON);
> hints.put(RenderingHints.KEY_COLOR_RENDERING, 
> RenderingHints.VALUE_COLOR_RENDER_SPEED);
> hints.put(RenderingHints.KEY_DITHERING, 
> RenderingHints.VALUE_DITHER_DISABLE);
> hints.put(RenderingHints.KEY_FRACTIONALMETRICS, 
> RenderingHints.VALUE_FRACTIONALMETRICS_ON);
> hints.put(RenderingHints.KEY_INTERPOLATION, 
> RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR);
> hints.put(RenderingHints.KEY_RENDERING, 
> RenderingHints.VALUE_RENDER_SPEED);
> hints.put(RenderingHints.KEY_TEXT_ANTIALIASING, 
> RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
> return c.newInstance(null,page,true,RenderDestination.VIEW,new 
> RenderingHints(hints));
> } catch (Exception e) {
> throw new RuntimeException("Could not instantiate 
> PageDrawerParameters.",e);
> }
> }
> }}
> Isn't there a better way to achive this? Why isn't the constructor public at 
> all? I need this to create my own PageDrawer because I am writing a PDF 
> Viewer GUI in SWT that uses PDFBox for the rendering and to render I thought 
> it would be nice to be able to use the PageDrawer.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Commented] (PDFBOX-5120) Need to do strange stuff to create my own PageDrawer Parameters

2021-03-07 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr commented on PDFBOX-5120:
-

Is this all about passing your own rendering hints? There is a method 
{{setRenderingHints()}}.

> Need to do strange stuff to create my own PageDrawer Parameters
> ---
>
> Key: PDFBOX-5120
> URL: https://issues.apache.org/jira/browse/PDFBOX-5120
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Reporter: Daniel Migowski
>Priority: Major
>
> Currently using the following function to create my PageDrawer Parameters:
> {{
> private static PageDrawerParameters createPageDrawerParameters(PDPage page) {
> Class clazz = PageDrawerParameters.class;
> Constructor c;
> try {
> c = clazz.getDeclaredConstructor(PDFRenderer.class, PDPage.class, 
> boolean.class, 
>RenderDestination.class, 
> RenderingHints.class);
> if( !c.isAccessible() ) {
> c.setAccessible(true);
> }
> // TODO: Play with other rendering hints
> Map hints = new HashMap<>();
> hints.put(RenderingHints.KEY_ALPHA_INTERPOLATION, 
> RenderingHints.VALUE_ALPHA_INTERPOLATION_SPEED);
> hints.put(RenderingHints.KEY_ANTIALIASING, 
> RenderingHints.VALUE_ANTIALIAS_ON);
> hints.put(RenderingHints.KEY_COLOR_RENDERING, 
> RenderingHints.VALUE_COLOR_RENDER_SPEED);
> hints.put(RenderingHints.KEY_DITHERING, 
> RenderingHints.VALUE_DITHER_DISABLE);
> hints.put(RenderingHints.KEY_FRACTIONALMETRICS, 
> RenderingHints.VALUE_FRACTIONALMETRICS_ON);
> hints.put(RenderingHints.KEY_INTERPOLATION, 
> RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR);
> hints.put(RenderingHints.KEY_RENDERING, 
> RenderingHints.VALUE_RENDER_SPEED);
> hints.put(RenderingHints.KEY_TEXT_ANTIALIASING, 
> RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
> return c.newInstance(null,page,true,RenderDestination.VIEW,new 
> RenderingHints(hints));
> } catch (Exception e) {
> throw new RuntimeException("Could not instantiate 
> PageDrawerParameters.",e);
> }
> }
> }}
> Isn't there a better way to achive this? Why isn't the constructor public at 
> all? I need this to create my own PageDrawer because I am writing a PDF 
> Viewer GUI in SWT that uses PDFBox for the rendering and to render I thought 
> it would be nice to be able to use the PageDrawer.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Comment Edited] (PDFBOX-5120) Need to do strange stuff to create my own PageDrawer Parameters

2021-03-07 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr edited comment on PDFBOX-5120 at 3/8/21, 7:39 AM:
--

Is this all about passing your own rendering hints? There is a method 
{{PDFRenderer.setRenderingHints()}}.


was (Author: tilman):
Is this all about passing your own rendering hints? There is a method 
{{setRenderingHints()}}.

> Need to do strange stuff to create my own PageDrawer Parameters
> ---
>
> Key: PDFBOX-5120
> URL: https://issues.apache.org/jira/browse/PDFBOX-5120
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Reporter: Daniel Migowski
>Priority: Major
>
> Currently using the following function to create my PageDrawer Parameters:
> {{
> private static PageDrawerParameters createPageDrawerParameters(PDPage page) {
> Class clazz = PageDrawerParameters.class;
> Constructor c;
> try {
> c = clazz.getDeclaredConstructor(PDFRenderer.class, PDPage.class, 
> boolean.class, 
>RenderDestination.class, 
> RenderingHints.class);
> if( !c.isAccessible() ) {
> c.setAccessible(true);
> }
> // TODO: Play with other rendering hints
> Map hints = new HashMap<>();
> hints.put(RenderingHints.KEY_ALPHA_INTERPOLATION, 
> RenderingHints.VALUE_ALPHA_INTERPOLATION_SPEED);
> hints.put(RenderingHints.KEY_ANTIALIASING, 
> RenderingHints.VALUE_ANTIALIAS_ON);
> hints.put(RenderingHints.KEY_COLOR_RENDERING, 
> RenderingHints.VALUE_COLOR_RENDER_SPEED);
> hints.put(RenderingHints.KEY_DITHERING, 
> RenderingHints.VALUE_DITHER_DISABLE);
> hints.put(RenderingHints.KEY_FRACTIONALMETRICS, 
> RenderingHints.VALUE_FRACTIONALMETRICS_ON);
> hints.put(RenderingHints.KEY_INTERPOLATION, 
> RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR);
> hints.put(RenderingHints.KEY_RENDERING, 
> RenderingHints.VALUE_RENDER_SPEED);
> hints.put(RenderingHints.KEY_TEXT_ANTIALIASING, 
> RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
> return c.newInstance(null,page,true,RenderDestination.VIEW,new 
> RenderingHints(hints));
> } catch (Exception e) {
> throw new RuntimeException("Could not instantiate 
> PageDrawerParameters.",e);
> }
> }
> }}
> Isn't there a better way to achive this? Why isn't the constructor public at 
> all? I need this to create my own PageDrawer because I am writing a PDF 
> Viewer GUI in SWT that uses PDFBox for the rendering and to render I thought 
> it would be nice to be able to use the PageDrawer.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Updated] (PDFBOX-5120) Need to do strange stuff to create my own PageDrawer Parameters

2021-03-07 Thread Daniel Migowski (Jira)


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

Daniel Migowski updated PDFBOX-5120:

Description: 
Currently using the following function to create my PageDrawer Parameters:

{{
private static PageDrawerParameters createPageDrawerParameters(PDPage page) {
Class clazz = PageDrawerParameters.class;
Constructor c;
try {
c = clazz.getDeclaredConstructor(PDFRenderer.class, PDPage.class, 
boolean.class, 
 RenderDestination.class, 
RenderingHints.class);
if( !c.isAccessible() ) {
c.setAccessible(true);
}
// TODO: Play with other rendering hints
Map hints = new HashMap<>();
hints.put(RenderingHints.KEY_ALPHA_INTERPOLATION, 
RenderingHints.VALUE_ALPHA_INTERPOLATION_SPEED);
hints.put(RenderingHints.KEY_ANTIALIASING, 
RenderingHints.VALUE_ANTIALIAS_ON);
hints.put(RenderingHints.KEY_COLOR_RENDERING, 
RenderingHints.VALUE_COLOR_RENDER_SPEED);
hints.put(RenderingHints.KEY_DITHERING, 
RenderingHints.VALUE_DITHER_DISABLE);
hints.put(RenderingHints.KEY_FRACTIONALMETRICS, 
RenderingHints.VALUE_FRACTIONALMETRICS_ON);
hints.put(RenderingHints.KEY_INTERPOLATION, 
RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR);
hints.put(RenderingHints.KEY_RENDERING, 
RenderingHints.VALUE_RENDER_SPEED);
hints.put(RenderingHints.KEY_TEXT_ANTIALIASING, 
RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
return c.newInstance(null,page,true,RenderDestination.VIEW,new 
RenderingHints(hints));
} catch (Exception e) {
throw new RuntimeException("Could not instantiate 
PageDrawerParameters.",e);
}
}
}}

Isn't there a better way to achive this? Why isn't the constructor public at 
all? I need this to create my own PageDrawer because I am writing a PDF Viewer 
GUI in SWT that uses PDFBox for the rendering and to render I thought it would 
be nice to be able to use the PageDrawer.

  was:
Currently using the following function to create my PageDrawer Parameters:

{{private static PageDrawerParameters createPageDrawerParameters(PDPage 
page) {
Class clazz = PageDrawerParameters.class;
Constructor c;
try {
c = clazz.getDeclaredConstructor(PDFRenderer.class, PDPage.class, 
boolean.class, 
 RenderDestination.class, 
RenderingHints.class);
if( !c.isAccessible() ) {
c.setAccessible(true);
}
// TODO: Play with other rendering hints
Map hints = new HashMap<>();
hints.put(RenderingHints.KEY_ALPHA_INTERPOLATION, 
RenderingHints.VALUE_ALPHA_INTERPOLATION_SPEED);
hints.put(RenderingHints.KEY_ANTIALIASING, 
RenderingHints.VALUE_ANTIALIAS_ON);
hints.put(RenderingHints.KEY_COLOR_RENDERING, 
RenderingHints.VALUE_COLOR_RENDER_SPEED);
hints.put(RenderingHints.KEY_DITHERING, 
RenderingHints.VALUE_DITHER_DISABLE);
hints.put(RenderingHints.KEY_FRACTIONALMETRICS, 
RenderingHints.VALUE_FRACTIONALMETRICS_ON);
hints.put(RenderingHints.KEY_INTERPOLATION, 
RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR);
hints.put(RenderingHints.KEY_RENDERING, 
RenderingHints.VALUE_RENDER_SPEED);
hints.put(RenderingHints.KEY_TEXT_ANTIALIASING, 
RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
return c.newInstance(null,page,true,RenderDestination.VIEW,new 
RenderingHints(hints));
} catch (Exception e) {
throw new RuntimeException("Could not instantiate 
PageDrawerParameters.",e);
}
}}}

Isn't there a better way to achive this? Why isn't the constructor public at 
all? I need this to create my own PageDrawer because I am writing a PDF Viewer 
GUI in SWT that uses PDFBox for the rendering and to render I thought it would 
be nice to be able to use the PageDrawer.


> Need to do strange stuff to create my own PageDrawer Parameters
> ---
>
> Key: PDFBOX-5120
> URL: https://issues.apache.org/jira/browse/PDFBOX-5120
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Reporter: Daniel Migowski
>Priority: Major
>
> Currently using the following function to create my PageDrawer Parameters:
> {{
> private static PageDrawerParameters createPageDrawerParameters(PDPage page) {
> Class clazz = PageDrawerParameters.class;
> Constructor c;
> try {
> c = clazz.getDeclaredConstructor(PDFRenderer.class, PDPage.class, 
> boolean.class, 
>RenderDestination.class, 
> RenderingHints.class);
> 

[jira] [Closed] (PDFBOX-5119) Can render PDF with PDFRenderer but not with PageRenderer II (Other PDF, other bug)

2021-03-07 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr closed PDFBOX-5119.
---
Resolution: Duplicate

> Can render PDF with PDFRenderer but not with PageRenderer II (Other PDF, 
> other bug)
> ---
>
> Key: PDFBOX-5119
> URL: https://issues.apache.org/jira/browse/PDFBOX-5119
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.20
>Reporter: Daniel Migowski
>Priority: Major
>
> |This time the following exception:
>  
> Exception in thread "main" java.lang.NullPointerExceptionException in thread 
> "main" java.lang.NullPointerException 
> at org.apache.pdfbox.rendering.PageDrawer.showAnnotation(PageDrawer.java:1430)
> at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:275) 
> at de.ikoffice.pdf.SimplePDFPageRenderer.main(SimplePDFPageRenderer.java:60)
>  
>  PDF is here: [[https://www.ikoffice.de/temp/OtherBrokenPDF.pdf]]
>   
>  See PDFBOX-5118 for the Java Example files that produce the NPE.|



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Created] (PDFBOX-5120) Need to do strange stuff to create my own PageDrawer Parameters

2021-03-07 Thread Daniel Migowski (Jira)
Daniel Migowski created PDFBOX-5120:
---

 Summary: Need to do strange stuff to create my own PageDrawer 
Parameters
 Key: PDFBOX-5120
 URL: https://issues.apache.org/jira/browse/PDFBOX-5120
 Project: PDFBox
  Issue Type: Bug
  Components: Rendering
Reporter: Daniel Migowski


Currently using the following function to create my PageDrawer Parameters:

{{private static PageDrawerParameters createPageDrawerParameters(PDPage 
page) {
Class clazz = PageDrawerParameters.class;
Constructor c;
try {
c = clazz.getDeclaredConstructor(PDFRenderer.class, PDPage.class, 
boolean.class, 
 RenderDestination.class, 
RenderingHints.class);
if( !c.isAccessible() ) {
c.setAccessible(true);
}
// TODO: Play with other rendering hints
Map hints = new HashMap<>();
hints.put(RenderingHints.KEY_ALPHA_INTERPOLATION, 
RenderingHints.VALUE_ALPHA_INTERPOLATION_SPEED);
hints.put(RenderingHints.KEY_ANTIALIASING, 
RenderingHints.VALUE_ANTIALIAS_ON);
hints.put(RenderingHints.KEY_COLOR_RENDERING, 
RenderingHints.VALUE_COLOR_RENDER_SPEED);
hints.put(RenderingHints.KEY_DITHERING, 
RenderingHints.VALUE_DITHER_DISABLE);
hints.put(RenderingHints.KEY_FRACTIONALMETRICS, 
RenderingHints.VALUE_FRACTIONALMETRICS_ON);
hints.put(RenderingHints.KEY_INTERPOLATION, 
RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR);
hints.put(RenderingHints.KEY_RENDERING, 
RenderingHints.VALUE_RENDER_SPEED);
hints.put(RenderingHints.KEY_TEXT_ANTIALIASING, 
RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
return c.newInstance(null,page,true,RenderDestination.VIEW,new 
RenderingHints(hints));
} catch (Exception e) {
throw new RuntimeException("Could not instantiate 
PageDrawerParameters.",e);
}
}}}

Isn't there a better way to achive this? Why isn't the constructor public at 
all? I need this to create my own PageDrawer because I am writing a PDF Viewer 
GUI in SWT that uses PDFBox for the rendering and to render I thought it would 
be nice to be able to use the PageDrawer.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Commented] (PDFBOX-5119) Can render PDF with PDFRenderer but not with PageRenderer II (Other PDF, other bug)

2021-03-07 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr commented on PDFBOX-5119:
-

Same problem as in the other issue
{code}
annotation.constructAppearances(renderer.document);
{code}
likely {{renderer}} being null.

> Can render PDF with PDFRenderer but not with PageRenderer II (Other PDF, 
> other bug)
> ---
>
> Key: PDFBOX-5119
> URL: https://issues.apache.org/jira/browse/PDFBOX-5119
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.20
>Reporter: Daniel Migowski
>Priority: Major
>
> |This time the following exception:
>  
> Exception in thread "main" java.lang.NullPointerExceptionException in thread 
> "main" java.lang.NullPointerException 
> at org.apache.pdfbox.rendering.PageDrawer.showAnnotation(PageDrawer.java:1430)
> at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:275) 
> at de.ikoffice.pdf.SimplePDFPageRenderer.main(SimplePDFPageRenderer.java:60)
>  
>  PDF is here: [[https://www.ikoffice.de/temp/OtherBrokenPDF.pdf]]
>   
>  See PDFBOX-5118 for the Java Example files that produce the NPE.|



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Commented] (PDFBOX-5118) Can render PDF with PDFRenderer but not with PageRenderer

2021-03-07 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr commented on PDFBOX-5118:
-

It looks to me as if you're trying to force your way to do something that isn't 
meant to be done at all, by doing {{c.setAccessible(true)}}.

The NPE you get is here:
{{if (!getRenderer().isGroupEnabled(group))}}

So renderer hasn't been set. That one is to be set in the PageDrawerParameters.

You're also using an outdated version (but my comment stands).

> Can render PDF with PDFRenderer but not with PageRenderer
> -
>
> Key: PDFBOX-5118
> URL: https://issues.apache.org/jira/browse/PDFBOX-5118
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.20
>Reporter: Daniel Migowski
>Priority: Major
> Attachments: SimplePDFPageRenderer.java, SimplePDFRenderer.java
>
>
> I get the following NPE when I try to renderer a PDF with the PageRenderer 
> (See SimplePDFPageRenderer.java) but it works when I use PDFRenderer (See 
> SimplePDFRenderer.java). The Exception is:
> {{Exception in thread "main" java.lang.NullPointerExceptionException in 
> thread "main" java.lang.NullPointerException at 
> org.apache.pdfbox.rendering.PageDrawer.isHiddenOCG(PageDrawer.java:1907) at 
> org.apache.pdfbox.rendering.PageDrawer.beginMarkedContentSequence(PageDrawer.java:1876)
>  at 
> org.apache.pdfbox.contentstream.operator.markedcontent.BeginMarkedContentSequenceWithProperties.process(BeginMarkedContentSequenceWithProperties.java:52)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:932)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:510)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:484)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:156)
>  at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:271) at 
> de.ikoffice.pdf.SimplePDFPageRenderer.main(SimplePDFPageRenderer.java:62)}}
> The PDF can be found at: 
> [https://www.ikoffice.de/temp/DaumeBriefpapierDefekt.pdf]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Commented] (PDFBOX-4892) Improve code quality (4)

2021-03-07 Thread ASF subversion and git services (Jira)


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

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

Commit 1887314 from le...@apache.org in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1887314 ]

PDFBOX-4892: use convenience methods to simplify code

> Improve code quality (4)
> 
>
> Key: PDFBOX-4892
> URL: https://issues.apache.org/jira/browse/PDFBOX-4892
> Project: PDFBox
>  Issue Type: Improvement
>Affects Versions: 2.0.20
>Reporter: Tilman Hausherr
>Priority: Minor
>
> This is a longterm issue for the task to improve code quality, by using the 
> [SonarQube report|https://sonarcloud.io/project/issues?id=pdfbox-reactor], 
> hints in different IDEs, the FindBugs tool and other code quality tools.
> This is a follow-up of PDFBOX-4071, which was getting too long.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Updated] (PDFBOX-5119) Can render PDF with PDFRenderer but not with PageRenderer II (Other PDF, other bug)

2021-03-07 Thread Daniel Migowski (Jira)


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

Daniel Migowski updated PDFBOX-5119:

Description: 
|This time the following exception:
 
Exception in thread "main" java.lang.NullPointerExceptionException in thread 
"main" java.lang.NullPointerException 
at org.apache.pdfbox.rendering.PageDrawer.showAnnotation(PageDrawer.java:1430)
at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:275) 
at de.ikoffice.pdf.SimplePDFPageRenderer.main(SimplePDFPageRenderer.java:60)
 
 PDF is here: [[https://www.ikoffice.de/temp/OtherBrokenPDF.pdf]]
  
 See PDFBOX-5118 for the Java Example files that produce the NPE.|

  was:
|This time the following exception:
 
{\{Exception in thread "main" java.lang.NullPointerExceptionException in thread 
"main" java.lang.NullPointerException at 
org.apache.pdfbox.rendering.PageDrawer.showAnnotation(PageDrawer.java:1430) at 
org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:275) at 
de.ikoffice.pdf.SimplePDFPageRenderer.main(SimplePDFPageRenderer.java:60)}}
 
PDF is here: [[https://www.ikoffice.de/temp/OtherBrokenPDF.pdf]]
 
See PDFBOX-5118 for the Java Example files that produce the NPE.|


> Can render PDF with PDFRenderer but not with PageRenderer II (Other PDF, 
> other bug)
> ---
>
> Key: PDFBOX-5119
> URL: https://issues.apache.org/jira/browse/PDFBOX-5119
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.20
>Reporter: Daniel Migowski
>Priority: Major
>
> |This time the following exception:
>  
> Exception in thread "main" java.lang.NullPointerExceptionException in thread 
> "main" java.lang.NullPointerException 
> at org.apache.pdfbox.rendering.PageDrawer.showAnnotation(PageDrawer.java:1430)
> at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:275) 
> at de.ikoffice.pdf.SimplePDFPageRenderer.main(SimplePDFPageRenderer.java:60)
>  
>  PDF is here: [[https://www.ikoffice.de/temp/OtherBrokenPDF.pdf]]
>   
>  See PDFBOX-5118 for the Java Example files that produce the NPE.|



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Updated] (PDFBOX-5119) Can render PDF with PDFRenderer but not with PageRenderer II (Other PDF, other bug)

2021-03-07 Thread Daniel Migowski (Jira)


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

Daniel Migowski updated PDFBOX-5119:

Description: 
|This time the following exception:
 
{\{Exception in thread "main" java.lang.NullPointerExceptionException in thread 
"main" java.lang.NullPointerException at 
org.apache.pdfbox.rendering.PageDrawer.showAnnotation(PageDrawer.java:1430) at 
org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:275) at 
de.ikoffice.pdf.SimplePDFPageRenderer.main(SimplePDFPageRenderer.java:60)}}
 
PDF is here: [[https://www.ikoffice.de/temp/OtherBrokenPDF.pdf]]
 
See PDFBOX-5118 for the Java Example files that produce the NPE.|

  was:
Cannot render this PDF:

{{Exception in thread "main" java.lang.NullPointerExceptionException in thread 
"main" java.lang.NullPointerException at 
org.apache.pdfbox.rendering.PageDrawer.showAnnotation(PageDrawer.java:1430) at 
org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:275) at 
de.ikoffice.pdf.SimplePDFPageRenderer.main(SimplePDFPageRenderer.java:60)}}

PDF is here: [https://www.ikoffice.de/temp/OtherBrokenPDF.pdf]


> Can render PDF with PDFRenderer but not with PageRenderer II (Other PDF, 
> other bug)
> ---
>
> Key: PDFBOX-5119
> URL: https://issues.apache.org/jira/browse/PDFBOX-5119
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.20
>Reporter: Daniel Migowski
>Priority: Major
>
> |This time the following exception:
>  
> {\{Exception in thread "main" java.lang.NullPointerExceptionException in 
> thread "main" java.lang.NullPointerException at 
> org.apache.pdfbox.rendering.PageDrawer.showAnnotation(PageDrawer.java:1430) 
> at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:275) at 
> de.ikoffice.pdf.SimplePDFPageRenderer.main(SimplePDFPageRenderer.java:60)}}
>  
> PDF is here: [[https://www.ikoffice.de/temp/OtherBrokenPDF.pdf]]
>  
> See PDFBOX-5118 for the Java Example files that produce the NPE.|



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Updated] (PDFBOX-5119) Can render PDF with PDFRenderer but not with PageRenderer II (Other PDF, other bug)

2021-03-07 Thread Daniel Migowski (Jira)


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

Daniel Migowski updated PDFBOX-5119:

Summary: Can render PDF with PDFRenderer but not with PageRenderer II 
(Other PDF, other bug)  (was: Cannot render PDF)

> Can render PDF with PDFRenderer but not with PageRenderer II (Other PDF, 
> other bug)
> ---
>
> Key: PDFBOX-5119
> URL: https://issues.apache.org/jira/browse/PDFBOX-5119
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.20
>Reporter: Daniel Migowski
>Priority: Major
>
> Cannot render this PDF:
> {{Exception in thread "main" java.lang.NullPointerExceptionException in 
> thread "main" java.lang.NullPointerException at 
> org.apache.pdfbox.rendering.PageDrawer.showAnnotation(PageDrawer.java:1430) 
> at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:275) at 
> de.ikoffice.pdf.SimplePDFPageRenderer.main(SimplePDFPageRenderer.java:60)}}
> PDF is here: [https://www.ikoffice.de/temp/OtherBrokenPDF.pdf]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Updated] (PDFBOX-5119) Cannot render PDF

2021-03-07 Thread Daniel Migowski (Jira)


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

Daniel Migowski updated PDFBOX-5119:

Description: 
Cannot render this PDF:

{{Exception in thread "main" java.lang.NullPointerExceptionException in thread 
"main" java.lang.NullPointerException at 
org.apache.pdfbox.rendering.PageDrawer.showAnnotation(PageDrawer.java:1430) at 
org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:275) at 
de.ikoffice.pdf.SimplePDFPageRenderer.main(SimplePDFPageRenderer.java:60)}}

PDF is here: [https://www.ikoffice.de/temp/OtherBrokenPDF.pdf]

  was:
This time the following exception:

{{Exception in thread "main" java.lang.NullPointerExceptionException in thread 
"main" java.lang.NullPointerException at 
org.apache.pdfbox.rendering.PageDrawer.showAnnotation(PageDrawer.java:1430) at 
org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:275) at 
de.ikoffice.pdf.SimplePDFPageRenderer.main(SimplePDFPageRenderer.java:60)}}

PDF is here: [https://www.ikoffice.de/temp/OtherBrokenPDF.pdf]

See PDFBOX-5118 for the Java Example files that produce the NPE.

Summary: Cannot render PDF  (was: Can render PDF with PDFRenderer but 
not with PageRenderer II (Other PDF, other bug))

> Cannot render PDF
> -
>
> Key: PDFBOX-5119
> URL: https://issues.apache.org/jira/browse/PDFBOX-5119
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.20
>Reporter: Daniel Migowski
>Priority: Major
>
> Cannot render this PDF:
> {{Exception in thread "main" java.lang.NullPointerExceptionException in 
> thread "main" java.lang.NullPointerException at 
> org.apache.pdfbox.rendering.PageDrawer.showAnnotation(PageDrawer.java:1430) 
> at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:275) at 
> de.ikoffice.pdf.SimplePDFPageRenderer.main(SimplePDFPageRenderer.java:60)}}
> PDF is here: [https://www.ikoffice.de/temp/OtherBrokenPDF.pdf]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Created] (PDFBOX-5119) Can render PDF with PDFRenderer but not with PageRenderer II (Other PDF, other bug)

2021-03-07 Thread Daniel Migowski (Jira)
Daniel Migowski created PDFBOX-5119:
---

 Summary: Can render PDF with PDFRenderer but not with PageRenderer 
II (Other PDF, other bug)
 Key: PDFBOX-5119
 URL: https://issues.apache.org/jira/browse/PDFBOX-5119
 Project: PDFBox
  Issue Type: Bug
  Components: Rendering
Affects Versions: 2.0.20
Reporter: Daniel Migowski


This time the following exception:

{{Exception in thread "main" java.lang.NullPointerExceptionException in thread 
"main" java.lang.NullPointerException at 
org.apache.pdfbox.rendering.PageDrawer.showAnnotation(PageDrawer.java:1430) at 
org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:275) at 
de.ikoffice.pdf.SimplePDFPageRenderer.main(SimplePDFPageRenderer.java:60)}}

PDF is here: [https://www.ikoffice.de/temp/OtherBrokenPDF.pdf]

See PDFBOX-5118 for the Java Example files that produce the NPE.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Updated] (PDFBOX-5118) Can render PDF with PDFRenderer but not with PageRenderer

2021-03-07 Thread Daniel Migowski (Jira)


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

Daniel Migowski updated PDFBOX-5118:

Description: 
I get the following NPE when I try to renderer a PDF with the PageRenderer (See 
SimplePDFPageRenderer.java) but it works when I use PDFRenderer (See 
SimplePDFRenderer.java). The Exception is:

{{Exception in thread "main" java.lang.NullPointerExceptionException in thread 
"main" java.lang.NullPointerException at 
org.apache.pdfbox.rendering.PageDrawer.isHiddenOCG(PageDrawer.java:1907) at 
org.apache.pdfbox.rendering.PageDrawer.beginMarkedContentSequence(PageDrawer.java:1876)
 at 
org.apache.pdfbox.contentstream.operator.markedcontent.BeginMarkedContentSequenceWithProperties.process(BeginMarkedContentSequenceWithProperties.java:52)
 at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:932)
 at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:510)
 at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:484)
 at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:156)
 at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:271) at 
de.ikoffice.pdf.SimplePDFPageRenderer.main(SimplePDFPageRenderer.java:62)}}

The PDF can be found at: 
[https://www.ikoffice.de/temp/DaumeBriefpapierDefekt.pdf]

  was:
I get the following NPE when I try to renderer a PDF with the PageRenderer (See 
SimplePDFPageRenderer.java) but it works when I use PDFRenderer (See 
SimplePDFRenderer.java). The Exception is:

{{Exception in thread "main" java.lang.NullPointerExceptionException in thread 
"main" java.lang.NullPointerException at 
org.apache.pdfbox.rendering.PageDrawer.isHiddenOCG(PageDrawer.java:1907) at 
org.apache.pdfbox.rendering.PageDrawer.beginMarkedContentSequence(PageDrawer.java:1876)
 at 
org.apache.pdfbox.contentstream.operator.markedcontent.BeginMarkedContentSequenceWithProperties.process(BeginMarkedContentSequenceWithProperties.java:52)
 at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:932)
 at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:510)
 at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:484)
 at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:156)
 at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:271) at 
de.ikoffice.pdf.SimplePDFPageRenderer.main(SimplePDFPageRenderer.java:62)}}

The PDF can be found at: https://www.ikoffice.de/temp/DaumeBriefpapierDefekt.pdf


> Can render PDF with PDFRenderer but not with PageRenderer
> -
>
> Key: PDFBOX-5118
> URL: https://issues.apache.org/jira/browse/PDFBOX-5118
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.20
>Reporter: Daniel Migowski
>Priority: Major
> Attachments: SimplePDFPageRenderer.java, SimplePDFRenderer.java
>
>
> I get the following NPE when I try to renderer a PDF with the PageRenderer 
> (See SimplePDFPageRenderer.java) but it works when I use PDFRenderer (See 
> SimplePDFRenderer.java). The Exception is:
> {{Exception in thread "main" java.lang.NullPointerExceptionException in 
> thread "main" java.lang.NullPointerException at 
> org.apache.pdfbox.rendering.PageDrawer.isHiddenOCG(PageDrawer.java:1907) at 
> org.apache.pdfbox.rendering.PageDrawer.beginMarkedContentSequence(PageDrawer.java:1876)
>  at 
> org.apache.pdfbox.contentstream.operator.markedcontent.BeginMarkedContentSequenceWithProperties.process(BeginMarkedContentSequenceWithProperties.java:52)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:932)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:510)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:484)
>  at 
> org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:156)
>  at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:271) at 
> de.ikoffice.pdf.SimplePDFPageRenderer.main(SimplePDFPageRenderer.java:62)}}
> The PDF can be found at: 
> [https://www.ikoffice.de/temp/DaumeBriefpapierDefekt.pdf]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Created] (PDFBOX-5118) Can render PDF with PDFRenderer but not with PageRenderer

2021-03-07 Thread Daniel Migowski (Jira)
Daniel Migowski created PDFBOX-5118:
---

 Summary: Can render PDF with PDFRenderer but not with PageRenderer
 Key: PDFBOX-5118
 URL: https://issues.apache.org/jira/browse/PDFBOX-5118
 Project: PDFBox
  Issue Type: Bug
  Components: Rendering
Affects Versions: 2.0.20
Reporter: Daniel Migowski
 Attachments: SimplePDFPageRenderer.java, SimplePDFRenderer.java

I get the following NPE when I try to renderer a PDF with the PageRenderer (See 
SimplePDFPageRenderer.java) but it works when I use PDFRenderer (See 
SimplePDFRenderer.java). The Exception is:

{{Exception in thread "main" java.lang.NullPointerExceptionException in thread 
"main" java.lang.NullPointerException at 
org.apache.pdfbox.rendering.PageDrawer.isHiddenOCG(PageDrawer.java:1907) at 
org.apache.pdfbox.rendering.PageDrawer.beginMarkedContentSequence(PageDrawer.java:1876)
 at 
org.apache.pdfbox.contentstream.operator.markedcontent.BeginMarkedContentSequenceWithProperties.process(BeginMarkedContentSequenceWithProperties.java:52)
 at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:932)
 at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:510)
 at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:484)
 at 
org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:156)
 at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:271) at 
de.ikoffice.pdf.SimplePDFPageRenderer.main(SimplePDFPageRenderer.java:62)}}

The PDF can be found at: https://www.ikoffice.de/temp/DaumeBriefpapierDefekt.pdf



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Commented] (PDFBOX-5117) Cannot upload PDFs to issuetracker anymore

2021-03-07 Thread Jira


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

Andreas Lehmkühler commented on PDFBOX-5117:


Maybe an unwanted sideeffect of some recently activated JIRA spamfilter:
{quote}
as part of an ongoing effort to block spammers on JIRA, we will be enabling a 
brand new version of the old Aardvark system on JIRA.

Aardvark is a mix of honey pots, content matching and (somewhat) naïve bayesian 
spam filtering that should catch the bulk of bad content creators on JIRA. 
{quote}


> Cannot upload PDFs to issuetracker anymore
> --
>
> Key: PDFBOX-5117
> URL: https://issues.apache.org/jira/browse/PDFBOX-5117
> Project: PDFBox
>  Issue Type: Bug
>  Components: Utilities
>Affects Versions: 2.0.22
> Environment: Windows 10
>Reporter: Daniel Migowski
>Priority: Major
> Attachments: CannotUploadPDFs.png
>
>
> Wanted to write another bugreport, but cannot upload PDFs to this site 
> anymore. See screenshot.
> The message translates to "An internal error has occured. Please contact your 
> administrator."



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Commented] (PDFBOX-5117) Cannot upload PDFs to issuetracker anymore

2021-03-07 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr commented on PDFBOX-5117:
-

This should be reported to
https://issues.apache.org/jira/browse/INFRA

In the meantime, please upload your PDFs to a sharehoster.

> Cannot upload PDFs to issuetracker anymore
> --
>
> Key: PDFBOX-5117
> URL: https://issues.apache.org/jira/browse/PDFBOX-5117
> Project: PDFBox
>  Issue Type: Bug
>  Components: Utilities
>Affects Versions: 2.0.22
> Environment: Windows 10
>Reporter: Daniel Migowski
>Priority: Major
> Attachments: CannotUploadPDFs.png
>
>
> Wanted to write another bugreport, but cannot upload PDFs to this site 
> anymore. See screenshot.
> The message translates to "An internal error has occured. Please contact your 
> administrator."



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Updated] (PDFBOX-5117) Cannot upload PDFs to issuetracker anymore

2021-03-07 Thread Daniel Migowski (Jira)


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

Daniel Migowski updated PDFBOX-5117:

Description: 
Wanted to write another bugreport, but cannot upload PDFs to this site anymore. 
See screenshot.

The message translates to "An internal error has occured. Please contact your 
administrator."

  was:
Wanted to write another bugreport, but cannot upload PDFs to this site anymore. 
See screenshot.

The message translates to "Cannot upload PDF 


> Cannot upload PDFs to issuetracker anymore
> --
>
> Key: PDFBOX-5117
> URL: https://issues.apache.org/jira/browse/PDFBOX-5117
> Project: PDFBox
>  Issue Type: Bug
>  Components: Utilities
>Affects Versions: 2.0.22
> Environment: Windows 10
>Reporter: Daniel Migowski
>Priority: Major
> Attachments: CannotUploadPDFs.png
>
>
> Wanted to write another bugreport, but cannot upload PDFs to this site 
> anymore. See screenshot.
> The message translates to "An internal error has occured. Please contact your 
> administrator."



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Created] (PDFBOX-5117) Cannot upload PDFs to issuetracker anymore

2021-03-07 Thread Daniel Migowski (Jira)
Daniel Migowski created PDFBOX-5117:
---

 Summary: Cannot upload PDFs to issuetracker anymore
 Key: PDFBOX-5117
 URL: https://issues.apache.org/jira/browse/PDFBOX-5117
 Project: PDFBox
  Issue Type: Bug
  Components: Utilities
Affects Versions: 2.0.22
 Environment: Windows 10
Reporter: Daniel Migowski
 Attachments: CannotUploadPDFs.png

Wanted to write another bugreport, but cannot upload PDFs to this site anymore. 
See screenshot.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Updated] (PDFBOX-5117) Cannot upload PDFs to issuetracker anymore

2021-03-07 Thread Daniel Migowski (Jira)


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

Daniel Migowski updated PDFBOX-5117:

Description: 
Wanted to write another bugreport, but cannot upload PDFs to this site anymore. 
See screenshot.

The message translates to "Cannot upload PDF 

  was:
Wanted to write another bugreport, but cannot upload PDFs to this site anymore. 
See screenshot.

 


> Cannot upload PDFs to issuetracker anymore
> --
>
> Key: PDFBOX-5117
> URL: https://issues.apache.org/jira/browse/PDFBOX-5117
> Project: PDFBox
>  Issue Type: Bug
>  Components: Utilities
>Affects Versions: 2.0.22
> Environment: Windows 10
>Reporter: Daniel Migowski
>Priority: Major
> Attachments: CannotUploadPDFs.png
>
>
> Wanted to write another bugreport, but cannot upload PDFs to this site 
> anymore. See screenshot.
> The message translates to "Cannot upload PDF 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



Jenkins build is back to normal : PDFBox » PDFBox-2.0.x » Apache PDFBox #253

2021-03-07 Thread Apache Jenkins Server
See 



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



Jenkins build is back to normal : PDFBox » PDFBox-2.0.x #253

2021-03-07 Thread Apache Jenkins Server
See 



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



Jenkins build is back to normal : PDFBox » PDFBox-Trunk-jdk15 #221

2021-03-07 Thread Apache Jenkins Server
See 



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



Jenkins build is back to normal : PDFBox » PDFBox-Trunk-jdk15 » Apache PDFBox #221

2021-03-07 Thread Apache Jenkins Server
See 



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



Re: 2.0.22 vs 2.0.23

2021-03-07 Thread Tilman Hausherr

new report at

http://home.snafu.de/tilman/tmp/reports_pdfbox_2.0.22_vs_2.0.23_2.tar.xz

Tilman

Am 07.03.2021 um 11:43 schrieb Tilman Hausherr:

Am 07.03.2021 um 06:04 schrieb Tilman Hausherr:

Report is here:

http://home.snafu.de/tilman/tmp/reports_pdfbox_2.0.22_vs_2.0.23.tar.xz 


There's not much changed. No new exceptions. Re content, the changes 
that seem important are all related to "soft hyphen".


https://issues.apache.org/jira/browse/PDFBOX-5115

I am currently fixing this, and then I'll run the tests again. The 
text extraction differences will likely stay. It's possible that a 
change in tika-eval is needed too.


Tilman


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




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



[jira] [Commented] (PDFBOX-4892) Improve code quality (4)

2021-03-07 Thread ASF subversion and git services (Jira)


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

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

Commit 1887300 from le...@apache.org in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1887300 ]

PDFBOX-4892: use convenience methods to simplify code

> Improve code quality (4)
> 
>
> Key: PDFBOX-4892
> URL: https://issues.apache.org/jira/browse/PDFBOX-4892
> Project: PDFBox
>  Issue Type: Improvement
>Affects Versions: 2.0.20
>Reporter: Tilman Hausherr
>Priority: Minor
>
> This is a longterm issue for the task to improve code quality, by using the 
> [SonarQube report|https://sonarcloud.io/project/issues?id=pdfbox-reactor], 
> hints in different IDEs, the FindBugs tool and other code quality tools.
> This is a follow-up of PDFBOX-4071, which was getting too long.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



Build failed in Jenkins: PDFBox » PDFBox-2.0.x #252

2021-03-07 Thread Apache Jenkins Server
See 


Changes:

[Andreas Lehmkühler] PDFBOX-5112: SonarCube fix, throw NoSuchElementException 
if no more elements are available

[Tilman Hausherr] PDFBOX-5115: more support of soft hyphen


--
[...truncated 216.46 KB...]
at sun.reflect.GeneratedMethodAccessor1846.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at hudson.model.Executor$2.call(Executor.java:939)
at hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23)
at com.sun.proxy.$Proxy188.execute(Unknown Source)
at 
hudson.maven.MavenBuildProxy$Filter$AsyncInvoker.call(MavenBuildProxy.java:294)
at hudson.remoting.UserRequest.perform(UserRequest.java:211)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:375)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73)
at 
org.jenkinsci.remoting.CallableDecorator.call(CallableDecorator.java:18)
at 
hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:22)
at 
jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
at 
jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
... 4 more
Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to 
channel
at 
hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1800)
at 
hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
at hudson.remoting.Channel$2.adapt(Channel.java:1037)
at hudson.remoting.Channel$2.adapt(Channel.java:1033)
at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59)
at 
hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:186)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:144)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
at hudson.remoting.UserRequest.perform(UserRequest.java:211)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:375)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73)
... 4 more
ERROR: Asynchronous execution failure
java.util.concurrent.ExecutionException: java.io.IOException: Unexpected 
Fingerprint type. Expected class hudson.model.Fingerprint or subclass but got 
class hudson.model.Fingerprint$RangeSet
at hudson.remoting.Channel$2.adapt(Channel.java:1039)
at hudson.remoting.Channel$2.adapt(Channel.java:1033)
at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59)
at 
hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:186)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:144)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
at hudson.remoting.UserRequest.perform(UserRequest.java:211)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:375)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: Unexpected Fingerprint type. Expected class 
hudson.model.Fingerprint or subclass but got class 
hudson.model.Fingerprint$RangeSet
at 
jenkins.fingerprints.FileFingerprintStorage.load(FileFingerprintStorage.java:98)
at 
jenkins.fingerprints.FileFingerprintStorage.load(FileFingerprintStorage.java:82)
at hudson.model.Fingerprint.load(Fingerprint.java:1357)
at hudson.model.FingerprintMap.load(FingerprintMap.java:90)
at hudson.model.FingerprintMap.load(FingerprintMap.java:47)
at hudson.util.KeyedDataStorage.get(KeyedDataStorage.java:161)
at hudson.model.FingerprintMap.get(FingerprintMap.java:82)
at hudson.model.FingerprintMap.get(FingerprintMap.java:47)
at hudson.util.KeyedDataStorage.getOrCreate(KeyedDataStorage.java:111)
at hudson.model.FingerprintMap.getOrCreate(FingerprintMap.java:68)
at 
hudson.maven.reporters.MavenFingerprinter$PostBuildCallable.call(MavenFingerprinter.java:246)
at 

Build failed in Jenkins: PDFBox » PDFBox-2.0.x » Apache PDFBox #252

2021-03-07 Thread Apache Jenkins Server
See 


Changes:

[Andreas Lehmkühler] PDFBOX-5112: SonarCube fix, throw NoSuchElementException 
if no more elements are available

[Tilman Hausherr] PDFBOX-5115: more support of soft hyphen


--
[...truncated 7.57 KB...]
[INFO] 
[INFO] --- download-maven-plugin:1.5.1:wget (PDFBOX-1065-1) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.5.1:wget (PDFBOX-1065-2) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.5.1:wget (PDFBOX-1100-1) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.5.1:wget (PDFBOX-1100-2) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.5.1:wget (PDFBOX-3208) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.5.1:wget (PDFBOX-3656) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.5.1:wget (PDFBOX-3682) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.5.1:wget (PDFBOX-3940) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.5.1:wget (PDFBOX-3783) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.5.1:wget (PDFBOX-3785) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.5.1:wget (PDFBOX-3947) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.5.1:wget (PDFBOX-3948) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.5.1:wget (PDFBOX-3949) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.5.1:wget (PDFBOX-3950) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.5.1:wget (PDFBOX-3951) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.5.1:wget (PDFBOX-3964) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.5.1:wget (PDFBOX-3977) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.5.1:wget (Genko) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.5.1:wget (PDFBOX-3999) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.5.1:wget (PDFBOX-4106) @ pdfbox ---
[WARNING] Could not get content
org.apache.http.conn.HttpHostConnectException: Connect to moji.or.jp:443 
[moji.or.jp/157.7.44.215] failed: Connection timed out (Connection timed out)
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect 
(DefaultHttpClientConnectionOperator.java:159)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect 
(PoolingHttpClientConnectionManager.java:373)
at org.apache.http.impl.execchain.MainClientExec.establishRoute 
(MainClientExec.java:394)
at org.apache.http.impl.execchain.MainClientExec.execute 
(MainClientExec.java:237)
at org.apache.http.impl.execchain.ProtocolExec.execute 
(ProtocolExec.java:185)
at org.apache.http.impl.execchain.RetryExec.execute (RetryExec.java:89)
at org.apache.http.impl.execchain.RedirectExec.execute 
(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute 
(InternalHttpClient.java:185)
at org.apache.http.impl.client.CloseableHttpClient.execute 
(CloseableHttpClient.java:72)
at org.apache.http.impl.client.CloseableHttpClient.execute 
(CloseableHttpClient.java:221)
at org.apache.http.impl.client.CloseableHttpClient.execute 
(CloseableHttpClient.java:165)
at com.googlecode.download.maven.plugin.internal.HttpFileRequester.download 
(HttpFileRequester.java:54)
at com.googlecode.download.maven.plugin.internal.WGet.doGet (WGet.java:514)
at com.googlecode.download.maven.plugin.internal.WGet.execute 
(WGet.java:364)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
(DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:81)
at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
 (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.jvnet.hudson.maven3.launcher.Maven35Launcher.main 
(Maven35Launcher.java:130)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
(Launcher.java:282)
   

Build failed in Jenkins: PDFBox » PDFBox-Trunk-jdk15 #220

2021-03-07 Thread Apache Jenkins Server
See 


Changes:

[Andreas Lehmkühler] PDFBOX-4892: use convenience methods to simplify code

[Andreas Lehmkühler] PDFBOX-5112: SonarCube fix, throw NoSuchElementException 
if no more elements are available

[Tilman Hausherr] PDFBOX-5115: more support of soft hyphen


--
[...truncated 91.22 KB...]
at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59)
at 
hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:186)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:144)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
at hudson.remoting.UserRequest.perform(UserRequest.java:211)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:375)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73)
at 
java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
at java.base/java.lang.Thread.run(Thread.java:832)
ERROR: Asynchronous execution failure
java.util.concurrent.ExecutionException: java.io.IOException: Unexpected 
Fingerprint type. Expected class hudson.model.Fingerprint or subclass but got 
class hudson.model.Fingerprint$RangeSet
at hudson.remoting.Channel$2.adapt(Channel.java:1039)
at hudson.remoting.Channel$2.adapt(Channel.java:1033)
at hudson.remoting.FutureAdapter.get(FutureAdapter.java:59)
at 
hudson.maven.AbstractMavenBuilder.waitForAsynchronousExecutions(AbstractMavenBuilder.java:186)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:144)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
at hudson.remoting.UserRequest.perform(UserRequest.java:211)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:375)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
at java.base/java.lang.Thread.run(Thread.java:832)
Caused by: java.io.IOException: Unexpected Fingerprint type. Expected class 
hudson.model.Fingerprint or subclass but got class 
hudson.model.Fingerprint$RangeSet
at 
jenkins.fingerprints.FileFingerprintStorage.load(FileFingerprintStorage.java:98)
at 
jenkins.fingerprints.FileFingerprintStorage.load(FileFingerprintStorage.java:82)
at hudson.model.Fingerprint.load(Fingerprint.java:1357)
at hudson.model.FingerprintMap.load(FingerprintMap.java:90)
at hudson.model.FingerprintMap.load(FingerprintMap.java:47)
at hudson.util.KeyedDataStorage.get(KeyedDataStorage.java:161)
at hudson.model.FingerprintMap.get(FingerprintMap.java:82)
at hudson.model.FingerprintMap.get(FingerprintMap.java:47)
at hudson.util.KeyedDataStorage.getOrCreate(KeyedDataStorage.java:111)
at hudson.model.FingerprintMap.getOrCreate(FingerprintMap.java:68)
at 
hudson.maven.reporters.MavenFingerprinter$PostBuildCallable.call(MavenFingerprinter.java:246)
at 
hudson.maven.reporters.MavenFingerprinter$PostBuildCallable.call(MavenFingerprinter.java:233)
at hudson.maven.MavenBuild$ProxyImpl.execute(MavenBuild.java:454)
at hudson.maven.MavenBuild$ProxyImpl2.execute(MavenBuild.java:586)
at sun.reflect.GeneratedMethodAccessor1846.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at hudson.model.Executor$2.call(Executor.java:939)
at hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23)
at com.sun.proxy.$Proxy188.execute(Unknown Source)
at 
hudson.maven.MavenBuildProxy$Filter$AsyncInvoker.call(MavenBuildProxy.java:294)
at hudson.remoting.UserRequest.perform(UserRequest.java:211)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:375)
at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:73)
at 
org.jenkinsci.remoting.CallableDecorator.call(CallableDecorator.java:18)
at 

Build failed in Jenkins: PDFBox » PDFBox-Trunk-jdk15 » Apache PDFBox #220

2021-03-07 Thread Apache Jenkins Server
See 


Changes:

[Andreas Lehmkühler] PDFBOX-4892: use convenience methods to simplify code

[Andreas Lehmkühler] PDFBOX-5112: SonarCube fix, throw NoSuchElementException 
if no more elements are available

[Tilman Hausherr] PDFBOX-5115: more support of soft hyphen


--
[...truncated 6.95 KB...]
[INFO] 
[INFO] --- download-maven-plugin:1.6.0:wget (PDFBOX-1065-1) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.6.0:wget (PDFBOX-1065-2) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.6.0:wget (PDFBOX-1100-1) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.6.0:wget (PDFBOX-1100-2) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.6.0:wget (PDFBOX-3208) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.6.0:wget (PDFBOX-3656) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.6.0:wget (PDFBOX-3682) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.6.0:wget (PDFBOX-3940) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.6.0:wget (PDFBOX-3783) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.6.0:wget (PDFBOX-3785) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.6.0:wget (PDFBOX-3947) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.6.0:wget (PDFBOX-3948) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.6.0:wget (PDFBOX-3949) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.6.0:wget (PDFBOX-3950) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.6.0:wget (PDFBOX-3951) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.6.0:wget (PDFBOX-3964) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.6.0:wget (PDFBOX-3977) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.6.0:wget (Genko) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.6.0:wget (PDFBOX-3999) @ pdfbox ---
[INFO] 
[INFO] --- download-maven-plugin:1.6.0:wget (PDFBOX-4106) @ pdfbox ---
[WARNING] Could not get content
org.apache.http.conn.ConnectTimeoutException: Connect to moji.or.jp:443 
[moji.or.jp/157.7.44.215] failed: Connection timed out
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect 
(DefaultHttpClientConnectionOperator.java:157)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect 
(PoolingHttpClientConnectionManager.java:373)
at org.apache.http.impl.execchain.MainClientExec.establishRoute 
(MainClientExec.java:394)
at org.apache.http.impl.execchain.MainClientExec.execute 
(MainClientExec.java:237)
at org.apache.http.impl.execchain.ProtocolExec.execute 
(ProtocolExec.java:185)
at org.apache.http.impl.execchain.RetryExec.execute (RetryExec.java:89)
at org.apache.http.impl.execchain.RedirectExec.execute 
(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute 
(InternalHttpClient.java:185)
at org.apache.http.impl.client.CloseableHttpClient.execute 
(CloseableHttpClient.java:72)
at org.apache.http.impl.client.CloseableHttpClient.execute 
(CloseableHttpClient.java:221)
at org.apache.http.impl.client.CloseableHttpClient.execute 
(CloseableHttpClient.java:165)
at com.googlecode.download.maven.plugin.internal.HttpFileRequester.download 
(HttpFileRequester.java:57)
at com.googlecode.download.maven.plugin.internal.WGet.doGet (WGet.java:538)
at com.googlecode.download.maven.plugin.internal.WGet.execute 
(WGet.java:397)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
(DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:81)
at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
 (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.jvnet.hudson.maven3.launcher.Maven35Launcher.main 
(Maven35Launcher.java:130)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke 
(NativeMethodAccessorImpl.java:64)
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke 
(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:564)
at 

[jira] [Commented] (PDFBOX-4892) Improve code quality (4)

2021-03-07 Thread ASF subversion and git services (Jira)


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

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

Commit 1887297 from le...@apache.org in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1887297 ]

PDFBOX-4892: use convenience methods to simplify code

> Improve code quality (4)
> 
>
> Key: PDFBOX-4892
> URL: https://issues.apache.org/jira/browse/PDFBOX-4892
> Project: PDFBox
>  Issue Type: Improvement
>Affects Versions: 2.0.20
>Reporter: Tilman Hausherr
>Priority: Minor
>
> This is a longterm issue for the task to improve code quality, by using the 
> [SonarQube report|https://sonarcloud.io/project/issues?id=pdfbox-reactor], 
> hints in different IDEs, the FindBugs tool and other code quality tools.
> This is a follow-up of PDFBOX-4071, which was getting too long.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Commented] (PDFBOX-5112) Add more checks to PDFXrefStreamParser and reduce memory footprint

2021-03-07 Thread ASF subversion and git services (Jira)


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

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

Commit 1887295 from le...@apache.org in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1887295 ]

PDFBOX-5112: SonarCube fix, throw NoSuchElementException if no more elements 
are available

> Add more checks to PDFXrefStreamParser and reduce memory footprint
> --
>
> Key: PDFBOX-5112
> URL: https://issues.apache.org/jira/browse/PDFBOX-5112
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Parsing
>Affects Versions: 2.0.22, 3.0.0 PDFBox
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
>Priority: Major
> Fix For: 2.0.23, 3.0.0 PDFBox
>
>
> PDFBOX-5108 already added a check of the dictionary values of a compressed 
> cross reference stream, but there are some more values which should be 
> checked before parsing the stream. There is some room for reducing the memory 
> footprint as well. PDFBox should calculate the object numbers during parsing 
> the stream instead of creating a whole list of them before parsing the stream.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Commented] (PDFBOX-5112) Add more checks to PDFXrefStreamParser and reduce memory footprint

2021-03-07 Thread ASF subversion and git services (Jira)


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

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

Commit 1887296 from le...@apache.org in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1887296 ]

PDFBOX-5112: SonarCube fix, throw NoSuchElementException if no more elements 
are available

> Add more checks to PDFXrefStreamParser and reduce memory footprint
> --
>
> Key: PDFBOX-5112
> URL: https://issues.apache.org/jira/browse/PDFBOX-5112
> Project: PDFBox
>  Issue Type: Improvement
>  Components: Parsing
>Affects Versions: 2.0.22, 3.0.0 PDFBox
>Reporter: Andreas Lehmkühler
>Assignee: Andreas Lehmkühler
>Priority: Major
> Fix For: 2.0.23, 3.0.0 PDFBox
>
>
> PDFBOX-5108 already added a check of the dictionary values of a compressed 
> cross reference stream, but there are some more values which should be 
> checked before parsing the stream. There is some room for reducing the memory 
> footprint as well. PDFBox should calculate the object numbers during parsing 
> the stream instead of creating a whole list of them before parsing the stream.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Commented] (PDFBOX-5115) U+00AD ('sfthyphen') is not available in this font Times-Roman encoding: WinAnsiEncoding

2021-03-07 Thread ASF subversion and git services (Jira)


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

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

Commit 1887293 from Tilman Hausherr in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1887293 ]

PDFBOX-5115: more support of soft hyphen

> U+00AD ('sfthyphen') is not available in this font Times-Roman encoding: 
> WinAnsiEncoding
> 
>
> Key: PDFBOX-5115
> URL: https://issues.apache.org/jira/browse/PDFBOX-5115
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.22
>Reporter: Andriy
>Priority: Minor
> Fix For: 2.0.23, 3.0.0 PDFBox
>
> Attachments: 
> PDFBOX-5115-CSIF66CF7JU7CBKTIEEW7QBGWIONBFPG-p1-soft-hyphen.pdf
>
>
> U+00AD ('sfthyphen') is not available in this font Times-Roman encoding: 
> WinAnsiEncoding
>  
> this symbol U+00AD are in WinAnsiEncoding by the code but the slightly 
> different name
>  
> {quote}private static final Object[][] WIN_ANSI_ENCODING_TABLE = {
> // adding some additional mappings as defined in Appendix D of the pdf spec
>  ...
>  \{0255, "hyphen"}
> {quote}
>  
>  it is right that both code and name must be equal ? 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Commented] (PDFBOX-5115) U+00AD ('sfthyphen') is not available in this font Times-Roman encoding: WinAnsiEncoding

2021-03-07 Thread ASF subversion and git services (Jira)


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

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

Commit 1887292 from Tilman Hausherr in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1887292 ]

PDFBOX-5115: more support of soft hyphen

> U+00AD ('sfthyphen') is not available in this font Times-Roman encoding: 
> WinAnsiEncoding
> 
>
> Key: PDFBOX-5115
> URL: https://issues.apache.org/jira/browse/PDFBOX-5115
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.22
>Reporter: Andriy
>Priority: Minor
> Fix For: 2.0.23, 3.0.0 PDFBox
>
> Attachments: 
> PDFBOX-5115-CSIF66CF7JU7CBKTIEEW7QBGWIONBFPG-p1-soft-hyphen.pdf
>
>
> U+00AD ('sfthyphen') is not available in this font Times-Roman encoding: 
> WinAnsiEncoding
>  
> this symbol U+00AD are in WinAnsiEncoding by the code but the slightly 
> different name
>  
> {quote}private static final Object[][] WIN_ANSI_ENCODING_TABLE = {
> // adding some additional mappings as defined in Appendix D of the pdf spec
>  ...
>  \{0255, "hyphen"}
> {quote}
>  
>  it is right that both code and name must be equal ? 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



Re: 2.0.22 vs 2.0.23

2021-03-07 Thread Tilman Hausherr

Am 07.03.2021 um 06:04 schrieb Tilman Hausherr:

Report is here:

http://home.snafu.de/tilman/tmp/reports_pdfbox_2.0.22_vs_2.0.23.tar.xz 


There's not much changed. No new exceptions. Re content, the changes 
that seem important are all related to "soft hyphen".


https://issues.apache.org/jira/browse/PDFBOX-5115

I am currently fixing this, and then I'll run the tests again. The text 
extraction differences will likely stay. It's possible that a change in 
tika-eval is needed too.


Tilman


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



[jira] [Commented] (PDFBOX-5115) U+00AD ('sfthyphen') is not available in this font Times-Roman encoding: WinAnsiEncoding

2021-03-07 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr commented on PDFBOX-5115:
-

We're not done yet here. I thought that the soft hyphen would be displayed 
(because it was displayed with the Arial and Liberation Sans), but no, some 
fonts are different, as our large scale regression testing shows. In the 
attached file, it can be seen with "Max-Planck-Institute". So I'll have to add 
logic, probably similar to the one done with nbspace.

> U+00AD ('sfthyphen') is not available in this font Times-Roman encoding: 
> WinAnsiEncoding
> 
>
> Key: PDFBOX-5115
> URL: https://issues.apache.org/jira/browse/PDFBOX-5115
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.22
>Reporter: Andriy
>Priority: Minor
> Fix For: 2.0.23, 3.0.0 PDFBox
>
> Attachments: 
> PDFBOX-5115-CSIF66CF7JU7CBKTIEEW7QBGWIONBFPG-p1-soft-hyphen.pdf
>
>
> U+00AD ('sfthyphen') is not available in this font Times-Roman encoding: 
> WinAnsiEncoding
>  
> this symbol U+00AD are in WinAnsiEncoding by the code but the slightly 
> different name
>  
> {quote}private static final Object[][] WIN_ANSI_ENCODING_TABLE = {
> // adding some additional mappings as defined in Appendix D of the pdf spec
>  ...
>  \{0255, "hyphen"}
> {quote}
>  
>  it is right that both code and name must be equal ? 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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



[jira] [Updated] (PDFBOX-5115) U+00AD ('sfthyphen') is not available in this font Times-Roman encoding: WinAnsiEncoding

2021-03-07 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr updated PDFBOX-5115:

Attachment: PDFBOX-5115-CSIF66CF7JU7CBKTIEEW7QBGWIONBFPG-p1-soft-hyphen.pdf

> U+00AD ('sfthyphen') is not available in this font Times-Roman encoding: 
> WinAnsiEncoding
> 
>
> Key: PDFBOX-5115
> URL: https://issues.apache.org/jira/browse/PDFBOX-5115
> Project: PDFBox
>  Issue Type: Bug
>Affects Versions: 2.0.22
>Reporter: Andriy
>Priority: Minor
> Fix For: 2.0.23, 3.0.0 PDFBox
>
> Attachments: 
> PDFBOX-5115-CSIF66CF7JU7CBKTIEEW7QBGWIONBFPG-p1-soft-hyphen.pdf
>
>
> U+00AD ('sfthyphen') is not available in this font Times-Roman encoding: 
> WinAnsiEncoding
>  
> this symbol U+00AD are in WinAnsiEncoding by the code but the slightly 
> different name
>  
> {quote}private static final Object[][] WIN_ANSI_ENCODING_TABLE = {
> // adding some additional mappings as defined in Appendix D of the pdf spec
>  ...
>  \{0255, "hyphen"}
> {quote}
>  
>  it is right that both code and name must be equal ? 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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