Is it possible to create a HTML Url from Sharepoint Document Libraries? - html

Im creating a Power Apps program and im trying to convert all the data you enter in the app into a sharepoint list. i have 3 lists: 2 lists containing text and 1 list for the picture uploads.
Now i want to convert them into a .html so i can print them in the next process.
However it doesnt work for the pictures and i dont know what i should to to get the file path of the pictures.
I want to select all the images with the same "Dateiname" and create a html containing the title and the image. the amount of images can be different.
Or should i chang the upload function completely and switch to an attachement process?
Sincerly Pascal
Googling stuff. I found something here: https://powerusers.microsoft.com/t5/Building-Power-Apps/How-to-load-an-image-for-onedrive-into-html-on-Power-Automate/td-p/1385389
but the whole "Append to string" doesnt let me create a name.

Related

Is it possible to pull an image URL from Google Images to Sheets?

I am building a simple web app for a teacher at my school that includes a word, a translation, and an image. The data will be used to generate the web app layout.
Col B already uses a formula =GOOGLETRANSLATE(A2,"en","ko") to generate the translation. Is it possible to do something like this to get the URL for an image based on a word? For example, get the URL for an image of "bread" in cell C2. This means all the teacher will need to do is add the English word and the translation and image will be added automatically.
I tried things like =("https://www.google.com/search?q="&A2&"&tbm=isch") in C2, but this gives me a search page. Is there either:
A way to pull the first image off Google Images?
OR
Another site that provides images based on a simplified URL? For example, a site where I could enter "www.madeupsite.com/bread" and get an image of bread?
TIA
I don't think this function exists as of now. I think a good idea if you are trying the alternative is to make an HTML repl on REPL.IT - there you can upload images and the file path will be made for you. For example: https://replname.replusername.repl.co/folder/word.jpg
Hope this helps

Keep original image file name when exporting google doc to html

I'm building an app that exports google docs to websites but I can't get original file names.
Steps:
Create a google doc, insert a drive image through Insert -> Image -> Drive.
Use google drive api to export the doc to html (Ruby: https://googleapis.dev/ruby/google-api-client/latest/Google/Apis/DriveV3/DriveService.html#export_file-instance_method)
Extract the images from the html, you'll always get srcs similar to https://lh3.googleusercontent.com/zUmjDlO9wBwiEMnegKwkh1VPGUaaVssRmWn6BvN_-WyD8ImK-s8rgwVkjmR1Zrsd89OcelYKArsHxy9CUXREoeUm5LgfxrUU0HZVa7d7BqcUsDh5E19I4AqwX_xIv_0Tyf5b4qZm
Download the image as you'd do for any file in the web. The "content-disposition" header always have "filename=Untitled.jpg" regardless of the original file name.
Anything I'm doing wrong? Is there a way to get the original file name?
Issue is that Google doc doesn't save any details from the image aside from the details below:
Thus when opened in another application, that app initializes the images' names into its own default image names (e.g image.jpg, Untitled.jng, etc.) as they didn't see any details about it. See a similar post.
Summary:
In short, you can't get the original filename by checking the details of the inserted image as Google docs doesn't store that data when you inserted it. Even before exporting, there is no way to determine the name of the inserted image in the document.
Workaround:
You could add a caption together with the image that contains a specific string (Figure <N>: <filename>) so that you could easily find them when extracting the images. Then when checking which caption is for a specific image, you just have to find the match of the specific string and the order of the image. This is definitely not the optimal approach but the simplest one to do and follow.

How can I load text from a .jl file and display it into a webpage?

I want to build a single page website that I can search for an item within a .jl file. For example, if I search "shoes" then all shoe items from the .jl file should appear.
I've tried looking into converting the .jl file into JSON but I don't know how to.
Surely you could make them all functions, and if they search ' shoes ' then a shoe function is called and it displays it.
But if it's a large file, then I guess it wouldn't work.

Form Data to PDF with complex design

I need to create a webpage that will generate PDFs populated with tickets using data from a form.
I'm a beginner and only know a bit of HTML and CSS and don't really know how to approach this.
Here are some of my requirements for this project:
I'd like to be able to run this offline directly from the HTML file
I need the PDF to be populated with 10 evenly sized tickets with the same information (5 rows, 2 columns)
The tickets need to look good, I'd like to be able to use CSS to format them
I need this to be as simple for the user as inputting information and pressing submit to receive a PDF file to print or email
I would also like the tickets to have a logo displayed by default

Fetch image from non direct HTML link

We have a couple SSIS jobs which nicely fetch images and various expected graphics on websites. Can't figure out how to fetch an image from the following site (sample).
http://tess2.uspto.gov/ImageAgent/ImageAgentProxy?getImage=77666637
Any thoughts on SSIS techniques? I'm hoping I don't have to do a screenscrape or something like that...
You can use the Script Task to fetch the image. The following article gives you a sample code that you can adjust to save an image file instead of text file.
Here is the link : http://www.sqlis.com/sqlis/post/Downloading-a-file-over-HTTP-the-SSIS-way.aspx