# How to add images to the PDF report without using Katalon features

**URL:** <https://forum.katalon.com/t/how-to-add-images-to-the-pdf-report-without-using-katalon-features/127426>\
**Category:** Miscellaneous\
**Created:** [April 9, 2024, 3:23pm UTC](https://forum.katalon.com/t/how-to-add-images-to-the-pdf-report-without-using-katalon-features/127426 "2024-04-09T15:23:03Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![jhilario](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/jhilario/32/27475_2.png) [@jhilario](https://forum.katalon.com/u/jhilario)\
**Post date:** [January 8, 2025, 6:58pm UTC](https://forum.katalon.com/t/how-to-add-images-to-the-pdf-report-without-using-katalon-features/127426/3 "2025-01-08T18:58:47Z")

</div>

```auto
	private static final KeywordLogger logger = KeywordLogger.getInstance(this.getClass())

	static void attachImageToReport(String imagePath, LogLevel logLevel, String description = '') {
		String absolutePath = Paths.get(imagePath).toAbsolutePath().toString()
		Map<String, String> attributes = new HashMap<>()
		attributes.put(StringConstants.XML_LOG_ATTACHMENT_PROPERTY, absolutePath)
		logger.logPassed(description, attributes)
	}

```

¡This code solve my problem!

---

_[View the full topic](https://forum.katalon.com/t/how-to-add-images-to-the-pdf-report-without-using-katalon-features/127426)._
