Hi,

> Clifford Dann <[email protected]> hat am 27. August 2013 um 15:06
> geschrieben:
>
>
> When adding a image to a PDF document using
> org.apache.pdfbox.pdmodel.edit.PDPageContentStream.drawXObject(PDXObject
> xobject, float x, float y, float width, float height), the image has a
> spotty black line at the top of the image, and this goes over several
> lines of the image, and then 2 thirds of a line.
>
>
> I am using org.apache.pdfbox.pdmodel.graphics.xobject.PDPixelMap to
> create the PDXObject.
>
> if I do java.awt.image.BufferedImage bi = new
> java.awt.image.BufferedImage(100, 100,
> java.awt.image.BufferedImage.TYPE_INT_RGB);
> and place the image in the PDF using PDPixelMap, I do not get a solid
> black box, I get the same effect, as putting in a normal PNG at the top
> , and then the rest of the image is solid black.
> using .drawXObject(xobject, 0, 0, 100, 100)
>
> The version of PDFBox I am using is 1.8.2, but this happens with earlier
> version.
> and the version of Java is 1.7.0_17-b02 64-Bit, I am running PDFBox in a
> servelet using tomcat, but this should not have an effect.
>
> I am adding to a existing PDF (using it as a template), and also adding
> lots of text lines ect, it also happens if I do not start from a
> template PDF.
Can you provide us with a sample pdf? Please upload it to a share hoster or
something similar as (most) binary attachments are blocked on our mailing list.

Maybe the source code is important as well. Please post the relevant piece of
code which creates the XObject and adds it to the pdf.

BR
Andreas Lehmkühler

Reply via email to