Add UTF-8 to fix PDF export problem
Add UTF-8 to fix PDF export problem
JorgeAyala
Posts: 9Questions: 2Answers: 0
Hello, I want to know how to make my pdf export support UTF-8? I have to edit some line in PDF.as? Where I do this?
Thanks.
This question has accepted answers - jump to:
This discussion has been closed.
Answers
If you type "utf8 pdf" into the search box at the top of the page you'll find a lot of discussions on this topic. For example:
As soon as the PDF generating library adds UTF8 support I'll add it to TableTools. Although given that AlivePDF appears to be a dead project, I'm not sure it ever will. Suggestions welcome (as noted in the other discussions).
Allan
Hey Allan, thanks a lot, with help I could put utf-8 in my pdf, but there's another simple question, here a example:
http://imgur.com/J9dZz9N
(it's a link with a image of example, not a virus)
in:
ANDERSON MOEBUS
RETONDARALEXANDRE NOBREGA
DUARTEADRIANA CARLA ROLIM DE
CARVALHO LEITE
I want to make my tabble look like this:
ANDERSON MOEBUS
RETONDAR
ALEXANDRE NOBREGA
DUARTE
ADRIANA CARLA ROLIM DE
CARVALHO LEITE
if it's like this my ENTER simply vanishes from the table connecting the last name of the first with the first name of the next name.
ANDERSON MOEBUS
RETONDAR (there's a ENTER here)
ALEXANDRE NOBREGA
DUARTE (there's another ENTER here)
ADRIANA CARLA ROLIM DE
CARVALHO LEITE
Is there a solution for this? I tried the <br> or /n, but nothing work.......
if there's a algoritm, where I put to this ENTER happen? I would thank you if you or someone helped me.
Hugs!
TableTools strips newline characters from the output since it wouldn't be valid CSV. The same rule is applied to the PDF output (probably wrongly). You'd need to modify the source to resolve that.
Allan
What source? The algorithm? It's strange because when I export in CSV all goes ok, but when I do in PDF this happens, can you show me a example for how source is this and how I make it?
Thanks for the support.
What source? The algorithm? It's strange because when I export in CSV all goes ok, but when I do in PDF this happens, can you show me a example for how source is this and how I make it?
Thanks for the support.
Here: https://github.com/DataTables/TableTools/blob/master/src/TableTools.js#L1667 . It isn't as simple as just removing that
replace
though, since you will need to modify how the data is sent to the PDF. I'm afraid I don't have an example of how this can be done at the moment, but if you'd like me to take a look priority support is available.Allan
OK, now, I'm trying to change this line and etc, but nothing happens, do I have to use any software to compile the changes that I'm doing, like sdk flex? Or just as I save the file the changes are making?
You need to build the TableTools.js change into the dataTables.tableTools.js file. It might actually just be easier to change that second file as I'm still writing the documentation for the build instructions. You will likely also need to recompile the AS3 files with the Flex sdk once you've made changes to those files, which I suspect you will need to do as well.
Allan