[jira] [Closed] (PDFBOX-5461) Fonts are not rendered in this document

2022-06-17 Thread Daniel Migowski (Jira)


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

Daniel Migowski closed PDFBOX-5461.
---
Fix Version/s: 2.0.23
   Resolution: Not A Bug

I am so sorry for the noise, there had been a file corruption during my tests 
and I didn't notice and still don't understand how it was possible. 

Thanks for taking the time looking into it, [~tilman], my next reports will be 
of higher quality.

> Fonts are not rendered in this document
> ---
>
> Key: PDFBOX-5461
> URL: https://issues.apache.org/jira/browse/PDFBOX-5461
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.23
> Environment: n/a
>Reporter: Daniel Migowski
>Priority: Major
> Fix For: 2.0.23
>
> Attachments: TK_invoice_160265.pdf, The_rendered_doc.png
>
>
> This seems to be a tough one. The PDF can be rendered by Adobe Acrobat, but 
> Chrome and Firefox also fail to render it. So it seems like a corner case 
> where the document does not adhere to the specs but Adobe works around it 
> somehow.
> I assume this would fail with the latest PDFBox also so I skipped updating 3 
> minor versions before creating this ticket.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

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



[jira] [Created] (PDFBOX-5461) Fonts are not rendered in this document

2022-06-17 Thread Daniel Migowski (Jira)
Daniel Migowski created PDFBOX-5461:
---

 Summary: Fonts are not rendered in this document
 Key: PDFBOX-5461
 URL: https://issues.apache.org/jira/browse/PDFBOX-5461
 Project: PDFBox
  Issue Type: Bug
  Components: Rendering
Affects Versions: 2.0.23
 Environment: n/a
Reporter: Daniel Migowski
 Attachments: TK_invoice_160265.pdf, The_rendered_doc.png

This seems to be a tough one. The PDF can be rendered by Adobe Acrobat, but 
Chrome and Firefox also fail to render it. So it seems like a corner case where 
the document does not adhere to the specs but Adobe works around it somehow.

I assume this would fail with the latest PDFBox also so I skipped updating 3 
minor versions before creating this ticket.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

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



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

2021-03-08 Thread Daniel Migowski (Jira)


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

Daniel Migowski closed PDFBOX-5118.
---

> 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] [Closed] (PDFBOX-5120) Need to do strange stuff to create my own PageDrawer Parameters

2021-03-08 Thread Daniel Migowski (Jira)


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

Daniel Migowski closed PDFBOX-5120.
---
Resolution: Fixed

Thanks, I know how to continue now.

