I am currently using iText to generate PDF reports. I want to set a medium size image as a background in PdfPCell
instead of using background color. Is this possible?
相关问题
- Correctly parse PDF paragraphs with Python
- Set BaseUrl of an existing Pdf Document
- How can I get all text from a PDF in Swift?
- Renaming named destinations in PDF files
- Write multiple lines of text in a flow with report
相关文章
- Render embedded image in PDF using Flying-Saucer f
- Python Sendgrid send email with PDF attachment fil
- C# MVC website PDF file in stored in byte array, d
- Generating .afm from .ttf [closed]
- How To Programmatically Enable/Disable 'Displa
- How to reduce PDF file size programmatically in Ja
- Search and replace placeholder text in PDF with Py
- How to convert PDF version 1.5 to version 1.4 in P
You can find an example on how to do this with iText 5.5.1 here. You need to create your own implementation of the
PdfPCellEvent
interface, for instance:Then you need to create an instance of this event and declare it to the cell that needs this background:
This code was tested with the most recent version of iText and the result looks like this. You're using a version of iText with my name (Lowagie) in the package names (com.lowagie). This means that this sample may or may not work. We don't know and we won't test as the version you're using has been declared EOL years ago. It is no longer supported.