I want to change text in my PDF document from webpage. It will be some sort of diploma. I have large illustration and the text on it. There will be two empty rows - "Name" and "Date". I wonder if there's a way to change the "name" on pdf? I know, that there is an interactive PDF, but i dont know how to instert variables to the document from HTML. Anyone can help me?
Or perhaps you know better way to do this? I have two variables from JS or from Cookies (date and name), and want to generate a diploma. I have that illustration, fancy font and text. I was trying to do that with generating PDF from HTML, but it was problem with parsing a giant picture, and it was trying to open a pop-up, but I cant do this like that. It must be on same page or new tab.
I think what you want to do is creating a new pdf, inserting the template and name and stuff. But I do not think it is possible with Javascript alone, but with an ajax call to your server. PHP for example got TCPDF library which is relatively easy to use.
Related
I have a PDF file with two kinds of fields: simple text box and drop-down menus with a list of choices. I also have separate plain text tables with information to fill those fields. Ideally, I would like to take this PDF with the fields empty and fill it according to the information I have in the tables.
Therefore, I was wondering if someone can help me to try to solve this problem or at least point me in the right direction. The closest thing that I have found as a solution is to write a javascript that fills the PDF. However, I am afraid that I am not familiar with modifying PDFs nor javascript, and without a clear example it would be difficult for me to understand what is going on. I am familiar with python and R so if anyone knows a solution using those that would be great (I am okay learning new stuff too!).
One last note, the PDF does not come from me, I am trying to avoid copy-pasting work for my colleagues. The tables do come from me so I can modify them as I please.
Thanks.
The printer: TM-T88V
The Manual: https://files.support.epson.com/pdf/pos/bulk/tmt88v_swum_reve.pdf
A receipt-marker Web template for the printer: http://www.i-pos.nl/epson/
(Provided by Epson)
I'm a noob that doesn't know any computer languages. I've dug all I can but I still can't make sense of it all. I still don't know what I need to learn to print the receipts I want to print.
There's mention of XML, HTML, CSS, and Javascript. But I don't know which one I need to learn. And I don't want to waste time learning one I don't need for this specific purpose.
What I want is to make a receipt that looks very similar to that of another business who makes wonderful receipts, and who uses this printer.
Ideally this is just a txt document or something very simple that I can manually change the lines of and click print. I do not need any sort of POS program with text boxes, buttons, or anything on a website for now. I just need a simple, off-line, on-my-desktop type solution. I want to plug the printer into my computer, change a few lines of text or code, and print it and have it look like their receipt, except with my logo and address.
Even if I can figure out how to print a receipt I manually made in Illustrator. I'm content doing that as well.
Please help me figure this out.
Edit: Would it at all be possible to pay someone to make some sort of noob-friendly setup where I just change lines of text and click print and get the result I want?
Would this be costly?
Would I be better off learning how to do this myself?
According to this manual, page 64, it'll be Javascript. But this document talks about the TMT88V-i, and you have a TMT88V. I'd suggest you to try this out in order to be fixed.
Long time viewer, first time poster!
I am having some trouble... I notice that apparently scraping mouseover text is an option when crawling webpages now (http://support.import.io/forums/199278-ideas-forum/suggestions/10368834-website-elements-displayed-on-mouseover), but I cannot figure out how to do this!
The type of page I am trying to do this on is this (which I will use for crawling on many similar pages): https://www.kickstarter.com/profile/1874304670 I am wanting the numbers in each section of the circle graph, along with the titles of those categories in the graph. This text only appears on mouseover. I cannot get this text to display when making my crawler, much less have the data scraped.
Alternatively, I could get the information if I could use the page source to extract the data, since the data is there before other code changes it into the graph. BUT, it seems that this functionality is not yet available with the crawler, only the extractor (from the best I can tell).
Any help on how to do this directly? Or maybe with some sort of workaround? Perhaps import.io isn't what I should be using for this, but it would be great if I could!
Thanks in advance!
There's no "out of the box" way to do this in import.io, there is a workaround if you know a bit about JS however...
if you use a custom xpath .//*[#id='small_circle'] you can get to a piece of json data that contains the information you want.
it's in this format:
[...{
"category_id":26,
"label":"Crafts",
"projects_backed":0,
"color":"rgba(0,0,0,0.0)",
"path":"/profile/1874304670?category_id=26&ref=wheel",
"data":1
},
...
]
You could do some post-processing after the crawling to filter out the relevant parts you wanted, or parse it with JS and just take the "label" and "projects_backed" keys.
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 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.