render DT::datatables in a pdf using rmarkdown? - datatable

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.

Related

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

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,

How to implement a TOC if I'm using html2pdf to convert HTML to PDF?

I'm using the following method to convert html to PDF.
HtmlConverter.convertToPdf(htmlCode,servletOutputStream);
but here I don't have the possibility of handle the Document object to create the TOC according to this example
Now if I use
Document document=HtmlConverter.convertToDocument(.....)
Will it update the document created if I work with that document object?

Convert HTML to PDF using TCPDF

I need to convert on the fly an HTML into PDF. I've been using the old HTMLDoc library for a while, but now I need to print SVG graphics and HTMLDoc doesn't support SVG nor base64-enconded images.
So far it seems to me that TCPDF (or a tool based on it) is a good way. The only problem is that I don't want to "build" the PDF document in PHP, as the HTML is dynamic.
Is there any way to write a script that simply takes a portion of HTML page and returns a PDF? That would imply some sort of way to specify start/stop markers in the HTML page (just like in HTMLDoc).
Thanks for any advice,
Thomas
TCPDF has got very limited css support and some bugs with " quotes, so from any html to pdf TCPDF is not an option for you unfortunetly
TCPDF not supports all css functionality, mpdf 6.0 is best ever pdf library for convert html to pdf, It also supports almost required css as well. I prefers htmlcanvas jquery for convert html to image.

Not able to put text on image in table while creating PDF using XMLWorker

I am have html file and giving that to XMLWorkerHelper to parse it, so that it can generate PDF.
In Html. In table cell I can put text on image. but when I do
worker.parseXHtml(pdfWriter, document, isr);
it does not put text on image,
isr - it is ByteArrayInputStream of mockHttpServletResponse.
I have used all different kind of styling in html. but it is not working.
Please let me know how can I do this.

Resources