pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Lehmkuehler <andr...@lehmi.de>
Subject Re: Problem: Black background of image when printing PDF
Date Sun, 17 Feb 2013 10:32:59 GMT
Hi,

Am 15.02.2013 11:17, schrieb Matej Smit:
> Hello,
>
> we are having problem with PDFBox when trying to print PDFs. In PDF there is
> image with black text, red logo and white background, but when PDF is sent to
> printer, the background of image is printed black (the text is changed from
> black to dark grey so it's still visible). Logo doesn't change. The code is simple:
>
> PDDocument document = null;
> try {
> document = PDDocument.load(fileNamePDF);
>      try {
> document.print();
>      } catch (PrinterException ex) {
> ex.printStackTrace();
>      }
>    } catch (IOException e1) {
> e1.printStackTrace();
> }
>
> We are using PDFBox 1.7.1, the issue we are having is similiar to:
> https://issues.apache.org/jira/browse/PDFBOX-1023 without converting PDF to
> image. Also, colors are not inverted, just white background is printed black. I
> have attached two examples of what is in pdf and what is printed. Sorry, can't
> send you actual PDF at the moment.
Your attachments didn't make it due to some restrictions to the mailing list.
Without the pdf it'll be hard to help you. Did you get any console message like
"... is not supported" or something similar? Did you ever try the latest code
from the trunk?

> Thanks for your help,
> Matej

BR
Andreas Lehmkühler

Mime
View raw message