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

Tilman Hausherr edited comment on PDFBOX-5617 at 6/4/23 6:58 AM:
-----------------------------------------------------------------

Ok, it's more tricky here. I tried it myself now and yes it got worse. So I 
changed the file so that "Difference" turned into "Normal" and now the ordinary 
rendering fails. That got me curious. This file does the barcode with vector 
graphics (which is a good thing). However:
{code}
  /R8 gs
  1 1 1 rg
  0 0 2880 4320 re
  f
  /R9 gs
  188.512 3937.48 906.918 27.3125 re
  f
{code}
The color is white. So my guess is that it's the "Difference" blending that 
makes it black.

I don't have a mac.

So the only solution for you would be to print as an image. -Or to change the 
PDF itself so that it uses black color and no blending.-


was (Author: tilman):
Ok, it's more tricky here. I tried it myself now and yes it got worse. So I 
changed the file so that "Difference" turned into "Normal" and now the ordinary 
rendering fails. That got me curious. This file does the barcode with vector 
graphics (which is a good thing). However:
{code}
  /R8 gs
  1 1 1 rg
  0 0 2880 4320 re
  f
  /R9 gs
  188.512 3937.48 906.918 27.3125 re
  f
{code}
The color is white. So my guess is that it's the "Difference" blending that 
makes it black.

I don't have a mac.

So the only solution for you would be to print as an image. Or to change the 
PDF itself so that it uses black color and no blending.

> PDF content prints mostly blank
> -------------------------------
>
>                 Key: PDFBOX-5617
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5617
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.28
>            Reporter: Tres Finocchiaro
>            Priority: Major
>              Labels: print, printing
>         Attachments: expected-vs-actual.png, original.pdf, output.pdf, 
> screenshot-1.png
>
>
> Please see *expected-vs-actual.png* attachment.
> The attached PDF ({*}original.pdf{*}) prints most of its text content as 
> blank.  Some printers show a thin outline around the text, but the virtual 
> printers show most content as blank ({*}output.pdf{*}).



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to