Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Install the gem win32-open3 </p> <pre><code>gem install win32-open3 </code></pre> <p>And now Change line:6 in lib/wicked_pdf.rb</p> <p>require 'open3'</p> <p>to</p> <pre><code>require 'win32/open3' </code></pre> <p>and line:20 in the same file</p> <pre><code>command_for_stdin_stdout = "#{@exe_path} #{options} - - -q" </code></pre> <p>to</p> <pre><code>command_for_stdin_stdout = "#{@exe_path} #{options} - -" </code></pre> <p>and now in console I get</p> <pre><code>wp = WickedPdf.new =&gt; #&lt;WickedPdf:0x4e65f70 @exe_path="C:\\wkhtmltopdf\\wkhtmltopdf.exe"&gt; ?&gt; HTML_DOCUMENT = "&lt;html&gt;&lt;body&gt;Hello World&lt;/body&gt;&lt;/html&gt;" =&gt; "&lt;html&gt;&lt;body&gt;Hello World&lt;/body&gt;&lt;/html&gt;" ?&gt; pdf = wp.pdf_from_string HTML_DOCUMENT "***************C:\\wkhtmltopdf\\wkhtmltopdf.exe - - ***************" =&gt; "%PDF-1.4\n1 0 obj\n&lt;&lt;\n/Title (\376\377)\n/Producer (wkhtmltopdf)\n/CreationDate (D:20101127124137)\n&gt;&gt;\nendobj\n4 0 obj\n&lt;&lt;\n/Type /ExtGState\n/SA true\n/SM 0.02\n/ca 1.0\n/CA 1.0\n/AIS false\n/SMask /None&gt;&gt;\nendobj\n5 0 obj\n[/Pattern /DeviceRGB]\nendobj\n8 0 obj\n&lt;&lt;\n/Type /Catalog\n/Pages 2 0 R\n&gt;&gt;\nendobj\n6 0 obj\n&lt;&lt;\n/Type /Page\n/Parent 2 0 R\n/Contents 9 0 R\n/Resources 11 0 R\n/Annots 12 0 R\n/MediaBox [0 0 595 842]\n&gt;&gt;\nendobj\n11 0 obj\n&lt;&lt;\n/ColorSpace &lt;&lt;\n/PCSp 5 0 R\n/CSp /DeviceRGB\n/CSpg /DeviceGray\n&gt;&gt;\n/ExtGState &lt;&lt;\n/GSa 4 0 R\n&gt;&gt;\n/Pattern &lt;&lt;\n&gt;&gt;\n/Font &lt;&lt;\n/F7 7 0 R\n&gt;&gt;\n/XObject &lt;&lt;\n&gt;&gt;\n&gt;&gt;\nendobj\n12 0 obj\n[ ]\nendobj\n9 0 obj\n&lt;&lt;\n/Length 10 0 R\n/Filter /FlateDecode\n&gt;&gt;\nstream\nx\234\245\222QKÄ0\f\200ßó+ò,\×6ëÖ‚øàPÁa\254àƒø ;O9\274Ãy\017\376}ÓtÇ�\003\213`ÖåKÒ\264ɪ\273áß\016XuÃ'\216\263îÐJ\273\220\027j\226ÕX\257Èê\264ÐRM+tÜÁ\204\023ôÐó;é Ž\273j\221ø\207*×›\243\022Ý�\017\r)ÞÁ\023\233\037K\223È©`\264v\236\271&gt;7Sð;&lt;^à¾Xêè1\"KÏA\271ÐÖ\244\255\225\2643\223o$\224j$\207_\257\260IçþKÚï\247Édèøë-Þó\263ŧg\206ëâ5\256#T\267-\032\217qÃ÷\220\241d\025\271\205\270\2625Æ5^òPÌÆ-\230䜉\025\022N\200\004P\001Ôç)N@}\002M.ã 9\255\000W(ãÜDil\376qLî¢ùo3Ó ÊØÃ\0177Ч\201endstream\nendobj\n10 0 obj\n271\nendobj\n13 0 obj\n&lt;&lt; /Type /FontDescriptor\n/FontName /QNAAAA+ArialRegular\n/Flags 4 \n/FontBBox [-594.726562 -290.527343 1790.03906 900.390625 ]\n/ItalicAngle 0 \n/Ascent 651.367187 \n/Descent -188.476562 \n/CapHeight 0 \n/StemV 65.4296875 \n/FontFile2 14 0 R\n&gt;&gt; endobj\n14 0 obj\n&lt;&lt;\n/Length1 3840 \n/Length 17 0 R\n/Filter /FlateDecode\n&gt;&gt;\nstream\nx\234\245W]l\024×&gt;wgg×C0ÆkW\204p\rÄ?\024l\263Æ»ÆÄ8ÈD\245\030cc\e\0220\224\214wf\275cvgV\263\263^\257\241\205\2406BQ#\245\205\246\025êC‰\2226I[~ÒÚ”\246\250M\245&lt;\264\225ÒH\225\252\242ÊM\213\232\206(U\037\"\265Ä?=÷ÜYgL(RÕ]Í�ïœ{î9ßùæÞY\030\000\224ÁiP\000ú‡Z¢+\242Gsèù*^O\216\245\213Ék\237Áø </code></pre> <p>Take a look at <a href="http://rohitsharma9889.wordpress.com/2010/11/27/wicked_pdf-doesnt-work-on-windows/" rel="nofollow">this blog post</a> for understanding it. Thanks.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload