Print Multiple HTML files automatically using a printer/Network Printer - html

I looking for a solution to print multiple HTML files/URLs to print automatically from the printer with Just one click from my custom android app.
So earlier I use to print these multiple files using Google Cloud API. So using that API we use to add those files to the Google cloud and then Google Cloud automatically prints those HTML files from the printer which is configured. Since Google cloud is no more available to use so I am looking for an automatic solution.
Is there any solution for printing multiple HTML files using EPSON printer tm-t20 by using some API OR some android code which I can integrate to print these HTML automatically?

This is a very broad question. I suggest asking a series of more focussed questions to get specific answers to the various problems you are faced with. Anyway here are some ideas for you...
There are a few things going on here. You need to process a URL, convert that URL into something printable (probably a PDF file) and then automate the printing of it on your Epson printer.
Software is available to automatically print documents that appear in a folder on your network, so you can use that kind of thing to print PDFs. Google "automatically print pdf files in folder" and find something that will work with your printer.
For the other problem of getting something printable from a URL, I presume you do not wish to code up your own solution, so perhaps you can find an App to render HTML to PDF and save the file to a folder or network location. Have a look at IFTT, there is an app there called Pocket, that can convert a URL to PDF and save it to Google Drive. If you link Google Drive to the folder on your network that automatically prints documents, perhaps you will have a solution!

You can use ezeep print api it is a replacement for gooogle ckoud print,
I'm the developer community manager I help people with the api integrations and the pai is pretty easy to use . check it out at ezeep.com
let me know if oyu need help

Related

Auto-Convert OneNote to PDF

I am trying to automatically convert some Microsoft OneNote files to PDF to send as a daily email attachment. I have thought of two systematic solutions but need some help in finding the right tools:
Find an application that may be programmatically called (via a Python script e.g.) that will convert a Microsoft OneNote file to a PDF.
Find a way for OneNote to automatically save files as PDFs every time it auto-saves.
Is anyone aware of tools available for either solution?
See my answer to your other question
The approach would be to get the pages content with
./me/onenote/pages/1-1c13bcbae2fdd747a95b3e5386caddf1!1-xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx/content?includeIDs=true&includeInkML=true&preAuthenticated=true
and then render the html on a canvas with javascript/jquery.
render ink with InkMLjs
and then use a library to convert the canvas to a pdf for example with canvas2pdf
Another approach might be something like Automator for osx. You could get the pages of interest with the microsoft-graph api, open them in a web browser using applescript and when the page has finished rendering -> print -> "Save as PDF"

File name conversion for cloud storages?

Lets say I have a web URL to a file on a cloud storage (like Dropbox, Google Drive, etc). How do I convert that to the corresponding file path on my pc? On Android? On iOS?
Assuming of course I have the utilities/apps installed locally.
EDIT: I interested in file name the reverse direction too. (I.e. when I have the local file path, what is the web path?)
EDIT 2: #Greg just made me realize that the problem with file name is much worse on Google Drive than on Dropbox.
And that is very bad. :-(
The reason? Google has good search capabilities on Drive and therefor I and many, many others have put their documents on Drive. However, once I found it I must locate it on my on computer/device. (If I want to edit a pdf for example.)
EDIT 3: #Dan McGrath kindly asked what parts remain unsolved.
Short answer: All. ;-)
Long answer: My actual use case, see below.
My actual use case is a Zotero web app. Zotero is a reference database where you store references to scientific articles, web pages, etc. The items stored in Zotero may include PDF files or - which I prefer - links to PDF files.
I just want to be able to easy access (read) this PDF files from any computer through the web app. And on my own computer I want to be able to edit the files with my local PDF editor. (Be it Android, Windows or whatever.)
By using a cloud storage I do not have to download/upload the files myself. The cloud storage takes care of that part.
For the "reverse" scenario, that is, you have a file and you want the Dropbox shared link, you can use this API endpoint, assuming you're connected to the account via the API:
https://www.dropbox.com/developers/core/docs#shares

Determine if a certain File is process by a project that uses Google Drive API

Good day! I am currently developing a website using Google Drive API. However, I am wondering if is it possible to know if a certain file is created/uploaded/shared by the project using an App Id. I was thinking if it is belong to the attributes of a file. But, when i checked, it seems that, there's no such thing.
What I am trying to do, is to filter the files' shared by the other user to the owner of the account using my web site. Is it possible? Any suggestions on how to do it?
Thank you in advance.
File metadata doesn't contain this information unfortunatelly, therefore you can't know if some file was created by your app or not. But FYI Google store it somewhere, if you will try to upload somefile without providing its content type (* / *) and after that try to open this file through browser you will see the message:
No preview available
This item was created with YourAppName, a Google Drive app.
Download this file or use one of the apps you have installed to open it.

Google docs api file view and download

Has anyone had any luck with the downloading of files using the google docs api?
I've been struggling for weeks now to get this working with no success.
https://developers.google.com/google-apps/documents-list/#downloading_documents_and_files
I can get the list of files successfully and display within my web page. However what i want to do next is allow the user to click on a file link which will then open it up in a google docs viewer allowing them to then view and edit that file.
Please advice.
I'd recommend using the newer Google Drive API which is easier to use, supports multiple programming languages and has documentation for each method, including downloading files:
https://developers.google.com/drive/manage-downloads

How to generate preview of documents saved in google drive?

I am trying trying to create a preview of a document saved in google drive using google viewer with -
https://docs.google.com/viewer?authuser=0&srcid={some document id}&pid=explorer&a=v&chrome=false&embedded=true
Unfortunately it only works for pdf files. The other important point is that I want to do it without making the uploaded document public.
For get PDF file preview you can use below link :
https://lh3.google.com/u/0/d/]{FILEID}=w200-h150-p-k-nu-iv1
for example : https://lh3.google.com/u/0/d/0BwVBMmQvtcsJUkNSVFllbjRLMzZab0haTEtLajE1M2haekZj=w200-h150-p-k-nu-iv1
Drive/docs only supports importing of Word documents, as I understand, it doesn't support previewing on them in their native form. So you would have to use the Google Documents List API to import and convert them to the native Google Document text format. The problem with this is that you don't get a round-trip (you can't reopen that document in Word). The only real option here is to export as pdf from word and save that. And if you want the general public to be able to preview it, making it public is the only solution. I don't think the technologies you're using match the problem you're trying to solve...
Try using this URL for PDF: http://docs.google.com/viewer?url=https%3A%2F%2Fdocs.google.com%2Fuc%3Fexport%3Ddownload%26id%3D{fileID}&embedded=true
and this URL for other files: https://docs.google.com/viewer?url=https%3A%2F%2Fdocs.google.com%2Fdocument%2Fd%2F{fileID}%2Fexport%3Fformat=pdf&embedded=true
Keep in mind that files should be public.