> 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] [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&focusedCommentId=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



[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&focusedCommentId=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&focusedCommentId=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] [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] [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] [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] [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



[jira] [Commented] (PDFBOX-4821) My PDF document is not printed correctly. Rendering it works.

2020-05-04 Thread Daniel Migowski (Jira)


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

Daniel Migowski commented on PDFBOX-4821:
-

Thanks [~tilman], your help is very appreciated!!

> My PDF document is not printed correctly. Rendering it works.
> -
>
> Key: PDFBOX-4821
> URL: https://issues.apache.org/jira/browse/PDFBOX-4821
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.2, 2.0.15, 2.0.19, 2.0.20
> Environment: Windows 10, JDK 1.8.0_152, 14.0.1
>Reporter: Daniel Migowski
>Assignee: Tilman Hausherr
>Priority: Major
>  Labels: print, printing
> Fix For: 2.0.20, 3.0.0 PDFBox
>
> Attachments: ArtefactWhilePrinting.png, 
> DevconLetterPaperPrinter.java, DevconLetterPaperRenderer.java, 
> LogoOnly_Letterpaper.pdf, PDFBOX-4821_reduced7.pdf, RenderingResult.png, 
> image-2020-05-01-13-43-54-357.png
>
>
> I am printing PDF files with Apache PDFBox. The attached file shows a second 
> turquise square on the top of the page (See attached file 
> "ArtefactWhilePrinting.png").
> When I try to render the PDF with PDFBox the result looks nice (see attached 
> file "RenderingResult.png")
> I have provided the code to render / print the letterpaper, and also the 
> Input PDF ("LogoOnly_Letterpaper.pdf"). 
> The PDF is the output of an SVN file, exported by Inkscape, but AFAIK there 
> isn't even an object at the location where the square appears in printing, so 
> I cannot tell what bugs lets it appear there.
> Thanks for improving the PDF component to also handle this PDF in advance, 
> you guys are great.
> -Update: I tried to give a DPI number to printing, so the pixelating is done 
> within PDF Box, but there the artefact still appears. So rendering with DPI 
> to Image works (also with 300 DPI images), but rendering even with DPI to 
> paper leads to the strange artefact.-  Not true, rendering in PDFBox doesn't 
> show behaviour.
> Update 2: Checked with currently nightly, bug still appears.
>  



--
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-4821) My PDF document is not printed correctly. Rendering it works.

2020-04-29 Thread Daniel Migowski (Jira)


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

Daniel Migowski edited comment on PDFBOX-4821 at 4/29/20, 6:32 PM:
---

Correct, my fault, passing a DPI number doesn't show the problem. Will update 
the ticket text. Got my Viewer configurations mixed up, sorry.

[~tilman]: You think the bug is still worthy to be fixed? I don't like 
rendering in my application except when absolutely required because of the 
large size of the print jobs and the memory requirements in general.


was (Author: dmigowski):
Correct, my fault, passing a DPI number doesn't show the problem. Will update 
the ticket text. Got my Viewer configurations mixed up, sorry.

> My PDF document is not printed correctly. Rendering it works.
> -
>
> Key: PDFBOX-4821
> URL: https://issues.apache.org/jira/browse/PDFBOX-4821
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.15, 2.0.20
> Environment: Windows 10, JDK 1.8.0_152
>Reporter: Daniel Migowski
>Priority: Major
>  Labels: bug, printing, rendering
> Attachments: ArtefactWhilePrinting.png, 
> DevconLetterPaperPrinter.java, DevconLetterPaperRenderer.java, 
> LogoOnly_Letterpaper.pdf, RenderingResult.png
>
>
> I am printing PDF files with Apache PDFBox. The attached file shows a second 
> turquise square on the top of the page (See attached file 
> "ArtefactWhilePrinting.png").
> When I try to render the PDF with PDFBox the result looks nice (see attached 
> file "RenderingResult.png")
> I have provided the code to render / print the letterpaper, and also the 
> Input PDF ("LogoOnly_Letterpaper.pdf"). 
> The PDF is the output of an SVN file, exported by Inkscape, but AFAIK there 
> isn't even an object at the location where the square appears in printing, so 
> I cannot tell what bugs lets it appear there.
> Thanks for improving the PDF component to also handle this PDF in advance, 
> you guys are great.
> -Update: I tried to give a DPI number to printing, so the pixelating is done 
> within PDF Box, but there the artefact still appears. So rendering with DPI 
> to Image works (also with 300 DPI images), but rendering even with DPI to 
> paper leads to the strange artefact.-  Not true, rendering in PDFBox doesn't 
> show behaviour.
> Update 2: Checked with currently nightly, bug still appears.
>  



--
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-4821) My PDF document is not printed correctly. Rendering it works.

2020-04-29 Thread Daniel Migowski (Jira)


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

Daniel Migowski updated PDFBOX-4821:

Description: 
I am printing PDF files with Apache PDFBox. The attached file shows a second 
turquise square on the top of the page (See attached file 
"ArtefactWhilePrinting.png").

When I try to render the PDF with PDFBox the result looks nice (see attached 
file "RenderingResult.png")

I have provided the code to render / print the letterpaper, and also the Input 
PDF ("LogoOnly_Letterpaper.pdf"). 

The PDF is the output of an SVN file, exported by Inkscape, but AFAIK there 
isn't even an object at the location where the square appears in printing, so I 
cannot tell what bugs lets it appear there.

Thanks for improving the PDF component to also handle this PDF in advance, you 
guys are great.

-Update: I tried to give a DPI number to printing, so the pixelating is done 
within PDF Box, but there the artefact still appears. So rendering with DPI to 
Image works (also with 300 DPI images), but rendering even with DPI to paper 
leads to the strange artefact.-  Not true, rendering in PDFBox doesn't show 
behaviour.

Update 2: Check with currently nightly, bug still appears.

 

  was:
I am printing PDF files with Apache PDFBox. The attached file shows a second 
turquise square on the top of the page (See attached file 
"ArtefactWhilePrinting.png").

When I try to render the PDF with PDFBox the result looks nice (see attached 
file "RenderingResult.png")

I have provided the code to render / print the letterpaper, and also the Input 
PDF ("LogoOnly_Letterpaper.pdf"). 

The PDF is the output of an SVN file, exported by Inkscape, but AFAIK there 
isn't even an object at the location where the square appears in printing, so I 
cannot tell what bugs lets it appear there.

