Инструменты для захвата и конвертирования Интернета
GrabzIt Save Как плагин PDF

Как использовать Save Как плагин PDF

Ассоциация Save Как плагин PDF Плагин добавляет возможность save любая веб-страница в формате PDF на любом сайте, CMS или блоге. Такие как WordPress, Drupal и Joomla.

Просто добавьте класс grabzit-pdf-save to an HTML element such as a link, button or image. When the user clicks on the HTML element, the browser downloads the current web page in the PDF file format. This allows your users to read a good offline version of your web page at a later date.

First, place the line below at the bottom of the page just above the closing body tag. Then replace the "APPLICATION KEY" with your actual ключ приложения.

new GrabzItSaveAsPDF("Sign in to view your Application Key");

Затем добавьте возможность конвертировать веб-страницу в формат PDF на свою веб-страницу. Просто добавьте grabzit-pdf-save class to an HTML element such as a link. This will automatically read and generate a download of the web page when someone clicks on the HTML element.

Вам не нужно устанавливать какие-либо другие параметры конфигурации, кроме этого. Однако вы можете указать все общие и PDF параметры в объекте параметров.

Когда вы save a web page, the system automatically names the downloaded PDF file after the title of the web page. However in the below example we have set the filename of the download to be mypage.pdf instead.

new GrabzItSaveAsPDF("Sign in to view your Application Key", {"filename": "mypage.pdf"});

To download something other than the current page. You can specify a different URL by using the grabzit-url атрибут, например.

<a href="#" grabzit-url="https://www.tesla.com" class="grabzit-pdf-save">Save as PDF</a>

Хотя вы, конечно, можете изменять JavaScript или CSS по своему желанию! Save Как плагин PDF предоставляет специальные CSS-классы, которые можно использовать для стилизации окна предварительного просмотра.

К ним относятся grabzit-pdf-save-progress, Это определяет стиль элемента с grabzit-pdf-save class during PDF generation. By default the HTML element appears disabled while GrabzIt creates the PDF. You can easily change this.

Установка GrabzIt Save Как PDF на блоге или CMS

GrabzIt-х Save Как плагин PDF полностью совместим с блогом или CMS. Просто открой блог или-К-install.txt found in the plugin download, this includes all the required JavaScript and CSS in one block. You can then insert this into виджет, который принимает сырой HTML.

Such widgets are present in most blog or Content Management Systems. Remember to locate it at the bottom of the page after the content. This enables all the HTML elements decorated with the special CSS class.

Скачать сейчас


This JavaScript plugin is completely open source! To view or improve the source code you can find it on GitHub.