[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-20 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr commented on PDFBOX-5601:
-

Thanks for the feedback and the report!

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27, 2.0.28, 3.0.0 PDFBox
>Reporter: Tres Finocchiaro
>Assignee: Tilman Hausherr
>Priority: Major
>  Labels: print, printing
> Fix For: 2.0.29, 3.0.0 PDFBox
>
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png, screenshot-1.png, screenshot-2.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-20 Thread Tres Finocchiaro (Jira)


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

Tres Finocchiaro commented on PDFBOX-5601:
--

I'm fine with the patch in its current form.  

I felt obligated to provide a larger variety of testing results so that Apache 
could determine scope.  The only non-Linux Unix I was able to test was Solaris, 
which was fine WITH and was fine WITHOUT the patch, so the existing code is 
fine.

I've tested on ARM64 Linux and ARM64 Windows, but they match that of their 
Intel counterparts, so it's not architecturally specific... except on Mac.  If 
pdfbox is OK with the patch, I am too.  The user that reported this is already 
using the snapshot from the 2.0 branch as a workaround.

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27, 2.0.28, 3.0.0 PDFBox
>Reporter: Tres Finocchiaro
>Priority: Major
>  Labels: print, printing
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png, screenshot-1.png, screenshot-2.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-20 Thread ASF subversion and git services (Jira)


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

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

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

PDFBOX-5601: improve comment

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27, 2.0.28, 3.0.0 PDFBox
>Reporter: Tres Finocchiaro
>Priority: Major
>  Labels: print, printing
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png, screenshot-1.png, screenshot-2.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-20 Thread ASF subversion and git services (Jira)


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

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

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

PDFBOX-5601: improve comment

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27, 2.0.28, 3.0.0 PDFBox
>Reporter: Tres Finocchiaro
>Priority: Major
>  Labels: print, printing
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png, screenshot-1.png, screenshot-2.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-19 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr commented on PDFBOX-5601:
-

Are we done here? So the patch doesn't work on ARM mac, but the patch isn't 
active there anyway.
If you run the latest snapshot on the ARM mac, does the flipcart image appear? 
I'm asking because that one is ARGB.

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27, 2.0.28, 3.0.0 PDFBox
>Reporter: Tres Finocchiaro
>Priority: Major
>  Labels: print, printing
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png, screenshot-1.png, screenshot-2.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-15 Thread Tres Finocchiaro (Jira)


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

Tres Finocchiaro commented on PDFBOX-5601:
--

Added Intel Mac results, as they differ from my M1 testing.

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27, 2.0.28, 3.0.0 PDFBox
>Reporter: Tres Finocchiaro
>Priority: Major
>  Labels: print, printing
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png, screenshot-1.png, screenshot-2.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-15 Thread Tres Finocchiaro (Jira)


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

Tres Finocchiaro commented on PDFBOX-5601:
--

So far, the only OS that's not OK with this patch is MacOS.

 

 
||OS||Bug Exists||OK with patch||
|Ubuntu 22.04|Yes|Yes|
|Solaris 11 (Java 8)|No|Yes|
|Fedora 34|Yes|Yes|
|MacOS 13|No|*{color:#FF}No{color}*|
|Windows 11|Yes|Yes|

I tried HaikuOS as well, but it seems to be missing Java bindings for its 
non-CUPS printing subsystem.

Solaris didn't exhibit the bug, but didn't seem to be affected by the patch 
either.

 

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27, 2.0.28, 3.0.0 PDFBox
>Reporter: Tres Finocchiaro
>Priority: Major
>  Labels: print, printing
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png, screenshot-1.png, screenshot-2.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-15 Thread Tres Finocchiaro (Jira)


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

Tres Finocchiaro commented on PDFBOX-5601:
--

{quote}> The other specifically supported platform is AS/400 😂
{quote}
Out of curiosity, I registered for PUB400.com.  It's running Java 8, but the 
default user permissions don't allow creation of an output queue. 🤷‍♂️😏

 

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27, 2.0.28, 3.0.0 PDFBox
>Reporter: Tres Finocchiaro
>Priority: Major
>  Labels: print, printing
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png, screenshot-1.png, screenshot-2.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-15 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr commented on PDFBOX-5601:
-

The other specifically supported platform is AS/400 😂

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27, 2.0.28, 3.0.0 PDFBox
>Reporter: Tres Finocchiaro
>Priority: Major
>  Labels: print, printing
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png, screenshot-1.png, screenshot-2.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-15 Thread Tres Finocchiaro (Jira)


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

Tres Finocchiaro commented on PDFBOX-5601:
--

{quote}>  but that one assumes linux is "the rest" and doesn't specifically ask 
for Ubuntu. I'd like to include the change for windows and ubuntu specifically, 
until more people complain.
{quote}
 

I'd be happy to replay these tests on other platforms to clarify scope.

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27, 2.0.28, 3.0.0 PDFBox
>Reporter: Tres Finocchiaro
>Priority: Major
>  Labels: print, printing
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png, screenshot-1.png, screenshot-2.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-14 Thread ASF subversion and git services (Jira)


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

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

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

PDFBOX-5601: limit workaround to Windows and Linux

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27, 2.0.28, 3.0.0 PDFBox
>Reporter: Tres Finocchiaro
>Priority: Major
>  Labels: print, printing
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png, screenshot-1.png, screenshot-2.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-14 Thread ASF subversion and git services (Jira)


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

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

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

PDFBOX-5601: limit workaround to Windows and Linux

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27, 2.0.28, 3.0.0 PDFBox
>Reporter: Tres Finocchiaro
>Priority: Major
>  Labels: print, printing
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png, screenshot-1.png, screenshot-2.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-14 Thread Jira


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

Andreas Lehmkühler commented on PDFBOX-5601:


On Fedora "os.name" is set to "Linux" and I expect other Linux distros to 
return the same value. It doesn't makes sense to add a specific information 
about the used distribution to that value as it is just a "flavour" of Linux 
but not different operating systems

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27, 2.0.28, 3.0.0 PDFBox
>Reporter: Tres Finocchiaro
>Priority: Major
>  Labels: print, printing
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png, screenshot-1.png, screenshot-2.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-14 Thread Jira


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

Andreas Lehmkühler commented on PDFBOX-5601:


[~tilman] you are right, sorry for missing that detail


> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27, 2.0.28, 3.0.0 PDFBox
>Reporter: Tres Finocchiaro
>Priority: Major
>  Labels: print, printing
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png, screenshot-1.png, screenshot-2.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-14 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr commented on PDFBOX-5601:
-

Oracle internal review ID : 9075262

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27, 2.0.28, 3.0.0 PDFBox
>Reporter: Tres Finocchiaro
>Priority: Major
>  Labels: print, printing
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png, screenshot-1.png, screenshot-2.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-14 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr commented on PDFBOX-5601:
-

[~lehmi] thanks, but that one assumes linux is "the rest" and doesn't 
specifically ask for Ubuntu. I'd like to include the change for windows and 
ubuntu specifically, until more people complain.

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27, 2.0.28, 3.0.0 PDFBox
>Reporter: Tres Finocchiaro
>Priority: Major
>  Labels: print, printing
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png, screenshot-1.png, screenshot-2.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-14 Thread Jira


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

Andreas Lehmkühler commented on PDFBOX-5601:


{quote}What do you get for Ubuntu when you call System.getProperty("os.name") 
?{quote}
We already have some code doing exactly what you are looking for: 
{{org.apache.fontbox.util.autodetect.FontFileFinder.determineDirFinder()}}


> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27, 2.0.28, 3.0.0 PDFBox
>Reporter: Tres Finocchiaro
>Priority: Major
>  Labels: print, printing
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png, screenshot-1.png, screenshot-2.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-13 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr commented on PDFBOX-5601:
-

Re making the patch conditional, sure, I can do that. So it should be on 
Windows and Ubuntu. What do you get for Ubuntu when you call 
{{System.getProperty("os.name")}} ?

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27, 2.0.28, 3.0.0 PDFBox
>Reporter: Tres Finocchiaro
>Priority: Major
>  Labels: print, printing
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png, screenshot-1.png, screenshot-2.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-13 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr commented on PDFBOX-5601:
-

One of the images should be "2" because that is the flipcart image which has 
transparency. This is created in PDImageXObject.scaleImage() .

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27, 2.0.28, 3.0.0 PDFBox
>Reporter: Tres Finocchiaro
>Priority: Major
>  Labels: print, printing
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png, screenshot-1.png, screenshot-2.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-13 Thread Tres Finocchiaro (Jira)


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

Tres Finocchiaro commented on PDFBOX-5601:
--

> I can't help much here, because I don't own a mac. Please play with this code 
> to find out if there is something that works for printers on all systems.

For starters, I'm working from `pdfbox` just to see if there was any observable 
differences...  I added the following debug line to the code... 

 
{code:java}
if (deviceType == GraphicsDevice.TYPE_PRINTER &&
image.getType() != BufferedImage.TYPE_4BYTE_ABGR)
{
   LOG.info("Type: " + image.getType()); // ### DEBUG LINE ADDED HERE ###{code}
I'm not sure if this is helpful at all, but at a glance is odd... 

Mac:
{code:java}
INFO: Type: 1
INFO: Type: 1
INFO: Type: 1
INFO: Type: 1
INFO: Type: 1
INFO: Type: 1
INFO: Type: 1
INFO: Type: 1 {code}
Windows:
{code:java}
INFO: Type: 2
INFO: Type: 1
INFO: Type: 1
INFO: Type: 2
INFO: Type: 1
INFO: Type: 1
INFO: Type: 1
INFO: Type: 2
INFO: Type: 1
INFO: Type: 1
INFO: Type: 2
INFO: Type: 1
INFO: Type: 1
INFO: Type: 1
INFO: Type: 2 {code}
Linux:
{code:java}
INFO: Type: 1
INFO: Type: 1
INFO: Type: 2
INFO: Type: 1
INFO: Type: 1
INFO: Type: 1
INFO: Type: 2
INFO: Type: 1
INFO: Type: 1
INFO: Type: 2
INFO: Type: 1
INFO: Type: 1
INFO: Type: 1
INFO: Type: 2
INFO: Type: 1
INFO: Type: 1
INFO: Type: 2
INFO: Type: 1
INFO: Type: 1
INFO: Type: 1
INFO: Type: 2
INFO: Type: 1
INFO: Type: 1
INFO: Type: 2
INFO: Type: 1
INFO: Type: 1
INFO: Type: 1
INFO: Type: 2
INFO: Type: 1
INFO: Type: 1
INFO: Type: 2
INFO: Type: 1
INFO: Type: 1
INFO: Type: 1
INFO: Type: 2
INFO: Type: 1
INFO: Type: 1
INFO: Type: 2
INFO: Type: 1
INFO: Type: 1
INFO: Type: 1
INFO: Type: 2
INFO: Type: 1
INFO: Type: 1
INFO: Type: 2
INFO: Type: 1
INFO: Type: 1
INFO: Type: 1
INFO: Type: 2
INFO: Type: 1
INFO: Type: 1
INFO: Type: 2
INFO: Type: 1
INFO: Type: 1
INFO: Type: 1
INFO: Type: 2
INFO: Type: 1
INFO: Type: 1
INFO: Type: 2
INFO: Type: 1
INFO: Type: 1
INFO: Type: 1
INFO: Type: 2 {code}
 

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27, 2.0.28, 3.0.0 PDFBox
>Reporter: Tres Finocchiaro
>Priority: Major
>  Labels: print, printing
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png, screenshot-1.png, screenshot-2.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-13 Thread Tres Finocchiaro (Jira)


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

Tres Finocchiaro commented on PDFBOX-5601:
--

[~tilman] would it make more sense to make the PDFBOX-5601 patch conditional?  
Quoting:

> I'd also like to mention that the issue seems to be specific to Windows; 
> testing on MacOS, it looks OK.

Clarification since posting that, I did test on Ubuntu 22.04, and the issue 
is present there as well as Windows.

> I'm wondering if this change ruins other of your printings that you reported 
> here, as this introduces transparency where there were not.

This is a very good point.

!screenshot-2.png|width=378,height=385!

 

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27, 2.0.28, 3.0.0 PDFBox
>Reporter: Tres Finocchiaro
>Priority: Major
>  Labels: print, printing
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png, screenshot-1.png, screenshot-2.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-13 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr commented on PDFBOX-5601:
-

I can't help much here, because I don't own a mac. Please play with this code 
to find out if there is something that works for printers on all systems.
{code}
public class PDFBox5601BadPrint implements Printable
{

public static void main(String[] args) throws PrinterException
{
new PDFBox5601BadPrint().doStuff();
}

PDFBox5601BadPrint()
{
}

void doStuff() throws PrinterException
{
PrinterJob job = PrinterJob.getPrinterJob();
job.setPrintService(PrintServiceLookup.lookupDefaultPrintService());
job.setPrintable(this);
if (job.printDialog())
{
job.print();
}
}

@Override
public int print(Graphics graphics, PageFormat pageFormat, int index)
{
if (index == 0)
{
Graphics2D g2d = (Graphics2D) graphics;
try
{
// TYPE_INT_ARGB with hints bad
// TYPE_INT_ARGB without hints bad
// TYPE_4BYTE_ABGR with hints good but blurry
// TYPE_4BYTE_ABGR without rendering hints all good
// TYPE_4BYTE_ABGR with VALUE_RENDER_QUALITY blurry
// TYPE_4BYTE_ABGR with VALUE_INTERPOLATION_BICUBIC blurry
//g2d.setRenderingHint(RenderingHints.KEY_INTERPOLATION, 
RenderingHints.VALUE_INTERPOLATION_BICUBIC);
//g2d.setRenderingHint(RenderingHints.KEY_RENDERING, 
RenderingHints.VALUE_RENDER_QUALITY);
//g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, 
RenderingHints.VALUE_ANTIALIAS_ON);
BufferedImage bim = ImageIO.read(new 
URL("https://issues.apache.org/jira/secure/attachment/13058029/PDFBOX-5601-original-barcode.png";).openStream());
BufferedImage bim2 = new BufferedImage(bim.getWidth(), 
bim.getHeight(), BufferedImage.TYPE_4BYTE_ABGR);
Graphics g = bim2.getGraphics();
g.drawImage(bim, 0, 0, null);
g.dispose();
bim = bim2;
System.out.println(bim);
g2d.drawImage(bim, AffineTransform.getScaleInstance(2, 2), 
null);
g2d.transform(new AffineTransform(1, 0, 0, -1, 0, 100));
g2d.scale(0.01, 0.001);
AffineTransform at = new AffineTransform(0, -1410, 277.5, 0, 
221.25, 3036.25);
g2d.drawImage(bim, at, null);
}
catch (IOException ex)
{
ex.printStackTrace();
System.exit(-1);
}
return Printable.PAGE_EXISTS;
}
return Printable.NO_SUCH_PAGE;
}
}
{code}


> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27, 2.0.28, 3.0.0 PDFBox
>Reporter: Tres Finocchiaro
>Priority: Major
>  Labels: print, printing
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png, screenshot-1.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-13 Thread Tres Finocchiaro (Jira)


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

Tres Finocchiaro commented on PDFBOX-5601:
--

[~tilman] thanks kindly for this patch.  I agree, it seems to fix the issue on 
Windows, however it seems to introduce a new issue on MacOS where all images 
for this PDF are now blank.  The newly introduced issue does not appear to 
affect Ubuntu 22.04.

My steps for testing:

{code:java}
git clone https://github.com/apache/pdfbox
cd pdfbox
git checkout 2.0
mvn clean install
java -jar app/target/pdfbox-app-2.0.29-SNAPSHOT.jar PrintPDF 
~/Downloads/234457694-edit.pdf
{code}


 !screenshot-1.png! 

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27, 2.0.28, 3.0.0 PDFBox
>Reporter: Tres Finocchiaro
>Priority: Major
>  Labels: print, printing
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png, screenshot-1.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-13 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr commented on PDFBOX-5601:
-

I found out that by copying the BufferedImage into a TYPE_4BYTE_ABGR image (but 
not TYPE_INT_ARGB) then it works fine. (Sadly this workaround does not solve 
PDFBOX-4010)