Thanks for improving the PDF component to also handle this PDF in advance, you 
guys are great.

Update: I tried to give a DPI number to printing, so the pixelating is done 
within PDF Box, but there the artefact still appears. So rendering with DPI to 
Image works (also with 300 DPI images), but rendering even with DPI to paper 
leads to the strange artefact. 

Update 2: Check with currently nightly, bug still appears.

 


> My PDF document is not printed correctly. Rendering it works.
> -
>
> Key: PDFBOX-4821
> URL: https://issues.apache.org/jira/browse/PDFBOX-4821
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.15, 2.0.20
> Environment: Windows 10, JDK 1.8.0_152
>Reporter: Daniel Migowski
>Priority: Major
>  Labels: bug, printing, rendering
> Attachments: ArtefactWhilePrinting.png, 
> DevconLetterPaperPrinter.java, DevconLetterPaperRenderer.java, 
> LogoOnly_Letterpaper.pdf, RenderingResult.png
>
>
> I am printing PDF files with Apache PDFBox. The attached file shows a second 
> turquise square on the top of the page (See attached file 
> "ArtefactWhilePrinting.png").
> When I try to render the PDF with PDFBox the result looks nice (see attached 
> file "RenderingResult.png")
> I have provided the code to render / print the letterpaper, and also the 
> Input PDF ("LogoOnly_Letterpaper.pdf"). 
> The PDF is the output of an SVN file, exported by Inkscape, but AFAIK there 
> isn't even an object at the location where the square appears in printing, so 
> I cannot tell what bugs lets it appear there.
> Thanks for improving the PDF component to also handle this PDF in advance, 
> you guys are great.
> -Update: I tried to give a DPI number to printing, so the pixelating is done 
> within PDF Box, but there the artefact still appears. So rendering with DPI 
> to Image works (also with 300 DPI images), but rendering even with DPI to 
> paper leads to the strange artefact.-  Not true, rendering in PDFBox doesn't 
> show behaviour.
> Update 2: Check with currently nightly, bug still appears.
>  



--
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-4821) My PDF document is not printed correctly. Rendering it works.

2020-04-29 Thread Daniel Migowski (Jira)


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

Daniel Migowski updated PDFBOX-4821:

Description: 
I am printing PDF files with Apache PDFBox. The attached file shows a second 
turquise square on the top of the page (See attached file 
"ArtefactWhilePrinting.png").

When I try to render the PDF with PDFBox the result looks nice (see attached 
file "RenderingResult.png")

I have provided the code to render / print the letterpaper, and also the Input 
PDF ("LogoOnly_Letterpaper.pdf"). 

The PDF is the output of an SVN file, exported by Inkscape, but AFAIK there 
isn't even an object at the location where the square appears in printing, so I 
cannot tell what bugs lets it appear there.

Thanks for improving the PDF component to also handle this PDF in advance, you 
guys are great.

-Update: I tried to give a DPI number to printing, so the pixelating is done 
within PDF Box, but there the artefact still appears. So rendering with DPI to 
Image works (also with 300 DPI images), but rendering even with DPI to paper 
leads to the strange artefact.-  Not true, rendering in PDFBox doesn't show 
behaviour.

Update 2: Checked with currently nightly, bug still appears.

 

  was:
I am printing PDF files with Apache PDFBox. The attached file shows a second 
turquise square on the top of the page (See attached file 
"ArtefactWhilePrinting.png").

When I try to render the PDF with PDFBox the result looks nice (see attached 
file "RenderingResult.png")

I have provided the code to render / print the letterpaper, and also the Input 
PDF ("LogoOnly_Letterpaper.pdf"). 

The PDF is the output of an SVN file, exported by Inkscape, but AFAIK there 
isn't even an object at the location where the square appears in printing, so I 
cannot tell what bugs lets it appear there.

Thanks for improving the PDF component to also handle this PDF in advance, you 
guys are great.

-Update: I tried to give a DPI number to printing, so the pixelating is done 
within PDF Box, but there the artefact still appears. So rendering with DPI to 
Image works (also with 300 DPI images), but rendering even with DPI to paper 
leads to the strange artefact.-  Not true, rendering in PDFBox doesn't show 
behaviour.

Update 2: Check with currently nightly, bug still appears.

 


