If freemarker supports exporting excel with pictures? - freemarker

Situation:need to generate excel with freemarker templates and dynamically insert pictures. But excel xml can’t save pictures (word xml can). There is a solution that using freemarker to generate text data Excel, then use poi to insert pictures. But I found that the image position isn’t static. So is there a better way to generate excel with pictures?
Use Springboot + freemarker + MySQL
Thank you.

Related

How do I wrap data in BIRT?

I have developed a BIRT report and need to export the output as PDF and as an Excel Spreadsheet. I am looking a solution to wrap data in PDF report exported from BIRT. A text gets truncated in the PDF, if it does not have spaces as soon as it exceeds the available width of the column.
e.g. phone number getting truncated
I would like to know if there is a solution without the need for adding a custom code as provided in How to wrap column data in birt report. This solution adds whitespace to the data which is not desirable when the report is exported to an excel spreadsheet. In essence, this solution manipulates the data which isn't the right thing to do.
I have tried using the Whitespace auto option but that does not work.
I am using BIRT version 4.12.
I was able to figure out the solution for getting the text wrapped in the PDF export. Made use of IPDFRenderOption.PDF_WORDBREAK for the same.
PDFRenderOption pdfOptions = new PDFRenderOption();
pdfOptions.setOutputFileName("T:/temp/filename.pdf");
pdfOptions.setOutputFormat("pdf");
pdfOptions.setOption(IPDFRenderOption.PDF_WORDBREAK, true);
task.setRenderOption(pdfOptions);
task.run();

Is there any way to convert ckeditor html content to ms word document?

I have a Laravel project where I need to create a doc/docx document based on user input in Ckeditor. I have previously worked with PHPword where I can convert simple text input to a docx document. But the problem with ckeditor is it gives you html with inline css (which i need) and PHPWORD can not convert this to a docx.
I also tried to convert the html to word by xml but no luck. I know there is a paid tool called phpdocx but I am looking for a free solution.
Just a note, I can actually convert the html to pdf. But again, there is no solution from pdf to doc.
So, any help in converting the html to word or pdf to word?
thanks

render DT::datatables in a pdf using rmarkdown?

This is similar to how to render DT::datatables in a pdf using rmarkdown?
DataTable has an option to add a pdf button and export and nice looking pdf of the Table. (see https://rstudio.github.io/DT/extensions.html)
Is there a way to do this in Rmarkdown directly? It would save me effort of converting a list of DTs to kable.

Is it possible to convert vue js chart to pdf in laravel?

I have to generate a page data of my web site in PDF format. I need to export all the dynamic data with line, bar and pie charts. Is it possible to download in pdf format? For reminder, I am using laravel-dompdf to generate a file.
Let me know if you have any solution for this.
Thanks in advance.
I did research on it, we can not directly convert chartjs into pdf but what we can do is we can convert JS chart into image format and append into tag. Then, we can easily convert them into pdf format.
Let me know if anyone need in detail.
Thanks,

Importing data from excel files in D3 js

I am working on D3 js collapsible tree layout, i want to know is there any way we can directly feed the data from excel file rather than using json object file?
D3.js doesn’t have built-in Excel file format parser. It does, however, have a CSV format data parser. You can save your worksheet as CSV and use the resulting text as a source for the D3.js visualization.

Resources