[~tresf] please test the new version whether it works for you, and also test 
the code I posted earlier, on a non windows system because I want to report the 
bug to Oracle.

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27
>Reporter: Tres Finocchiaro
>Priority: Major
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-13 Thread ASF subversion and git services (Jira)


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

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

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

PDFBOX-5601: avoid terrible output on printer unless TYPE_4BYTE_ABGR

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27
>Reporter: Tres Finocchiaro
>Priority: Major
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-13 Thread ASF subversion and git services (Jira)


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

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

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

PDFBOX-5601: avoid terrible output on printer unless TYPE_4BYTE_ABGR

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27
>Reporter: Tres Finocchiaro
>Priority: Major
> Attachments: 234457694-edit.pdf, 
> PDFBOX-5601-badbarcodeprint-reduced.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-12 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr commented on PDFBOX-5601:
-

Update: it's not related to the flipcart image, I was able to reproduce the 
effect with only the rotated barcode. With this, I was able to create a non 
PDFBox code:
{code}
public class PDFBox5601BadPrint implements Printable
{
public static void main(String[] args) throws PrinterException
{
new PDFBox5601BadPrint().doStuff();
}

PDFBox5601BadPrint()
{
}

void doStuff() throws PrinterException
{
PrinterJob job = PrinterJob.getPrinterJob();
job.setPrintService(PrintServiceLookup.lookupDefaultPrintService());
job.setPrintable(this);
if (job.printDialog())
{
job.print();
}
}

@Override
public int print(Graphics graphics, PageFormat pageFormat, int index)
{
if (index == 0)
{
Graphics2D g2d = (Graphics2D) graphics;
try
{
BufferedImage bim = ImageIO.read(new 
URL("https://issues.apache.org/jira/secure/attachment/13058029/PDFBOX-5601-original-barcode.png";).openStream());
g2d.drawImage(bim, AffineTransform.getScaleInstance(2, 2), 
null);
g2d.transform(new AffineTransform(1, 0, 0, -1, 0, 100));
g2d.scale(0.01, 0.001);
AffineTransform at = new 
AffineTransform(0,-1410,277.5,0,221.25,3036.25);
g2d.drawImage(bim, at, null);
}
catch (IOException ex)
{
ex.printStackTrace();
System.exit(-1);
}
return Printable.PAGE_EXISTS;
}
return Printable.NO_SUCH_PAGE;
}
}
{code}

