Possibly related question 1, Related question 2
What We're trying to accomplish:
Use drupal webform submition data as a source to fill a PDF form and serve it to the user, flattened for printing. We're trying to deploy this on Drupal 6 and later on Drupal 7. Site is a large D6 site deployed on a CentOS VPS. We're in the process of moving it to D7.
Links:
Our problem:
No matter what we try we can not get certain Unicode(utf-8) chars to be inserted into the PDF.
Specifically these do not work: č, đ, ć
These work: š, ž
NOTE: This has to work as these chars are common in names and surnames of Slovenians, and this pdf is a printout for a contract in Slovenia.
What we tried:
We first used PDFTK that our sysadmin built from source. We tried 1.41 and 1.41. He than found a package of both version and we tested them both. None worked. We than analyzed the module and used the same command line function with a striped down example. It produced the same result. We tried PDF generated on a Mac that was converted from a DOC, than fields added with Adobe Acrobat Pro. Than we tried a PDF created with LibreOffice on Linux Mint. Both produced the same results. This problem has been replicated on CentOS vps, CentOS virtualbox install of our sysadmin and a ubuntu 10.04 devbox and across 2 D6 vanilla installs, 1 D7 vanilla install and on the production D6 install.
We also tried the second option given by the fillpdf module: java/tomcat bridge (More here). This was tried on the ubuntu 10.04 devbox and it also did not work. We also tried the provided software-as-a-service PDFTK service FillPDF service and it also produced the same result.
Any ideas what could be wrong? Any ideas how to get this done (even with the use of other system, services, custom code etc.)?