Hello,
PHP
$fd = fopen('/output/directory/mydocument.pdf', 'wb');
$client->convertURI("http://example.com", $fd);
fclose($fd);
Python
with open('/output/directory/mydocument.pdf', 'wb') as fd:
client.convertURI("http://example.com", fd)
Java
FileOutputStream fileStream = new FileOutputStream("/output/directory/mydocument.pdf");
client.convertURI("http://example.com/", fileStream);
fileStream.close();
Ruby
File.open('/output/directory/mydocument.pdf', 'wb') {
|f| client.convertURI('http://example.com', f)
}
C#
using(FileStream
fileStream = new FileStream("/output/directory/mydocument.pdf", FileMode.Create))
{
client.convertURI("http://example.com", fileStream);
}
Bash
$ curl -F username=$USERNAME \
-F key=$APIKEY \
-F src=http://example.com \
http://pdfcrowd.com/api/pdf/convert/uri/ > /output/directory/mydocument.pdf