Tools om het web vast te leggen en te converteren
GrabzIt Save Als PDF-plug-in

Hoe wordt het gebruikt Save Als PDF-plug-in

De Save Zoals PDF Plugin Plugin voegt de mogelijkheid toe save elke webpagina als PDF op elke website, CMS of blog. Zoals WordPress, Drupal en Joomla.

Voeg gewoon de klas toe 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 applicatiesleutel.

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

Vervolgens voegt u de mogelijkheid toe om een ​​webpagina naar het PDF-formaat te converteren naar uw webpagina. Voeg eenvoudig de toe 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.

U hoeft geen andere configuratie-opties in te stellen. U kunt echter alle algemene en PDF-parameters in het optieobject.

Wanneer je 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 kenmerk bijvoorbeeld.

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

Terwijl u natuurlijk de JavaScript of CSS naar wens kunt wijzigen! De Save Als PDF-plug-in biedt speciale CSS-klassen die u kunt gebruiken om het voorbeeldvak op te maken.

Deze omvatten de grabzit-pdf-save-progress. Dit specificeert de stijl van het element met de 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 installeren Save Als PDF op een blog of CMS

GrabzIt's Save Omdat de PDF-plug-in volledig compatibel is met een blog of CMS. Net open blog-of-cms-install.txt found in the plugin download, this includes all the required JavaScript and CSS in one block. You can then insert this inteen widget die onbewerkte HTML accepteert.

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.

Nu downloaden


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