This is an archived forum post. The information may be outdated. Contact us if you have any questions.

use_print_media being ignored

vibrant wrote on 2011-06-13:
For some reason I'm getting the full page of my site in the PDF with use_print_media enabled (via Python API). When I just try to 'print' the original HTML page manually - it prints out right. Is this some general failure of this option? Does it work at all?
support wrote on 2011-06-13:
Yes, it works. Try out this code:
import pdfcrowd

client = pdfcrowd.Client("*", "*")
url = ''
client.convertURI(url, open("test.pdf", "w"))