> My PDF document is not printed correctly. Rendering it works.
> -
>
> Key: PDFBOX-4821
> URL: https://issues.apache.org/jira/browse/PDFBOX-4821
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.15, 2.0.20
> Environment: Windows 10, JDK 1.8.0_152
>Reporter: Daniel Migowski
>Priority: Major
>  Labels: bug, printing, rendering
> Attachments: ArtefactWhilePrinting.png, 
> DevconLetterPaperPrinter.java, DevconLetterPaperRenderer.java, 
> LogoOnly_Letterpaper.pdf, RenderingResult.png
>
>
> I am printing PDF files with Apache PDFBox. The attached file shows a second 
> turquise square on the top of the page (See attached file 
> "ArtefactWhilePrinting.png").
> When I try to render the PDF with PDFBox the result looks nice (see attached 
> file "RenderingResult.png")
> I have provided the code to render / print the letterpaper, and also the 
> Input PDF ("LogoOnly_Letterpaper.pdf"). 
> The PDF is the output of an SVN file, exported by Inkscape, but AFAIK there 
> isn't even an object at the location where the square appears in printing, so 
> I cannot tell what bugs lets it appear there.
> Thanks for improving the PDF component to also handle this PDF in advance, 
> you guys are great.
> -Update: I tried to give a DPI number to printing, so the pixelating is done 
> within PDF Box, but there the artefact still appears. So rendering with DPI 
> to Image works (also with 300 DPI images), but rendering even with DPI to 
> paper leads to the strange artefact.-  Not true, rendering in PDFBox doesn't 
> show behaviour.
> Update 2: Checked with currently nightly, bug still appears.
>  



--
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-4821) My PDF document is not printed correctly. Rendering it works.

2020-04-29 Thread Daniel Migowski (Jira)


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

Daniel Migowski commented on PDFBOX-4821:
-

Correct, my fault, passing a DPI number doesn't show the problem. Will update 
the ticket text. Got my Viewer configurations mixed up, sorry.

> My PDF document is not printed correctly. Rendering it works.
> -
>
> Key: PDFBOX-4821
> URL: https://issues.apache.org/jira/browse/PDFBOX-4821
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.15, 2.0.20
> Environment: Windows 10, JDK 1.8.0_152
>Reporter: Daniel Migowski
>Priority: Major
>  Labels: bug, printing, rendering
> Attachments: ArtefactWhilePrinting.png, 
> DevconLetterPaperPrinter.java, DevconLetterPaperRenderer.java, 
> LogoOnly_Letterpaper.pdf, RenderingResult.png
>
>
> I am printing PDF files with Apache PDFBox. The attached file shows a second 
> turquise square on the top of the page (See attached file 
> "ArtefactWhilePrinting.png").
> When I try to render the PDF with PDFBox the result looks nice (see attached 
> file "RenderingResult.png")
> I have provided the code to render / print the letterpaper, and also the 
> Input PDF ("LogoOnly_Letterpaper.pdf"). 
> The PDF is the output of an SVN file, exported by Inkscape, but AFAIK there 
> isn't even an object at the location where the square appears in printing, so 
> I cannot tell what bugs lets it appear there.
> Thanks for improving the PDF component to also handle this PDF in advance, 
> you guys are great.
> Update: I tried to give a DPI number to printing, so the pixelating is done 
> within PDF Box, but there the artefact still appears. So rendering with DPI 
> to Image works (also with 300 DPI images), but rendering even with DPI to 
> paper leads to the strange artefact. 
> Update 2: Check with currently nightly, bug still appears.
>  



--
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-4821) My PDF document is not printed correctly. Rendering it works.

2020-04-29 Thread Daniel Migowski (Jira)


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

Daniel Migowski updated PDFBOX-4821:

Description: 
I am printing PDF files with Apache PDFBox. The attached file shows a second 
turquise square on the top of the page (See attached file 
"ArtefactWhilePrinting.png").

When I try to render the PDF with PDFBox the result looks nice (see attached 
file "RenderingResult.png")

I have provided the code to render / print the letterpaper, and also the Input 
PDF ("LogoOnly_Letterpaper.pdf"). 

The PDF is the output of an SVN file, exported by Inkscape, but AFAIK there 
isn't even an object at the location where the square appears in printing, so I 
cannot tell what bugs lets it appear there.

Thanks for improving the PDF component to also handle this PDF in advance, you 
guys are great.

Update: I tried to give a DPI number to printing, so the pixelating is done 
within PDF Box, but there the artefact still appears. So rendering with DPI to 
Image works (also with 300 DPI images), but rendering even with DPI to paper 
leads to the strange artefact. 

