Convert a web page to PDF using Python

1
2
# This code converts an url to pdf in Python using SelectPdf REST API through a POST request.
# The parameters are JSON encoded.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
This code snippet converts an url to pdf in Python using SelectPdf HTML To PDF REST API through a POST request.

The parameters are JSON encoded. The content is saved into a file on the disk.

#python #pdf #webToPDF #pdfRestAPI

#cesarnog

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.