Soms wilt u dat de inhoud van een document alleen zichtbaar is voor degenen die daartoe bevoegd zijn. Dit kunt u doen door aan een document een wachtwoord toe te kennen dat correct moet worden ingevoerd om het document te openen. U kunt een PDF- of Word-document met een wachtwoord beveiligen op het moment dat het wordt gemaakt door het wachtwoord dat u wilt gebruiken aan GrabzIt te geven.
De onderstaande voorbeelden laten zien hoe u wachtwoordbeveiliging kunt toevoegen aan een PDF-document voor elke programmeertaal die we momenteel ondersteunen.
GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret"); PDFOptions options = new PDFOptions(); options.Password = "pass"; grabzIt.URLToPDF("http://www.spacex.com", options); grabzIt.Save("http://www.mywebsite.com/Home/Handler");
GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret"); PDFOptions options = new PDFOptions(); options.setPassword("pass"); grabzIt.URLToPDF("http://www.spacex.com", options); grabzIt.Save("http://www.mywebsite.com/handler");
<script src="https://cdn.jsdelivr.net/npm/@grabzit/js@3.5.2/grabzit.min.js"></script>
<script>
GrabzIt("Sign in to view your Application Key").ConvertURL("http://www.spacex.com",
{"format": "pdf", "download": 1, "password": "pass"}).Create();
</script>
var grabzit = require('grabzit'); var client = new grabzit("Sign in to view your Application Key", "Sign in to view your Application Secret"); var options = {"password":"pass"}; client.url_to_pdf("http://www.spacex.com", options); client.save("http://www.example.com/handler", function (error, id){ if (error != null){ throw error; } });
$grabzIt = GrabzItClient->new("Sign in to view your Application Key", "Sign in to view your Application Secret"); $options = GrabzItPDFOptions->new(); $options->password("pass"); $grabzIt->URLToPDF("http://www.spacex.com", $options); $grabzIt->Save("http://www.mywebsite.com/handler.pl");
$grabzIt = new \GrabzIt\GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret"); $options = new \GrabzIt\GrabzItPDFOptions(); $options->setPassword("pass"); $grabzIt->URLToPDF("http://www.spacex.com", $options); $grabzIt->Save("http://www.mywebsite.com/handler.php");
grabzIt = GrabzItClient.GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret") options = GrabzItPDFOptions.GrabzItPDFOptions() options.password = "pass" grabzIt.URLToPDF("http://www.spacex.com", options) grabzIt.Save("http://www.mywebsite.com/handler.py")
https://api.grabz.it/services/convert?key=Sign in to view your Application Key&format=pdf&password=pass&url=https%3A%2F%2Fspacex.com%2F
grabzIt = GrabzIt::Client.new("Sign in to view your Application Key", "Sign in to view your Application Secret") options = GrabzIt::PDFOptions.new() options.password = "pass" grabzIt.url_to_pdf("http://www.spacex.com", options) grabzIt.save("http://www.mywebsite.com/handler/index")
De onderstaande voorbeelden laten zien hoe u wachtwoordbeveiliging kunt toevoegen aan een DOCX-bestand voor elke programmeertaal die we momenteel ondersteunen.
GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret"); DOCXOptions options = new DOCXOptions(); options.Password = "pass"; grabzIt.URLToDOCX("http://www.spacex.com", options); grabzIt.Save("http://www.mywebsite.com/Home/Handler");
GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret"); DOCXOptions options = new DOCXOptions(); options.setPassword("pass"); grabzIt.URLToDOCX("http://www.spacex.com", options); grabzIt.Save("http://www.mywebsite.com/handler");
<script src="https://cdn.jsdelivr.net/npm/@grabzit/js@3.5.2/grabzit.min.js"></script>
<script>
GrabzIt("Sign in to view your Application Key").ConvertURL("http://www.spacex.com",
{"format": "docx", "download": 1, "password": "pass"}).Create();
</script>
var grabzit = require('grabzit'); var client = new grabzit("Sign in to view your Application Key", "Sign in to view your Application Secret"); var options = {"password":"pass"}; client.url_to_docx("http://www.spacex.com", options); client.save("http://www.example.com/handler", function (error, id){ if (error != null){ throw error; } });
$grabzIt = GrabzItClient->new("Sign in to view your Application Key", "Sign in to view your Application Secret"); $options = GrabzItDOCXOptions->new(); $options->password("pass"); $grabzIt->URLToDOCX("http://www.spacex.com", $options); $grabzIt->Save("http://www.mywebsite.com/handler.pl");
$grabzIt = new \GrabzIt\GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret"); $options = new \GrabzIt\GrabzItDOCXOptions(); $options->setPassword("pass"); $grabzIt->URLToDOCX("http://www.spacex.com", $options); $grabzIt->Save("http://www.mywebsite.com/handler.php");
grabzIt = GrabzItClient.GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret") options = GrabzItDOCXOptions.GrabzItDOCXOptions() options.password = "pass" grabzIt.URLToDOCX("http://www.spacex.com", options) grabzIt.Save("http://www.mywebsite.com/handler.py")
https://api.grabz.it/services/convert?key=Sign in to view your Application Key&format=docx&password=pass&url=https%3A%2F%2Fspacex.com%2F
grabzIt = GrabzIt::Client.new("Sign in to view your Application Key", "Sign in to view your Application Secret") options = GrabzIt::DOCXOptions.new() options.password = "pass" grabzIt.url_to_docx("http://www.spacex.com", options) grabzIt.save("http://www.mywebsite.com/handler/index")