hudara.guy Posted February 1, 2018 Share Posted February 1, 2018 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. Link to comment Share on other sites More sharing options...
hozawa Posted February 1, 2018 Share Posted February 1, 2018 The most common problem is with the directory separator character. If you've used "" then change that to "/". Link to comment Share on other sites More sharing options...
hudara.guy Posted February 4, 2018 Author Share Posted February 4, 2018 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) ThanksH Guy Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now