Tôi muốn tạo một trang web bằng google appscript, khi người dùng nhập link file Scribd vào, hệ thống tự động nhảy sang trang có dạng https://www.scribd.com/embeds/Document_id/content. Sau đó, sẽ có một nút download pdf, nút này sau khi user bấm, thì toàn bộ trang của được screenshot lại và nén lại thành pdf
I'll help you create a web application using Google Apps Script that can take a Scribd link, redirect to the embedded version, and then allow users to download a PDF version of the page.
This application allows you to:
When you click "Download as PDF", the app:
Please note that this approach has some limitations:
If you need more advanced functionality, you might need to consider server-side solutions or browser extensions.
I'll create a Google Apps Script solution for you with the two required files: HTML and GS. This will allow users to enter a Scribd link, view the embedded document, and download it as a PDF.
Code.gs
Index.html
Create two files:
Code.gs
- Copy and paste the GS code aboveIndex.html
- Copy and paste the HTML code aboveConfigure the settings:
When users click "Download as PDF", the app:
This solution is completely built with Google Apps Script and will work as a standalone web application.