I am using arabic language in some files. when i want to download these files as PDF with arabic file name seems not working with highcharts export server.
chart.Exportchart({})
See the fiddle here http://jsfiddle.net/w4bhbhnb/
Is there any workaround for this in Highcharts?
Yeah, got it this is the working demo http://jsfiddle.net/w4bhbhnb/1/
chart.Exportchart({})
Related
I have used ExcelJS libary in my JS project. It works fine with English letters. But if I change my application language in to French and export the content as a excel sheet. Then the below mentioned error is coming. Anyone know what cause this issue and a solution for this?
In my scenario I am using ExcelJS to convert/create an excel file using my fin-hypergrid table. The reason which caused this issue is in my fin-hypergrid table I had two columns with same name. Then excelJS will add unknown character at the end of the column name. That was the reason, which cause the above error.
I used some free jquery libraries like jsPDF and html2pdf to export html as PDF in jquery. But non of them work properly for Persian language. How to export/convert html to PDF for Persian with Persian fonts in jquery or javascript?
please help me!
You can use DocRaptor. It works for Persian and other utf-8 languages. but it's not free. In free version of library, advertising bar will be added to exporting PDF.
you can create a simple page with your report as html, and use Microsoft Print to PDF-se (Ctrl+P) to print to PDF-se and save locally
jsPDF can only render simple HTML to PDF
See below image, There is a tag which is not displaying properly in PDF view:
You need to use iTextSharp in order to generate PDF from server side. it will also support Persian font.
Try to use html2pdf library for properly export Persian/Arabic characters.
I want to generate pdf file from my php script that support utf-8 "arabic language"
like -> "السلام عليكم "
that support RTL
i make small search and i found some library like fpdf but it's aint support arabic and also tpdf
and i found tcpdf but it's need as i "think" using laravel in my project ?
i am not using MVC i just using normal web development .
If you want to programtically generate the pdf and send it in email attachment the TCPDF library is the best solution for you. The TCPDF provides fonts for Arabic and Farsi. However, it looks like the TCPDF does not support RTL.
I would also suggest you to give DOMPDF a try. DOMPDF generates PDF with HTML with ease. Read more here: https://github.com/dompdf/dompdf
I have used both to generate the PDF for all kind of non-latin chars.
EDIT:
Don't forget to add dir="rtl" in the html. Please read more here: https://www.w3.org/International/questions/qa-html-dir
Also, please show your code if you can. So I can help you more.
If your page has Arabic words
<script>
window.print();
<script>
This will give you option to print or save PDF. Hope this will work.
I have been working on a project with Angular 1 which will require me to build functions to export excel file with some formatting from browser. I found excel-builder.js can be very powerful and useful, but the current tutorial website: http://excelbuilderjs.com/ is not accessible anymore. Can anyone provide me any documentation, especially for excel file formatting?
Thank you very much!
you can make excel from html table.As i create a fiddle here http://jsfiddle.net/dssoft32/WPpDm/36/
All colors and styles will work inline css. you can custom as you want. I have also user the Filesaver.js to download Blob object.
I have been searching a way to export data to xls/csv/pdf and found many threads talking about this topic:
Angular JS - How to export Javascript Object to XLS file ?
Export to xls using angularjs
However, none of these methods support styling data; text color, background color, regular/bold/italic, etc. For example, I wanted to style a header row background of a xls file to be gray. Moreover, most of them don't support in Safari/IE9.
Is there any library for exporting these types of data, which support styling data and also support all modern browsers?
For styling you need to use other available API's/.jar files
Apache POI for Excel
IText for PDF
I doubt if any JS file provide support for designing Excel and PDF.
You should take a look at the Microsoft Office XML Formats here (https://en.wikipedia.org/wiki/Microsoft_Office_XML_formats)
You can construct a variable with the xml tags, then output it as XLSX.