Update 2: Check with currently nightly, bug still appears.

 

  was:
I am printing PDF files with Apache PDFBox. The attached file shows a second 
turquise square on the top of the page (See attached file 
"ArtefactWhilePrinting.png").

When I try to render the PDF with PDFBox the result looks nice (see attached 
file "RenderingResult.png")

I have provided the code to render / print the letterpaper, and also the Input 
PDF ("LogoOnly_Letterpaper.pdf"). 

The PDF is the output of an SVN file, exported by Inkscape, but AFAIK there 
isn't even an object at the location where the square appears in printing, so I 
cannot tell what bugs lets it appear there.

Thanks for improving the PDF component to also handle this PDF in advance, you 
guys are great.

Update: I tried to give a DPI number to printing, so the pixelating is done 
within PDF Box, but there the artefact still appears. So rendering with DPI to 
Image works (also with 300 DPI images), but rendering even with DPI to paper 
leads to the strange artefact. 

 


> My PDF document is not printed correctly. Rendering it works.
> -
>
> Key: PDFBOX-4821
> URL: https://issues.apache.org/jira/browse/PDFBOX-4821
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.15, 2.0.20
> Environment: Windows 10, JDK 1.8.0_152
>Reporter: Daniel Migowski
>Priority: Major
>  Labels: bug, printing, rendering
> Attachments: ArtefactWhilePrinting.png, 
> DevconLetterPaperPrinter.java, DevconLetterPaperRenderer.java, 
> LogoOnly_Letterpaper.pdf, RenderingResult.png
>
>
> I am printing PDF files with Apache PDFBox. The attached file shows a second 
> turquise square on the top of the page (See attached file 
> "ArtefactWhilePrinting.png").
> When I try to render the PDF with PDFBox the result looks nice (see attached 
> file "RenderingResult.png")
> I have provided the code to render / print the letterpaper, and also the 
> Input PDF ("LogoOnly_Letterpaper.pdf"). 
> The PDF is the output of an SVN file, exported by Inkscape, but AFAIK there 
> isn't even an object at the location where the square appears in printing, so 
> I cannot tell what bugs lets it appear there.
> Thanks for improving the PDF component to also handle this PDF in advance, 
> you guys are great.
> Update: I tried to give a DPI number to printing, so the pixelating is done 
> within PDF Box, but there the artefact still appears. So rendering with DPI 
> to Image works (also with 300 DPI images), but rendering even with DPI to 
> paper leads to the strange artefact. 
> Update 2: Check with currently nightly, bug still appears.
>  



--
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-4821) My PDF document is not printed correctly. Rendering it works.

2020-04-29 Thread Daniel Migowski (Jira)


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

Daniel Migowski updated PDFBOX-4821:

Affects Version/s: 2.0.20

> My PDF document is not printed correctly. Rendering it works.
> -
>
> Key: PDFBOX-4821
> URL: https://issues.apache.org/jira/browse/PDFBOX-4821
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.15, 2.0.20
> Environment: Windows 10, JDK 1.8.0_152
>Reporter: Daniel Migowski
>Priority: Major
>  Labels: bug, printing, rendering
> Attachments: ArtefactWhilePrinting.png, 
> DevconLetterPaperPrinter.java, DevconLetterPaperRenderer.java, 
> LogoOnly_Letterpaper.pdf, RenderingResult.png
>
>
> I am printing PDF files with Apache PDFBox. The attached file shows a second 
> turquise square on the top of the page (See attached file 
> "ArtefactWhilePrinting.png").
> When I try to render the PDF with PDFBox the result looks nice (see attached 
> file "RenderingResult.png")
> I have provided the code to render / print the letterpaper, and also the 
> Input PDF ("LogoOnly_Letterpaper.pdf"). 
> The PDF is the output of an SVN file, exported by Inkscape, but AFAIK there 
> isn't even an object at the location where the square appears in printing, so 
> I cannot tell what bugs lets it appear there.
> Thanks for improving the PDF component to also handle this PDF in advance, 
> you guys are great.
> Update: I tried to give a DPI number to printing, so the pixelating is done 
> within PDF Box, but there the artefact still appears. So rendering with DPI 
> to Image works (also with 300 DPI images), but rendering even with DPI to 
> paper leads to the strange artefact. 
>  



--
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-4821) My PDF document is not printed correctly. Rendering it works.

2020-04-29 Thread Daniel Migowski (Jira)


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

