Exports (with images) well to PDF on Windows but not on Linux

0

I am using Spring boot with Jasper Reports to generate a PDF file. The PDF file contains a table with country flags (small png files) in one of its columns.

The column's type is java.awt.Image. And I assign the Image file itself using Java code when filling the report, since this is a dynamic image.

The PDF is generated successfully, and all is well when generating it on Windows machine, but when generating it on Linux machine, the flags are not shown in the PDF.

 

hudara.guy's picture
Joined: Aug 7 2017 - 5:11am
Last seen: 1 year 3 months ago

2 Answers:

0

The most common problem is with the directory separator character. If you've used "\" then change that to "/".

hozawa's picture
52422
Joined: Apr 24 2010 - 4:31pm
Last seen: 5 months 1 week ago
0

Thanks, but this is not the problem. In the dataset I put the filename as string, and in my java code I fill it with the correct filename, and checks if the file exist.

Still, working on windows but not working on Linux. (I even match the letter case)

 

Thanks

H Guy

hudara.guy's picture
Joined: Aug 7 2017 - 5:11am
Last seen: 1 year 3 months ago
Feedback
randomness