I have a webpage with an interactive paged grid rendered using javascript. i.e. it's a grid that pulls in a number of rows at a time through MVC ajax call and have controls for going forward, backwards or jumping to a particular page. It is a fairly large grid (potentially millions of rows) and can display a number of different datasets. I would like to be able to generate a PDF containing a snapshot of each and every page from this dynamic grid. All the libraries I have looked at transfering html to pdf have all been static, anybody know of a good fast library to transfer interactive/dynamic javascript generated html to pdf? I am willing to do this at the server layer as well, if it is possible to import the .css skins used to create the grid on the webpage, to make the look similar.
I am not sure if that fits your needs, but I used
http://www.tcpdf.org/
some time ago, and it worked quite good. But no idea how good it works with javascript and stuff.
For the record I ended up using LocalReport From Microsoft.Reporting.WebForms.
Related
Thank you in advance for any help.
So i have a table that has 100 rows and 4 columns. I want to publish it on to a site and make it searchable (filtering etc). Now i know one can use OneDrive to get a responsive table on excel itself but i am not allowed to use One drive for security Reasons. The way i have it setup right now i have to create the table in html in Dreamweaver then it is searchable using JavaScript. This is great for small tables but for large tables it takes forever to build the table in html i was wondering if there is a way to import an excel file to do this instead of building the table in html and make it searchable. I found the following thread that says how to do it i think but i am not full understanding it. I just want to know Is this something that is possible or am i wasting my time.
https://chandoo.org/forum/threads/save-excel-as-web-page-html-and-filter-table-how-to-achieve-this.31669/
I'm trying to find a solution to split PDFs I'm receiving in my email in order to start OCR (invoices).
The script is working well but only for 1-2pages document, so I tried to figure out how to manage multiple pages PDFs and decided to looking for a code to split big PDF into multiple PDF with one page...
I get this topic : Merge Multiple PDF's into one PDF
And tried something based on this script : link #pokyCoder (line 484)
Results are pretty good but the script is not working on landscape PDF with multiple pages. The script make every slide to portrait, and those are uncomplete to read then.
How could I get the script to work with landscape?
Or at least, how can I detect the layout orientation before the autostart?
Any help appreciated :)
I decided to do another way due to multiple version of PDF decoding/encoding and complexity to have uniform results...
I'm still using OCR, but not on very large document. And the result is handling by a buffer to avoid too big results at once
I'm working on a project that's basically a web form that the user fills in. Once complete they can save a screenshot of the entire, complete form to use as a sort of pamphlet.
I'm trying to work out the best way to approach this programatically.
I have a simple prototype working using the canvas tag, but the text formatting options aren't good enough for what I need so I'm wondering if there's some other way to generate a screenshot of a HTML element.
If I may suggest, post the result to a webserver and create a nice PDF document from it using some reporting tool available.
In my opinion, this is the best, maintainable solution. No need for hacking it in HTML or Javascript. You can use your own logo, print layout, fonts, etc.
I need to save some html content - inside a div or the whole page - as an image file.
I have found and tested solutions, like html2canvas or the PHP 5 functions but my constraints are as following:
I have an MVC application architecture. That means that while I can easily generate an html file - then use tools to transform it into pdf etc. - it becomes cumbersome to add all the css files that the MVC framework does on the fly while the pages are built.
the html2canvas doesn't render some key html5 elements - video & audi controls, that I am intensively using. Otherwise it is a very good tool ...
the PHP 5 image functions are only running on Windows.
I've seen that the evolutions in this area are quite rapid, therefore I'd be grateful to have some lastest proven experience that you may have with this problem. Thx
I really shot myself in the foot this time. I'm using JavaScript to build an HTML table on one of my pages. I got everything to work fine but I can't copy this table into Excel like a normal HTML table.
I'm pretty sure it has to do with the fact it's a JS-generated table (using d3.js specifically) as when you look at the page source in the web browser, the table is obviously not there except for the few bits that were hard coded into HTML.
My problem is, I need to work with this data in Excel. I use to build these tables using PHP and that was fine but someone suggested I migrate to d3.js and didn't realize I would run into this problem. For example, if I select the entire table and copy/paste special into Excel in any way it dumps it all into one cell instead of parsing it properly.
I'm kind of stuck in a time crunch to get this data out of the browser and into Excel so rewriting my web page isn't an option.
Idea?