akash.shrimali Posted September 25 Share Posted September 25 Hi there,We are trying to design a pdf in which we have components such as labels and text fields from jasper studio but when we deploy on server, the spaces, alignment and indentation with what is available on jasper studio local is not matching with the design on server. For example : i have label with Size(LxDxI) in which the font size of this is 8px. when i try to give width to this size label , it is taking space and cutting text after D letter in this label. Could you please suggest some solution to overcome this. Link to comment Share on other sites More sharing options...
anish.rai Posted September 26 Share Posted September 26 Thank you for posting to the Jaspersoft Community. Our team of experts has read your question and we are working to get you an answer as quickly as we can. If you have a Jaspersoft Professional Subscription plan, please visit https://support.tibco.com/s/ for direct access to our technical support teams offering guaranteed response times. Link to comment Share on other sites More sharing options...
akash.shrimali Posted September 27 Author Share Posted September 27 Thank you for your response, awaiting confirmation for the same. Link to comment Share on other sites More sharing options...
Thomas Tibcken Posted September 27 Share Posted September 27 Hi Akash, can you please provide more details of your environment on the "new ARM server"?What OS + Version, what Version of Jaspersoft + Version, what version of java using for Studio and Server? Are you using a "font extensions" and is it the same on both: Studio and Server? Your problem might be in that context when you have a bad behavior of labels, fonts and spacing. THX Thomas Link to comment Share on other sites More sharing options...
akash.shrimali Posted September 27 Author Share Posted September 27 hI ThomasPlease find answers inline can you please provide more details of your environment on the "new ARM server"?The linux version is following 4.18.0-477.13.1.el8_8.aarch64 #1 SMP Thu May 18 08:55:50 EDT 2023 aarch64 aarch64 aarch64 GNU/LinuxWhat OS + Version, what Version of Jaspersoft + Version, what version of java using for Studio and Server? OS version : linux , Jaspersoft version : 6.20 , java version : "17.0.2" 2022-01-18 for both studio and serverAre you using a "font extensions" and is it the same on both: Studio and Server? Your problem might be in that context when you have a bad behavior of labels, fonts and spacing. No we are not using font extensions on both studio and server. Link to comment Share on other sites More sharing options...
akash.shrimali Posted September 27 Author Share Posted September 27 hI ThomasPlease find answers inline can you please provide more details of your environment on the "new ARM server"?The linux version is following 4.18.0-477.13.1.el8_8.aarch64 #1 SMP Thu May 18 08:55:50 EDT 2023 aarch64 aarch64 aarch64 GNU/LinuxWhat OS + Version, what Version of Jaspersoft + Version, what version of java using for Studio and Server? OS version : linux , Jaspersoft version : 6.20 , java version : "17.0.2" 2022-01-18 for both studio and serverAre you using a "font extensions" and is it the same on both: Studio and Server? Your problem might be in that context when you have a bad behavior of labels, fonts and spacing. No we are not using font extensions on both studio and server. Link to comment Share on other sites More sharing options...
mrabbi Posted September 28 Share Posted September 28 Hi,as Thomas said you should try to leverage the "font extensions" JasperReports mechanism in order to properly use fonts sizing / alignment.That said, the output of a command like "uname -a" (or similar) does not help in understanding which Linux flavour you are using (i.e Debian, Mint, Ubuntu etc).There is no indication if you are using a Jaspersoft Studio standalone product or a plug-in version with a specific Eclipse version. The 6.20 numbering is generic, please specify the correct one including the minor qualifier.Also no indication of the currently installed version of JasperReports Server (where the report gets deployed) is present.Regards,Massimo. Link to comment Share on other sites More sharing options...
akash.shrimali Posted September 29 Author Share Posted September 29 Hi Massimo,I am using default font sans serif from static text.The Linux version i am using is RHEL8 linux.The current version of jasper studio standalone is Jaspersoft® Studio 6.20.5 - Visual Designer for JasperReports 6.20.5.I am deploying dot jasper (.jasper) files on server by compiling .jrxml.we are displaying it in pdf form on U.I. Link to comment Share on other sites More sharing options...
rpeguet Posted October 18 Share Posted October 18 Hello Akash,JR and by extension JSS and JRS is a pixel-perfect report engine. If you see a mismatch between the jrxml template and the pdf output, this means something is happening when you export the .jasper into a report.As mentioned before it could be a font issue (since each font uses more or less space to display the same text) and different OS work with fonts differently so you need to check on that.But there could be other properties such as the overflow property that can affect the font size as well.Could you share the jrxml, the data to run the report, and eventually a screen recording or screenshots showing the issue so we can replicate the issue what you are describing is not standard behavior of the software. Cheers 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