PAID: Looking someone to finish up a bug SVG to PDF (Chinese font problem)
Posted: 2016-08-26T10:09:04-07:00
Hi There,
With a developer we created a website that processes SVG files, replaces parts of the SVG text with texts we want and than creates PDF's out of them.
This works all fine and dandy except we have a problem with Chinese. When we create the Chinese PDF' inexplicably the Brackets and Numbers in the text turn into a waaaaayyy different font than the font we specify with the converter.
We are very much around the clock here and we would love someone who could look into the problem and remove the wrench from the cogwheel that is screwing us.
I have no idea whats the price or how is payment is done around here, probably it needs just a fresh set of expert eyes who can go "yeap there is your problem <inserts 2 rows of code>", but we are willing and glad to pay to fix this, or even brush up the code, as the person doing this whole thing was really "hacking and slicing" his way through.
I am linking the 2 files the SVG we have and the PDF we get as a result.
I could not yet get into touch with the developer to pass on all the code files, but as soon as I get it, I am uploading those too.
http://www.megafileupload.com/k00H/boun ... magick.zip
Help please.
We need to make this work by Sept 3.
Update 3: SOLVED
Hi there,
We managed to find the problem, dlemestra set us on the right path and for record, or if anyone bumps into this in the future.
The font had a kanji name, we renamed it for zh.ttf for easier reading.
Apparently for reasons beyond our understanding the convert program disregarded the font, this way. So the developer dug into the FONT file, found what is the font is called in Kanji and burned in the font with that name.
Since than it works.
Moral of the story, never rename your font file.
Thanks for the help
Update 2:
For those who don't "see" the problem at first hand side by side comparison
https://www.dropbox.com/s/q94c8zhqinffu ... n.jpg?dl=0
Code wise what happens, that the brackets + numbers are not being rendered at the Chinese font that is given to them. The Chinese font has a bracket and number style, which shows in the SVG. Reasons beyond my understanding it renders differently. When trying OTHER Chinese fonts we get all kinds of different visual errors. They are not even consistent.
Update 1:
shell_exec('convert -density 300 -compress Lossless /var/www/clients/client90/web294/subdomains/translate/'.$_GET['in'].' /var/www/clients/client90/web294/subdomains/translate/'.$_GET['out'].'');
This is the script that runs. Someone requested I put my files up in a non malwary format. Here are the files non compressed:
https://www.dropbox.com/s/wjjc9vbceqskh ... f.pdf?dl=0
https://www.dropbox.com/s/q1c1ed3ngvzrj ... g.svg?dl=0
With a developer we created a website that processes SVG files, replaces parts of the SVG text with texts we want and than creates PDF's out of them.
This works all fine and dandy except we have a problem with Chinese. When we create the Chinese PDF' inexplicably the Brackets and Numbers in the text turn into a waaaaayyy different font than the font we specify with the converter.
We are very much around the clock here and we would love someone who could look into the problem and remove the wrench from the cogwheel that is screwing us.
I have no idea whats the price or how is payment is done around here, probably it needs just a fresh set of expert eyes who can go "yeap there is your problem <inserts 2 rows of code>", but we are willing and glad to pay to fix this, or even brush up the code, as the person doing this whole thing was really "hacking and slicing" his way through.
I am linking the 2 files the SVG we have and the PDF we get as a result.
I could not yet get into touch with the developer to pass on all the code files, but as soon as I get it, I am uploading those too.
http://www.megafileupload.com/k00H/boun ... magick.zip
Help please.
We need to make this work by Sept 3.
Update 3: SOLVED
Hi there,
We managed to find the problem, dlemestra set us on the right path and for record, or if anyone bumps into this in the future.
The font had a kanji name, we renamed it for zh.ttf for easier reading.
Apparently for reasons beyond our understanding the convert program disregarded the font, this way. So the developer dug into the FONT file, found what is the font is called in Kanji and burned in the font with that name.
Since than it works.
Moral of the story, never rename your font file.
Thanks for the help
Update 2:
For those who don't "see" the problem at first hand side by side comparison
https://www.dropbox.com/s/q94c8zhqinffu ... n.jpg?dl=0
Code wise what happens, that the brackets + numbers are not being rendered at the Chinese font that is given to them. The Chinese font has a bracket and number style, which shows in the SVG. Reasons beyond my understanding it renders differently. When trying OTHER Chinese fonts we get all kinds of different visual errors. They are not even consistent.
Update 1:
shell_exec('convert -density 300 -compress Lossless /var/www/clients/client90/web294/subdomains/translate/'.$_GET['in'].' /var/www/clients/client90/web294/subdomains/translate/'.$_GET['out'].'');
This is the script that runs. Someone requested I put my files up in a non malwary format. Here are the files non compressed:
https://www.dropbox.com/s/wjjc9vbceqskh ... f.pdf?dl=0
https://www.dropbox.com/s/q1c1ed3ngvzrj ... g.svg?dl=0