Hi,
Am 13.07.2011 08:06, schrieb SasiKanth Chandran:
Can anyone help me resolve the issue ?
Please check your mail, I already posted an answer to your question [1]
On Tue, Jul 12, 2011 at 1:28 PM, SasiKanth Chandran<sasi.chand...@gmail.com
wrote:
Hi,
I am trying to generate a PDF which will contain a report in tabular
format. At the top left corner of each page i added a .jpeg...but the image
is not shown when viewing the PDF.
I understood from the pdfbox mailing archive list that " PDJpeg can not be
created while a ContentStream is being operated on." But i am not sure
about solution for this issue.
Can you please guide me the way to show image along with text/table in
the PDF doc ?
Code Snippet:
PDPage page = new PDPage();
doc.addPage( page );
PDPageContentStream contentStream = new PDPageContentStream(doc, page);
PDJpeg imageObj = new PDJpeg(doc, new FileInputStream("logo.jpg"));
contentStream.drawImage( imageObj, 10, 760 );
createTable(doc, page, contentStream, slicedContent,currentPage,noOfPages);
Attached the two generated pdf with added image and without image along
with table data.
Thanks,
Sasi
BR
Andreas Lehmkühler
[1] http://markmail.org/message/z7v5ygcfdwr3jy2a