Help for this page

Select Code to Download


  1. or download this
    linux: Linux version 2.6.35.6-48.fc14.i686.PAE (...) (gcc version 4.5.
    +1 20100924 (Red Hat 4.5.1-4) (GCC) ) #1 SMP Fri Oct 22 15:27:53 UTC 2
    +010
    
    wkhtmltopdf: wkhtmltopdf 0.10.0 rc2
    
    perl: This is perl 5, version 12, subversion 2 (v5.12.2) built for i38
    +6-linux-thread-multi
    
  2. or download this
    #!/usr/bin/perl
    #### takes string containing HTML and outputs PDF to browser to downlo
    +ad
    ...
    ###  input from STDIN and send output to STDOUT*
    open(my $makePDF, "|-", "/usr/local/bin/wkhtmltopdf", "-", "-") || die
    +("$!");
    print $makePDF $htmlToPrint;  ## sends my HTML to wkhtmltopdf which st
    +reams immediately to STDOUT
    
  3. or download this
    Loading pages (1/6)
    QPainter::begin(): Returned false============================] 100%
    Error: Unable to write to destination