Jasper generated pdf report character rendering issue for language like Hindi - formatting

Report created from jasper not rendering properly for pdf in case of Hindi language.
e.g.
Correct Rendering should look like that
५ दिन
but rendered it wrongly.
Getting rendering issue for some characters only.
My application is running on Ubuntu 12.04.2 LTS (GNU/Linux 3.5.0-23-generic x86_64).
I used Mangal ttf file for rendering Hindi language.
I have tried following:
ireport pdf ecoding setup.
fontName="Mangal" size="9" isStrikeThrough="false" pdfFontName="akshar.ttf" pdfEncoding="Identity-H" isPdfEmbedded="true"
Font Extension and included jar file into my application.
Even upgraded my application jasper library.
Upgrading of Mangal ttf file.
Upgraded ubuntu specifically mscorefonts.
Help needed ASAP.
Thanks.

Related

wkhtmltopdf goes extremely slow on different environment

I am developing a PHP web application with CakePHP 3.4 framework, and i am using wkhtmltopdf 0.12.4 to output dynamic content in a .pdf file. Currently i'm using three different environments where i develop and test my application:
In my local environment (XAMPP 32-bit for Windows), wkhtmltopdf works great. It takes ~1 second in rendering .pdf files
In a remote testing environment (CentOS 7 64-bit using apache2, 4GB memory), works great too.
In my third remote testing environment (Another CentOS 7 64-bit distro with similar CPU specs as the second one and 4GB memory), wkhtmltopdf takes up to 20 seconds in rendering the same .pdf file
What could be causing this behavior in the third environment? How can i monitor or debug wkhtmltopdf process to help me identify why .pdf rendering is so slow?
Remove rgba and set border-radius to 1px in your CSS files (or completely remove them if they are not needed). That should speed up the PDF generation process.
Similar issue
Another reson can be your current default printer on windows. See:
https://github.com/wkhtmltopdf/wkhtmltopdf/issues/4891
If you use a standard printer that is
a network printer
you use the windows default driver for that printer and have not installed the manufactors printer driver
-> wkhtmltopdf is really slow

PhantomJs Arabic font missing boxes are coming on jpg file

Hi I am trying to take screenshot of a Google page with Arabic keywords using phantom js but on jpeg image Arabic font is missing, boxes are coming instead.
Phantomjs version - 1.9.7
Centos 6.5
Steps I followed to solve this
1. Checked if Arabic Support is available:
yum grouplist
2. Then if available install arabic support:
yum groupinstall 'Arabic Support'
This solved the issue.

PDF plugin issue with Sonar 5.1

I am trying to use SonarQube version 5.1. But there is no PDF Plugin support for this version of SonarQube as per my limited knowledge, hence I am not able to Generate/Download PDF format for analysis I have done.
Can anyone suggest as what configuration can be done using below versions to generate and download PDF.
I am using below version :
SonarQube 5.1 – Apr. 2, 2015
MYSQL Server version: 5.5.29
Embedded mysql jar inside SonarQube: /lib/jdbc/mysql-connector-java-5.1.34.jar
As you can see on the Plugin Version Matrix page:
the community PDF Report plugin is indeed not compatible with 5.1
but SonarSource Report plugin (that also generates PDF reports) is compatible.

LibreOffice 4.3 does not convert to PDF (command line), but no errors reported

We are running Fedora on a dedicated server:
Linux host.**obscured**.<tld> 2.6.18-348.6.1.el5 #1 SMP Tue May 21
15:29:55 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux
One important aspect of our web application is the ability to upload all types of documents, such as Open Office or Microsoft, and convert them dynamically to PDF, so they can be displayed on the site, and also using a JPG thumbnail created from the PDF asset.
Until recently, this function worked great, using LibreOffice 4.0. We used the soffice binary to dynamically convert uploaded files in a background shell command.
Then suddenly, LibreOffice stopped working, and we could not restore it, so we downloaded and installed LibreOffice 4.3.
The program now works, in the sense that it no longer bombs when forking off a the process, but the conversion no longer works, and doesn't produce any output or errors:
We essentially use the same syntax as from LibreOffice 4.0, which used to work correctly:
/opt/libreoffice4.3/program/soffice --headless --convert-to pdf --nofirststartwizard
--outdir **obscured** --nofirststartwizard **obscured**.docx
(I have obscured certain information here, intentionally, for the privacy of our users)
Again, this same syntax used to work with LibreOffice 4.0, until it broke, presumably due to an update of Java JRE on the server (we're not 100% sure...)
I cross-checked the syntax against online resources.
There was also mention of not being able to convert when another LibreOffice instance is running, and I checked that this was the only process!
Any thoughts or ideas will be appreciated, as this function is an important part of the application user experience
I have the same problem, after I 've used strace , I could see that fonts are missing.
http://ask.libreoffice.org/en/question/30069/pdf-font-embedding-in-libreoffice-42/

How can I programatically convert SVG files containing text to PDF files (specifically on CentOS 5.3 x86_64)?

I would like to programatically convert SVG files to PDF files. However, the SVG files contain text that must be searchable in the generated PDF files. Also, it has to work on Red Hat Enterprise Linux 5.3 or CentOS 5.3 for the x86_64 architecture. It would be nice if it were Open Source or at least not very expensive.
Here is what I've tried. All of these, except Batik, work fine on Debian Lenny.
Inkscape
I can get it installed using autopackages from http://inkscape.modevia.com/ap, but when I use it from the command line, the text is not searchable.
Batik rasterizer [sic]
When it converts SVG files to PDF files, the text is no longer searchable.
svg2pdf
The source for this and several of its dependencies are available to download. I have been trying to get it to compile on CentOS, but haven't had success yet. I found a precompiled version for Debian x86_64, but it doesn't work on CentOS.
rsvg-convert
Generated PDF isn't searchable on CentOS 5.3. Perhaps installing a newer version of cairo would help. Thanks to DaveParillo for mentioning rsvg-convert (on superuser).
SOLUTION (but perhaps some of the above will still be useful to the reader)
princeXML
It works fine on CentOS when installed from source. For some reason it doesn't work when installed from the .rpm. Thanks Erik Dahlström!
Cross posted on superuser
You could try princexml, it's free for non-commercial use.