Mohwl.com API Documentation

This is describes the all Services that allow you deal with our API .

Parameters Definition

Parameter Definition
url URI of a web page to convert. Must start with http:// or https://.
page-size PDF page paper size, ext: a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, b0, b1, b2, b3, b4, b5, letter, legal, ledger (default a4)
viewport-size Set viewport size if you have custom scrollbars or css attribute overflow to emulate window size (default none)
orientation Set orientation to Landscape or Portrait (default Portrait)
margin-top Set the page top margin (default 10mm)
margin-right Set the page right margin (default 10mm)
margin-bottom Set the page bottom margin (default 10mm)
margin-left Set the page left margin (default 10mm)
grayscale if set to 1 PDF will be generated in grayscale. (default 0)
lowquality if set to 1 PDF will be generated in lower quality pdf (default 0)
print-media-type if set to 1 The print media-type will be used instead of screen (default 0)
disable-javascript if set to 1 Do not allow web pages to run javascript (default 0)
disable-internal-links if set to 1 Do not make links to remote web pages (default 0)
no-background if set to 1 Do not print background (default 0)
no-images if set to 1 Do not load or print images (default 0)
email this is required if you use SendPDF service

SavePDF

This service allows you to download the pdf file

GET http://api.mohwl.com/savepdf?url=http://www.alriyadh.com/

Response

The content of pdf file or false

LinkPDF

This service allows you to get the pdf link

GET http://api.mohwl.com/linkpdf?url=http://www.alriyadh.com/

Response

The pdf file link

Usage

This service allows you to send the pdf file to email

GET http://api.mohwl.com/sendpdf?url=http://www.alriyadh.com/&email=email@address.tld

Response

True or False