Daniel Migowski updated PDFBOX-4821:

Description: 
I am printing PDF files with Apache PDFBox. The attached file shows a second 
turquise square on the top of the page (See attached file 
"ArtefactWhilePrinting.png").

When I try to render the PDF with PDFBox the result looks nice (see attached 
file "RenderingResult.png")

I have provided the code to render / print the letterpaper, and also the Input 
PDF ("LogoOnly_Letterpaper.pdf"). 

The PDF is the output of an SVN file, exported by Inkscape, but AFAIK there 
isn't even an object at the location where the square appears in printing, so I 
cannot tell what bugs lets it appear there.

Thanks for improving the PDF component to also handle this PDF in advance, you 
guys are great.

Update: I tried to give a DPI number to printing, so the pixelating is done 
within PDF Box, but there the artefact still appears. So rendering with DPI to 
Image works (also with 300 DPI images), but rendering even with DPI to paper 
leads to the strange artefact. 

 

  was:
I am printing PDF files with Apache PDFBox. The attached file shows a second 
turquise square on the top of the page (See attached file 
"ArtefactWhilePrinting.png").

When I try to render the PDF with PDFBox the result looks nice (see attached 
file "RenderingResult.png")

I have provided the code to render / print the letterpaper, and also the Input 
PDF ("LogoOnly_Letterpaper.pdf"). 

The PDF is the output of an SVN file, but AFAIK there isn't even an object at 
the location where the square appears in printing, so I cannot tell what bugs 
lets it appear there.

Thanks for improving the PDF component to also handle this PDF in advance, you 
guys are great.


> My PDF document is not printed correctly. Rendering it works.
> -
>
> Key: PDFBOX-4821
> URL: https://issues.apache.org/jira/browse/PDFBOX-4821
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.15
> Environment: Windows 10, JDK 1.8.0_152
>Reporter: Daniel Migowski
>Priority: Major
>  Labels: bug, printing, rendering
> Attachments: ArtefactWhilePrinting.png, 
> DevconLetterPaperPrinter.java, DevconLetterPaperRenderer.java, 
> LogoOnly_Letterpaper.pdf, RenderingResult.png
>
>
> I am printing PDF files with Apache PDFBox. The attached file shows a second 
> turquise square on the top of the page (See attached file 
> "ArtefactWhilePrinting.png").
> When I try to render the PDF with PDFBox the result looks nice (see attached 
> file "RenderingResult.png")
> I have provided the code to render / print the letterpaper, and also the 
> Input PDF ("LogoOnly_Letterpaper.pdf"). 
> The PDF is the output of an SVN file, exported by Inkscape, but AFAIK there 
> isn't even an object at the location where the square appears in printing, so 
> I cannot tell what bugs lets it appear there.
> Thanks for improving the PDF component to also handle this PDF in advance, 
> you guys are great.
> Update: I tried to give a DPI number to printing, so the pixelating is done 
> within PDF Box, but there the artefact still appears. So rendering with DPI 
> to Image works (also with 300 DPI images), but rendering even with DPI to 
> paper leads to the strange artefact. 
>  



--
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-4821) My PDF document is not printed correctly. Rendering it works.

2020-04-29 Thread Daniel Migowski (Jira)
Daniel Migowski created PDFBOX-4821:
---

 Summary: My PDF document is not printed correctly. Rendering it 
works.
 Key: PDFBOX-4821
 URL: https://issues.apache.org/jira/browse/PDFBOX-4821
 Project: PDFBox
  Issue Type: Bug
  Components: Rendering
Affects Versions: 2.0.15
 Environment: Windows 10, JDK 1.8.0_152
Reporter: Daniel Migowski
 Attachments: ArtefactWhilePrinting.png, DevconLetterPaperPrinter.java, 
DevconLetterPaperRenderer.java, LogoOnly_Letterpaper.pdf, RenderingResult.png

I am printing PDF files with Apache PDFBox. The attached file shows a second 
turquise square on the top of the page (See attached file 
"ArtefactWhilePrinting.png").

When I try to render the PDF with PDFBox the result looks nice (see attached 
file "RenderingResult.png")

I have provided the code to render / print the letterpaper, and also the Input 
PDF ("LogoOnly_Letterpaper.pdf"). 

The PDF is the output of an SVN file, but AFAIK there isn't even an object at 
the location where the square appears in printing, so I cannot tell what bugs 
lets it appear there.

Thanks for improving the PDF component to also handle this PDF in advance, you 
guys are great.



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