Please try this code on a windows and a non windows system to see if there are 
any differences.

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27
>Reporter: Tres Finocchiaro
>Priority: Major
> Attachments: 234457694-edit.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-12 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr commented on PDFBOX-5601:
-

Re my deleted comment: it was a code 128 barcode which has more widths than 2.

The flipkart image is ARGB so there's transparency, which has resulted in weird 
behavior in the past. I also remember one printing problem that had a rotated 
barcode vanishing completely.

It's likely java or windows, because our code is the same.

I failed to reproduce the effect for now but I'll try some different strategies.

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27
>Reporter: Tres Finocchiaro
>Priority: Major
> Attachments: 234457694-edit.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-11 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr commented on PDFBOX-5601:
-

Would you agree that the output in  [^reproduced.pdf] reproduces the effect 
(although not the same as yours)? There are three widths now. IIRC 1D barcodes 
have 2 widths.
{code}
public class PDFBox5601BadPrint implements Printable
{
public static void main(String[] args) throws PrinterException
{
new PDFBox5601BadPrint().doStuff();
}

PDFBox5601BadPrint()
{
}

void doStuff() throws PrinterException
{
PrinterJob job = PrinterJob.getPrinterJob();
job.setPrintService(PrintServiceLookup.lookupDefaultPrintService());
job.setPrintable(this);
if (job.printDialog())
{
job.print();
}
}

@Override
public int print(Graphics graphics, PageFormat pageFormat, int index)
{
if (index == 0)
{
Graphics2D g2d = (Graphics2D) graphics;
try
{
AffineTransform at = 
AffineTransform.getRotateInstance(Math.toRadians(90));
at.translate(150, -200);
at.scale(1.5f, 1);
BufferedImage bim = ImageIO.read(new 
URL("https://issues.apache.org/jira/secure/attachment/13058029/PDFBOX-5601-original-barcode.png";).openStream());
g2d.drawImage(bim, at, null);
}
catch (IOException ex)
{
ex.printStackTrace();
System.exit(-1);
}
return Printable.PAGE_EXISTS;
}
return Printable.NO_SUCH_PAGE;
}
}
{code}


> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27
>Reporter: Tres Finocchiaro
>Priority: Major
> Attachments: 234457694-edit.pdf, PDFBOX-5601-original-barcode.png, 
> jpeg.jpg, preview.png, reproduced.pdf
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-11 Thread Tres Finocchiaro (Jira)


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

Tres Finocchiaro commented on PDFBOX-5601:
--

I agree it's bad quality, but I believe the artifacts are worse with certain 
printer drivers such as XPS Document Writer or Microsoft Print to PDF.  I'd 
also like to mention that the issue seems to be specific to Windows; testing on 
MacOS, it looks OK.

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27
>Reporter: Tres Finocchiaro
>Priority: Major
> Attachments: 234457694-edit.pdf, jpeg.jpg, preview.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[jira] [Commented] (PDFBOX-5601) Barcode corrupted when printing document

2023-05-11 Thread Tilman Hausherr (Jira)


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

Tilman Hausherr commented on PDFBOX-5601:
-

I can reproduce this. The barcode is also in terrible quality, it is a low 
quality JPEG with artifacts.
!jpeg.jpg! 

> Barcode corrupted when printing document
> 
>
> Key: PDFBOX-5601
> URL: https://issues.apache.org/jira/browse/PDFBOX-5601
> Project: PDFBox
>  Issue Type: Bug
>  Components: Rendering
>Affects Versions: 2.0.27
>Reporter: Tres Finocchiaro
>Priority: Major
> Attachments: 234457694-edit.pdf, jpeg.jpg, preview.png
>
>
> When printing the attached document, the barcode on the left side is 
> corrupted.  Please see preview of desired versus actual.
>  !preview.png! 
> * This does not occur when printing with other applications
> * This issue also occurs on the latest 3.0 alpha version
> {code:java}
> java -jar pdfbox-app-2.0.27.jar PrintPDF 234457694-edit.pdf
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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